- update by Fedora::App::MaintainerTools 0.004

- PERL_INSTALL_ROOT => DESTDIR
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
- dropped old BR on perl(JSON::Syck)
- added manual BR on perl(JSON::XS)
- added a new req on perl(Module::Pluggable) (version 3.01)
- dropped old requires on perl(JSON::Syck)
- added manual requires on perl(JSON::XS)
epel9
Chris Weyl 15 years ago
parent b2ad224b0d
commit bcba31fe6b

@ -1,40 +1,40 @@
Name: perl-Config-Any
Version: 0.17
Release: 3%{?dist}
Summary: Load configuration from different file formats, transparently
Version: 0.19
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/Config-Any-%{version}.tar.gz
URL: http://search.cpan.org/dist/Config-Any/
Source0: http://www.cpan.org/modules/by-module/Config/Config-Any-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
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::Syck)
# tests
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Pluggable) >= 3.01
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(version)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML::XS)
# 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(JSON::XS)
Requires: perl(Module::Pluggable) >= 3.01
Requires: perl(XML::Simple)
Requires: perl(YAML::Syck)
Requires: perl(YAML::XS)
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description
Config::Any provides a facility for Perl applications and libraries to
load configuration data from multiple different file formats. It supports
@ -44,39 +44,14 @@ 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}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
@ -91,11 +66,28 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
# conf/ for examples of different config types
%doc Changes README t/
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Mar 01 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.19-1
- update by Fedora::App::MaintainerTools 0.004
- PERL_INSTALL_ROOT => DESTDIR
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
- dropped old BR on perl(JSON::Syck)
- added manual BR on perl(JSON::XS)
- added a new req on perl(Module::Pluggable) (version 3.01)
- dropped old requires on perl(JSON::Syck)
- added manual requires on perl(JSON::XS)
* 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

@ -1 +1 @@
8392d962a83c427275dc8711a2450f89 Config-Any-0.17.tar.gz
84e2da067d07da59a6482697d2c25b2c Config-Any-0.19.tar.gz

Loading…
Cancel
Save