Spec clean-up

- Make %files list more explicit
- Classify buildreqs by build/module/test
- Use search.cpan.org source URL
- Don't use macros for commands
- Use tabs
epel9
Paul Howarth 13 years ago
parent 455a7f274f
commit 26bf65ff91

2
.gitignore vendored

@ -1 +1 @@
Declare-Constraints-Simple-0.03.tar.gz /Declare-Constraints-Simple-[0-9.]*.tar.gz

@ -1,25 +1,26 @@
Name: perl-Declare-Constraints-Simple Name: perl-Declare-Constraints-Simple
Version: 0.03 Version: 0.03
Release: 14%{?dist} Release: 15%{?dist}
Summary: Declarative Validation of Data Structures Summary: Declarative Validation of Data Structures
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Declare-Constraints-Simple/ URL: http://search.cpan.org/dist/Declare-Constraints-Simple/
Source0: http://www.cpan.org/authors/id/P/PH/PHAYLON/Declare-Constraints-Simple-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/P/PH/PHAYLON/Declare-Constraints-Simple-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Build
# core
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util) # Module
BuildRequires: perl(Test::More)
# cpan
BuildRequires: perl(aliased) BuildRequires: perl(aliased)
BuildRequires: perl(Carp::Clan) BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Class::Inspector) BuildRequires: perl(Class::Inspector)
# test -- optional BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) # Test suite
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Filter unwanted Requires: (rpm 4.9 onwards) # Filter unwanted Requires: (rpm 4.9 onwards)
%global __requires_exclude ^perl\\(Declare::Constraints::Simple-Library\\) %global __requires_exclude ^perl\\(Declare::Constraints::Simple-Library\\)
@ -57,9 +58,29 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README t/ %doc Changes README t/
%{perl_vendorlib}/Declare/ %{perl_vendorlib}/Declare/
%{_mandir}/man3/Declare::Constraints::Simple* %{_mandir}/man3/Declare::Constraints::Simple.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Array.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Base.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Exportable.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::General.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Hash.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Numerical.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::OO.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Operators.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Referencial.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Library::Scalar.3pm*
%{_mandir}/man3/Declare::Constraints::Simple::Result.3pm*
%changelog %changelog
* Mon Jan 23 2012 Paul Howarth <paul@city-fan.org> - 0.03-15
- Spec clean-up
- Make %%files list more explicit
- Classify buildreqs by build/module/test
- Use search.cpan.org source URL
- Don't use macros for commands
- Use tabs
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.03-14 * Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.03-14
- Spec clean-up - Spec clean-up
- Simplify pre-rpm-4.9 provides filter - Simplify pre-rpm-4.9 provides filter
@ -76,7 +97,7 @@ rm -rf %{buildroot}
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-10 * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-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> - 0.03-9 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-9
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0
@ -88,7 +109,7 @@ rm -rf %{buildroot}
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.03-6 * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.03-6
- rebuild against perl 5.10.1 - Rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-5 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
@ -96,11 +117,11 @@ rm -rf %{buildroot}
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-4 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.03-3 * Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.03-3
- rebuild for new perl - Rebuild for new perl
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-2 * Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.03-2
- bump - Bump
* Tue May 01 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1 * Tue May 01 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.03-1
- Specfile autogenerated by cpanspec 1.71. - Specfile autogenerated by cpanspec 1.71

Loading…
Cancel
Save