Spec clean-up

- Reinstate compatibility with older distributions like EL-5
- Run release tests as well as the regular test suite
- BR: perl(Test::CPAN::Meta) and perl(Test::More)
- Only drop perl(Test::MinimumVersion) as a buildreq when bootstrapping, and
  add a comment about why that's needed
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Make %files list more explicit
- No longer need to fix permissions of Tiny.pm
- Use tabs
epel9
Paul Howarth 13 years ago
parent 4108f40b71
commit e320d7c737

3
.gitignore vendored

@ -1,2 +1 @@
Config-Tiny-2.12.tar.gz /Config-Tiny-[0-9.]*.tar.gz
/Config-Tiny-2.14.tar.gz

@ -1,80 +1,94 @@
Name: perl-Config-Tiny Name: perl-Config-Tiny
Version: 2.14 Version: 2.14
Release: 2%{?dist} Release: 3%{?dist}
Summary: Perl module for reading and writing .ini style configuration files Summary: Perl module for reading and writing .ini style configuration files
Group: Development/Libraries
Group: Development/Libraries License: GPL+ or Artistic
License: GPL+ or Artistic URL: http://search.cpan.org/dist/Config-Tiny/
URL: http://search.cpan.org/dist/Config-Tiny/ Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Config-Tiny-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Config-Tiny-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::CPAN::Meta)
%if !%{defined perl_bootstrap} BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::MinimumVersion) # Test::MinimumVersion -> Perl::MinimumVersion -> Perl::Critic -> Config::Tiny
%if 0%{!?perl_bootstrap:1}
# Test::MinimumVersion not available for EPEL < 6
%if "%{rhel}" != "4" && "%{rhel}" != "5"
BuildRequires: perl(Test::MinimumVersion)
%endif %endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
Config::Tiny is a Perl module designed for reading and writing .ini Config::Tiny is a Perl module designed for reading and writing .ini
style configuration files. It is designed for simplicity and ease of style configuration files. It is designed for simplicity and ease of
use, and thus only supports the most basic operations. use, and thus only supports the most basic operations.
%prep %prep
%setup -q -n Config-Tiny-%{version} %setup -q -n Config-Tiny-%{version}
chmod a-x Changes lib/Config/Tiny.pm
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT rm -rf %{buildroot}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' make pure_install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/* find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
%{_fixperms} %{buildroot}
%check %check
%if !%{defined perl_bootstrap} make test
make test AUTOMATED_TESTING=1 make test TEST_FILES="xt/*.t" AUTOMATED_TESTING=1
%endif
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-)
%doc Changes LICENSE README %doc Changes LICENSE README
%{perl_vendorlib}/Config/ %{perl_vendorlib}/Config/
%{_mandir}/man3/*.3pm* %{_mandir}/man3/Config::Tiny.3pm*
%changelog %changelog
* Thu Jan 19 2012 Paul Howarth <paul@city-fan.org> - 2.14-3
- Reinstate compatibility with older distributions like EL-5
- Run release tests as well as the regular test suite
- BR: perl(Test::CPAN::Meta) and perl(Test::More)
- Only drop perl(Test::MinimumVersion) as a buildreq when bootstrapping, and
add a comment about why that's needed
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Make %%files list more explicit
- No longer need to fix permissions of Tiny.pm
- Use tabs
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-2 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> 2.14-1 * Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 2.14-1
- update to latest upstream version - Update to latest upstream version
- clean up spec for modern rpmbuild - Clean up spec for modern rpmbuild
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.12-12 * Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.12-12
- rebuild with Perl 5.14.1 - Rebuild with Perl 5.14.1
- use perl_bootstrap macro - Use perl_bootstrap macro
- add missing BR ExtUtils::MakeMaker - Add missing BR ExtUtils::MakeMaker
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-11 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.12-10 * Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.12-10
- 661697 rebuild for fixing problems with vendorach/lib - Rebuild to fix problems with vendorarch/lib (#661697)
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.12-9 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.12-9
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.12-8 * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.12-8
- rebuild against perl 5.10.1 - Rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-7 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
@ -89,78 +103,78 @@ make test AUTOMATED_TESTING=1
- Rebuild for perl 5.10 (again), first pass - Rebuild for perl 5.10 (again), first pass
* Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-3 * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-3
- rebuild normally, second pass - Rebuild normally, second pass
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-2.1 * Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-2.1
- rebuild with TMV, tests disabled for first pass - Rebuild with TMV, tests disabled for first pass
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-2 * Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.12-2
- Rebuild for new perl - Rebuild for new perl
* Thu Dec 13 2007 Ralf Corsépius <rc040203@freenet.de> - 2.12-1 * Thu Dec 13 2007 Ralf Corsépius <rc040203@freenet.de> - 2.12-1
- Update to 2.12. - Update to 2.12
* Mon Oct 2 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.10-1 * Mon Oct 2 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.10-1
- Updated to 2.10. - Updated to 2.10
* Sun Jul 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.08-1 * Sun Jul 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.08-1
- Updated to 2.08. - Updated to 2.08
* Wed May 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.07-1 * Wed May 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.07-1
- Updated to 2.07. - Updated to 2.07
* Sat Apr 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.06-1 * Sat Apr 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.06-1
- Updated to 2.06. - Updated to 2.06
* Mon Mar 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.05-1 * Mon Mar 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.05-1
- Updated to 2.05. - Updated to 2.05
* Sat Feb 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.04-2 * Sat Feb 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.04-2
- Rebuild for FC5 (perl 5.8.8). - Rebuild for FC5 (perl 5.8.8)
* Sat Jan 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.04-1 * Sat Jan 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.04-1
- Updated to 2.04. - Updated to 2.04
* Fri Dec 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.03-1 * Fri Dec 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.03-1
- Updated to 2.03. - Updated to 2.03
* Mon Jun 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.02-1 * Mon Jun 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.02-1
- Updated to 2.02. - Updated to 2.02
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.01-2 * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.01-2
- rebuilt - Rebuilt
* Thu Mar 24 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.01-1 * Thu Mar 24 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.01-1
- Updated to 2.01. - Updated to 2.01
* Sun Jul 25 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:2.00-0.fdr.1 * Sun Jul 25 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:2.00-0.fdr.1
- Updated to 2.00. - Updated to 2.00
* Sat Jul 10 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.9-0.fdr.1 * Sat Jul 10 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.9-0.fdr.1
- Updated to 1.9. - Updated to 1.9
* Fri Jul 2 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.8-0.fdr.1 * Fri Jul 2 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.8-0.fdr.1
- Updated to 1.8. - Updated to 1.8
* Tue Jun 29 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.7-0.fdr.1 * Tue Jun 29 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.7-0.fdr.1
- Updated to 1.7. - Updated to 1.7
* Sat Jun 5 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.3 * Sat Jun 5 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.3
- Changed URL to canonical location (bug 1140). - Changed URL to canonical location (bug 1140)
- Added build req perl >= 1:5.6.1 and perl(Test::More) (bug 1140). - Added build req perl >= 1:5.6.1 and perl(Test::More) (bug 1140)
- Added missing req perl(:MODULE_COMPAT_...) (bug 1140). - Added missing req perl(:MODULE_COMPAT_...) (bug 1140)
- Updated to match most recent perl spec template (bug 1140). - Updated to match most recent perl spec template (bug 1140)
- Removed unneeded optimization settings and find *.bs (bug 1140). - Removed unneeded optimization settings and find *.bs (bug 1140)
* Thu Mar 18 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.2 * Thu Mar 18 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.2
- Reduced directory ownership bloat. - Reduced directory ownership bloat
* Thu Mar 11 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.1 * Thu Mar 11 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:1.6-0.fdr.1
- Updated to 1.6. - Updated to 1.6
* Wed Jan 7 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:1.5-0.fdr.1 * Wed Jan 7 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:1.5-0.fdr.1
- Updated to 1.5. - Updated to 1.5
* Sat Dec 13 2003 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:1.3-0.fdr.1 * Sat Dec 13 2003 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:1.3-0.fdr.1
- Initial RPM release. - Initial RPM release

Loading…
Cancel
Save