rpms/perl-Math-GMP/devel perl-Math-GMP.spec,1.14,1.15

Paul Howarth pghmcfc at fedoraproject.org
Sat Mar 7 21:34:02 UTC 2009


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Math-GMP/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19195

Modified Files:
	perl-Math-GMP.spec 
Log Message:
- Filter out unwanted provides for perl shared objects
- Do the build in a subdirectory so that the debug files list doesn't interfere
  with the signature test
- Enable the signature test
- Run the tests in the en_US locale - spell check tests now pass
- Add buildreq perl(YAML) to enable the YAML tests



Index: perl-Math-GMP.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Math-GMP/devel/perl-Math-GMP.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- perl-Math-GMP.spec	27 Feb 2009 00:35:31 -0000	1.14
+++ perl-Math-GMP.spec	7 Mar 2009 21:33:32 -0000	1.15
@@ -1,7 +1,7 @@
 Summary:	High speed arbitrary size integer math
 Name:		perl-Math-GMP
 Version:	2.05
-Release:	3%{?dist}
+Release:	4%{?dist}
 License:	LGPLv2+
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/Math-GMP/
@@ -11,7 +11,13 @@
 BuildRequires:	gmp-devel, perl(ExtUtils::MakeMaker), perl(Test::More), aspell-en
 BuildRequires:	perl(Module::Signature), perl(Perl::Critic), perl(Pod::Spell)
 BuildRequires:	perl(Test::Pod), perl(Test::YAML::Meta), perl(Text::SpellChecker)
-BuildRequires:	perl(File::Comments)
+BuildRequires:	perl(File::Comments), perl(YAML)
+
+# don't "provide" private Perl libs
+%global _use_internal_dependency_generator 0
+%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
+%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
+%global __find_requires /bin/sh -c "%{__deploop R}"
 
 %description
 Math::GMP was designed to be a drop-in replacement both for Math::BigInt and
@@ -22,26 +28,37 @@
 %prep
 %setup -q -n Math-GMP-%{version}
 
+# Do the build in a subdirectory so that the debug files list doesn't interfere
+# with the signature test
+set -- * .perlcriticrc
+%{__mkdir} source
+%{__mv} "$@" source
+# Copy docs back to top level for %doc
+%{__cp} -a source/{README,Changes,LICENSE} .
+
 %build
+cd source
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 %{__make} %{?_smp_mflags}
+cd -
 
 %check
-# Note:
-# Perl::Critic test fails, disabled for now
-# Module::Signature test fails due to presence of debuginfo data in build dir
-# Pod::Coverage test fails
-# Spell check tests fails
-%{__make} test \
-	TEST_AUTHOR=1 TEST_CRITIC=0 TEST_SIGNATURE=0 TEST_SPELL=0 TEST_VERBOSE=1
+# Notes:
+# Locale set to en_US for spell check tests
+# Perl::Critic tests fail - disabled for now by setting TEST_CRITIC=0
+# Pod::Coverage tests fail - disabled for now by not having BR: perl(Test::Pod::Coverage)
+LC_ALL=en_US %{__make} -C source test \
+	TEST_AUTHOR=1 TEST_CRITIC=0 TEST_SIGNATURE=1 TEST_SPELL=1 TEST_VERBOSE=1
 
 %install
 %{__rm} -rf %{buildroot}
+cd source
 %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
 /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
 /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}/*
+cd -
 
 %clean
 %{__rm} -rf %{buildroot}
@@ -54,12 +71,20 @@
 %{_mandir}/man3/Math::GMP.3pm*
 
 %changelog
+* Sat Mar  7 2009 Paul Howarth <paul at city-fan.org> 2.05-4
+- Filter out unwanted provides for perl shared objects
+- Do the build in a subdirectory so that the debug files list doesn't interfere
+  with the signature test
+- Enable the signature test
+- Run the tests in the en_US locale - spell check tests now pass
+- Add buildreq perl(YAML) to enable the YAML tests
+
 * Thu Feb 26 2009 Paul Howarth <paul at city-fan.org> 2.05-3
 - Add buildreq aspell-en as it's not pulled in by aspell after Fedora 10
 - Add buildreq perl(File::Comments) to support spellchecking of comments
 - Disable spellcheck tests as they fail anyway
 
-* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.05-2
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> 2.05-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
 * Tue Oct  7 2008 Paul Howarth <paul at city-fan.org> 2.05-1




More information about the Fedora-perl-devel-list mailing list