]> git.pld-linux.org Git - packages/perl-Math-PRSG.git/blobdiff - perl-Math-PRSG.spec
- massive attack: change CPAN URLs
[packages/perl-Math-PRSG.git] / perl-Math-PRSG.spec
index 4f94609a450ff0f24ab43e5ecfa1f26e41425933..fb36fcbe5464c2f0108435a39d72afea1211f222 100644 (file)
@@ -1,47 +1,37 @@
 %include       /usr/lib/rpm/macros.perl
-Summary:       Math-PRSG perl module
-Summary(pl):   Modu³ perla Math-PRSG
+%define        pdir    Math
+%define        pnam    PRSG
+Summary:       Math::PRSG perl module
+Summary(pl):   Modu³ perla Math::PRSG
 Name:          perl-Math-PRSG
 Version:       1.0
-Release:       3
+Release:       7
 License:       GPL
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-PRSG-%{version}.tar.gz
-Patch0:                perl-Math-PRSG-paths.patch
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+Patch0:                %{name}-paths.patch
 BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+BuildRequires: perl >= 5.6
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Math-PRSG - interface to pseudo random sequence generator function.
+Math::PRSG - interface to pseudo random sequence generator function.
 
 %description -l pl
-Math-PRSG - interfejs do funkcji generowania pseudolosowych sekwencji.
+Math::PRSG - interfejs do funkcji generowania pseudolosowych sekwencji.
 
 %prep
-%setup -q -n Math-PRSG-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -p1
 
 %build
 perl Makefile.PL
-make OPTIMIZE="$RPM_OPT_FLAGS"
+%{__make} OPTIMIZE="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Math/PRSG/*.so
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Math/PRSG
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,12 +39,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc examples/prsg_driver.pl
-
 %{perl_sitearch}/Math/PRSG.pm
-
 %dir %{perl_sitearch}/auto/Math/PRSG
-%{perl_sitearch}/auto/Math/PRSG/.packlist
 %{perl_sitearch}/auto/Math/PRSG/PRSG.bs
 %attr(755,root,root) %{perl_sitearch}/auto/Math/PRSG/PRSG.so
-
 %{_mandir}/man3/*
This page took 0.036513 seconds and 4 git commands to generate.