]> git.pld-linux.org Git - packages/perl-Quota.git/commitdiff
- release 2: rebuild against perl 5.6 and use rpm automation. perl-Quota-1_3-2
authorkloczek <kloczek@pld-linux.org>
Tue, 23 Jan 2001 15:39:06 +0000 (15:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Quota.spec -> 1.8

perl-Quota.spec

index 34b503907cff4d89723c36ed22794241f5545a85..cd22cf5153fa24a72ac2e86770c6f83df6a28024 100644 (file)
@@ -3,14 +3,15 @@ Summary:      Quota perl module
 Summary(pl):   Modu³ perla Quota
 Name:          perl-Quota
 Version:       1.3
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Languages/Perl
+Group(de):     Entwicklung/Sprachen/Perl
 Group(pl):     Programowanie/Jêzyki/Perl
 Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Quota/Quota-%{version}.tar.gz
-Patch0:                perl-Quota-paths.patch
+Patch0:                %{name}-paths.patch
 BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
+BuildRequires: perl >= 5.6
 %requires_eq   perl
 Requires:      %{perl_sitearch}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,42 +28,28 @@ Modu
 
 %build
 perl Makefile.PL
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__make} OPTIMIZE="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-cp -a contrib $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name}
+cp -a contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Quota/*.so
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Quota
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        CHANGES README
+gzip -9nf CHANGES README
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {CHANGES,README}.gz
-
+%doc *.gz
 %{perl_sitearch}/Quota.pm
-
 %dir %{perl_sitearch}/auto/Quota
-%{perl_sitearch}/auto/Quota/.packlist
 %{perl_sitearch}/auto/Quota/autosplit.ix
 %{perl_sitearch}/auto/Quota/Quota.bs
 %attr(755,root,root) %{perl_sitearch}/auto/Quota/Quota.so
-
 %{_mandir}/man3/*
-
-%{_prefix}/src/examples/%{name}
+%{_examplesdir}/%{name}-%{version}
This page took 0.09269 seconds and 4 git commands to generate.