rpms/perl-Params-Validate/EL-4 .cvsignore, 1.2, 1.3 perl-Params-Validate.spec, 1.3, 1.4 sources, 1.3, 1.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Params-Validate/EL-4
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv26808

Modified Files:
	.cvsignore perl-Params-Validate.spec sources 
Log Message:
* Wed Apr 21 2010 Paul Howarth <paul@xxxxxxxxxxxx> - 0.95-1
- Update to 0.95
- Add filter for unversioned provide
- Switch to Build.PL
- Enable AUTHOR_TESTING
- BR: perl(Pod::Man), perl(Test::Pod), perl(Test::Pod::Coverage)
- Make %files list more specific



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Params-Validate/EL-4/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- .cvsignore	14 Aug 2005 04:26:08 -0000	1.2
+++ .cvsignore	21 Apr 2010 10:04:03 -0000	1.3
@@ -1 +1 @@
-Params-Validate-0.78.tar.gz
+Params-Validate-0.95.tar.gz


Index: perl-Params-Validate.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Params-Validate/EL-4/perl-Params-Validate.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- perl-Params-Validate.spec	20 Dec 2007 15:38:48 -0000	1.3
+++ perl-Params-Validate.spec	21 Apr 2010 10:04:03 -0000	1.4
@@ -1,20 +1,31 @@
-Summary: 	Params-Validate Perl module
-Name: 		perl-Params-Validate
-Version: 	0.89
-Release: 	1%{?dist}
-License: 	GPL+ or Artistic
-Group: 		Development/Libraries
-URL: 		http://search.cpan.org/dist/Params-Validate/
-Source0: 	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-Requires:  	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-BuildRequires:  perl(ExtUtils::MakeMaker)
-# Required by the tests
-BuildRequires: 	perl(Test::Taint)
+# Note:
+#
+# Build.PL complains about Attribute::Handlers < 0.79 in EL-4 (we have 0.78_01).
+# This is a reference to CPAN RT#44066, where it says that there was an API
+# change in Attribute::Handlers, making Attribute::Params::Validate
+# incompatible. However, the test suite still passes and the version of
+# Attribute::Params::Validate in Params::Validate 0.89 (the first EPEL-4
+# release) is exactly the same as in Params::Validate 0.95, so this problem
+# has always been present in EPEL-4.
+
+Summary:	Params-Validate Perl module
+Name:		perl-Params-Validate
+Version:	0.95
+Release:	1%{?dist}
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/Params-Validate/
+Source0:	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:	perl(ExtUtils::CBuilder)
+BuildRequires:	perl(Module::Build)
+BuildRequires:	perl(Pod::Man)
 BuildRequires:	perl(Readonly)
 BuildRequires:	perl(Readonly::XS)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+BuildRequires:	perl(Test::Taint)
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 The Params::Validate module allows you to validate method or function
@@ -28,33 +39,47 @@ certain methods, or applying validation 
 %prep
 %setup -q -n Params-Validate-%{version}
 
+# Remove redundant unversioned provide
+%global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -Fvx 'perl(Params::Validate)'"
+%define __perl_provides %{provfilt}
+
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
-make %{?_smp_mflags}
+%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
+./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
+./Build install destdir=%{buildroot} create_packlist=0
+/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
+/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} \; 2>/dev/null
+%{__chmod} -R u+w %{buildroot}
 
 %check
-make test
+LC_ALL=C AUTHOR_TESTING=1 ./Build test
+
+%clean
+%{__rm} -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
 %doc Changes LICENSE README TODO
-%{perl_vendorarch}/Params
-%{perl_vendorarch}/auto/Params
-%{perl_vendorarch}/Attribute
-%{_mandir}/man3/*
+%{perl_vendorarch}/Params/
+%{perl_vendorarch}/auto/Params/
+%{perl_vendorarch}/Attribute/
+%{_mandir}/man3/Attribute::Params::Validate.3pm*
+%{_mandir}/man3/Params::Validate.3pm*
+%{_mandir}/man3/Params::ValidatePP.3pm*
+%{_mandir}/man3/Params::ValidateXS.3pm*
 
 %changelog
+* Wed Apr 21 2010 Paul Howarth <paul@xxxxxxxxxxxx> - 0.95-1
+- Update to 0.95
+- Add filter for unversioned provide
+- Switch to Build.PL
+- Enable AUTHOR_TESTING
+- BR: perl(Pod::Man), perl(Test::Pod), perl(Test::Pod::Coverage)
+- Make %%files list more specific
+
 * Tue Nov 13 2007 Ralf Corsépius <rc040203@xxxxxxxxxx> - 0.89-1
 - Upstream update.
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Params-Validate/EL-4/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	20 Dec 2007 15:38:48 -0000	1.3
+++ sources	21 Apr 2010 10:04:03 -0000	1.4
@@ -1 +1 @@
-b53ff2b9595623aaa4f98d8b31a5a1c2  Params-Validate-0.89.tar.gz
+f544f12357ae4ba44044cd8cb2b83a9f  Params-Validate-0.95.tar.gz

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux