]> git.pld-linux.org Git - packages/perl-Math-Derivative.git/blobdiff - perl-Math-Derivative.spec
- license fixes, unification
[packages/perl-Math-Derivative.git] / perl-Math-Derivative.spec
index 8bf6724674f278ab78524272842f4253063357ab..f95fead10e5803a6699a35cd83ca30d5d8a4046f 100644 (file)
@@ -1,55 +1,48 @@
 %include       /usr/lib/rpm/macros.perl
-Summary:       Math-Derivative perl module
-Summary(pl):   Modu³ perla Math-Derivative
+%define        pdir    Math
+%define        pnam    Derivative
+Summary:       Math::Derivative perl module
+Summary(pl):   Modu³ perla Math::Derivative
 Name:          perl-Math-Derivative
 Version:       0.01
-Release:       3
-License:       GPL
+Release:       10
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-Derivative-%{version}.tar.gz
-Patch0:                perl-Math-Derivative-man.patch
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: a359b1b4b545c03f4147594fc64420a2
+Patch0:                %{name}-man.patch
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Math-Derivative - Numeric 1st and 2nd order differentiation.
+Math::Derivative - Numeric 1st and 2nd order differentiation.
 
 %description -l pl
-Modu³ perla Math-Derivative.
+Modu³ perla Math::Derivative - obliczaj±cy pochodne pierwszego i
+drugiego rzêdu.
 
 %prep
-%setup -q -n Math-Derivative-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -p0
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Math/Derivative
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        README
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz
-
-%{perl_sitelib}/Math/Derivative.pm
-%{perl_sitearch}/auto/Math/Derivative
-
+%doc README
+%{perl_vendorlib}/Math/Derivative.pm
 %{_mandir}/man3/*
This page took 0.066292 seconds and 4 git commands to generate.