You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Config-Any/perl-Config-Any.spec

144 lines
4.0 KiB

18 years ago
Name: perl-Config-Any
Version: 0.18
Release: 1%{?dist}
18 years ago
Summary: Load configuration from different file formats, transparently
License: GPL+ or Artistic
18 years ago
Group: Development/Libraries
URL: http://search.cpan.org/dist/Config-Any/
Source0: http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/Config-Any-%{version}.tar.gz
18 years ago
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Pluggable) >= 3.01
BuildRequires: perl(version)
BuildRequires: perl(JSON::Syck)
BuildRequires: perl(Config::General)
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML::XS)
18 years ago
# tests
BuildRequires: perl(Test::More)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(XML::LibXML)
18 years ago
# optional tests
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
# not picked up
Requires: perl(JSON::Syck)
Requires: perl(Config::General)
Requires: perl(Config::Tiny)
Requires: perl(XML::Simple)
Requires: perl(YAML::XS)
18 years ago
%description
Config::Any provides a facility for Perl applications and libraries to
load configuration data from multiple different file formats. It supports
XML, YAML, JSON, Apache-style configuration, Windows INI files, and even
Perl code.
%prep
%setup -q -n Config-Any-%{version}
# make rpmlint happy :)
find t/ -type f -exec sed -i 's/\r//' {} \;
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
# Filter unwanted Provides:
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/perl(MockApp)/d'
EOF
%define __perl_provides %{_builddir}/Config-Any-%{version}/%{name}-prov
chmod +x %{__perl_provides}
# Filter unwanted Requires:
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(Test::More)/d; /perl(Scalar::Util)/d'
EOF
%define __perl_requires %{_builddir}/Config-Any-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
18 years ago
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
18 years ago
%{_fixperms} %{buildroot}/*
%check
make test
18 years ago
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
# conf/ for examples of different config types
%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jan 11 2010 Iain Arnell <iarnell@gmail.com> 0.18-1
- update to latest upstream version
- prefer YAML::XS over YAML::Syck
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.17-4
- rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
16 years ago
* Sun Feb 22 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.17-1
- update to 0.17
16 years ago
* Sat Dec 06 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.16-1
- update to 0.16
* Thu Sep 25 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.14-1
- update to 0.14
- add XML::LibXML to br's
17 years ago
* Wed May 21 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.12-1
- update to 0.12
* Fri Feb 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-2
- rebuild for new perl
* Tue Oct 23 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.08-1
- update to 0.08
- license tag update: GPL -> GPL+
- Module::Build -> Module::Install
18 years ago
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-4
- bump
18 years ago
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-3
- add entirety of t/ to %%doc
* Tue Apr 10 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-2
- Additional requires not documented added
* Tue Apr 10 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-1
- Specfile autogenerated by cpanspec 1.70.