rpms/perl-Crypt-DH/EL-4 perl-Crypt-DH.spec,1.3,1.4

Paul Howarth pghmcfc at fedoraproject.org
Fri Mar 13 11:59:02 UTC 2009


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Crypt-DH/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1409/EL-4

Modified Files:
	perl-Crypt-DH.spec 
Log Message:
Clean up specs prior to first build


Index: perl-Crypt-DH.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Crypt-DH/EL-4/perl-Crypt-DH.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- perl-Crypt-DH.spec	12 Dec 2005 14:05:33 -0000	1.3
+++ perl-Crypt-DH.spec	13 Mar 2009 11:58:31 -0000	1.4
@@ -1,20 +1,28 @@
 # To skip the lengthy test suite, use:
 # rpmbuild --without checks
-%{!?bcond_with:%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}}
-%{!?bcond_without:%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}}
-%bcond_without checks
 
 Summary:	Perl module implementing the Diffie-Hellman key exchange system
 Name:		perl-Crypt-DH
 Version:	0.06
-Release:	3%{?dist}
-License:	GPL or Artistic
+Release:	9%{?dist}
+License:	GPL+ or Artistic
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/Crypt-DH/
 Source0:	http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Crypt-DH-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More)
+
+# Pull in Math::BigInt::GMP for GMP support for suitably recent versions of Math::BigInt
+# else use Math::GMP
+%if %(%{__perl} -MMath::BigInt -e 'use Math::BigInt 1.87;' 2>/dev/null && echo 1 || echo 0)
+BuildRequires:	perl(Math::BigInt::GMP)
+Requires:	perl(Math::BigInt::GMP)
+%else
+BuildRequires:	perl(Math::GMP)
+Requires:	perl(Math::GMP)
+%endif
 
 %description
 Crypt::DH is a Perl implementation of the Diffie-Hellman key exchange system.
@@ -31,25 +39,46 @@
 %{__make} %{?_smp_mflags}
 
 %check
-%{?with_checks:%{__make} test}
+%{!?_without_checks:%{__make} test}
 
 %install
 %{__rm} -rf %{buildroot}
 %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
 /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
+/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
 %{__chmod} -R u+w %{buildroot}/*
 
 %clean
 %{__rm} -rf %{buildroot}
 
 %files
-%defattr(-,root,root,0755)
+%defattr(-,root,root,-)
 %doc Changes ToDo
 %{perl_vendorlib}/Crypt/
 %{_mandir}/man3/Crypt::DH.3pm*
 
 %changelog
+* Tue Nov  4 2008 Paul Howarth <paul at city-fan.org> 0.06-9
+- BuildRequire and Require a GMP support module, either Math::GMP or
+  Math::BigInt::GMP depending on how recent Math::BigInt is
+
+* Thu Mar  6 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.06-8
+- Rebuild for new perl
+
+* Sat Aug 11 2007 Paul Howarth <paul at city-fan.org> 0.06-7
+- Clarify license as GPL v1 or later, or Artistic (same as perl)
+- Add buildreq perl(Test::More)
+
+* Wed Apr 18 2007 Paul Howarth <paul at city-fan.org> 0.06-6
+- Buildrequire perl(ExtUtils::MakeMaker)
+- Fix argument order for find with -depth
+
+* Tue Aug 29 2006 Paul Howarth <paul at city-fan.org> 0.06-5
+- FE6 mass rebuild
+
+* Thu Feb 16 2006 Paul Howarth <paul at city-fan.org> 0.06-4
+- Simplify conditional build by not using %%bcond_* macros
+
 * Mon Dec 12 2005 Paul Howarth <paul at city-fan.org> 0.06-3
 - Add support for FC-3, which doesn't have %%bcond_with{,out} predefined
 




More information about the fedora-extras-commits mailing list