1 %define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
2 Summary: Math-Spline perl module
3 Summary(pl): Modu³ perla Math-Spline
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-Spline-%{version}.tar.gz
11 Patch: perl-Math-Spline-man.patch
12 BuildRequires: perl >= 5.005_03-10
14 Requires: %{perl_sitearch}
15 BuildRoot: /tmp/%{name}-%{version}-root
18 Math-Spline perl module.
21 Modu³ perla Math-Spline.
24 %setup -q -n Math-Spline-%{version}
32 rm -rf $RPM_BUILD_ROOT
33 make install DESTDIR=$RPM_BUILD_ROOT
36 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Math/Spline
37 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
38 mv .packlist.new .packlist
41 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
51 %{perl_sitelib}/Math/Spline.pm
52 %{perl_sitearch}/auto/Math/Spline