]> git.pld-linux.org Git - packages/perl-Filesys-DiskSpace.git/blobdiff - perl-Filesys-DiskSpace.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Filesys-DiskSpace.git] / perl-Filesys-DiskSpace.spec
index 6deb5dafcb85e97b5a715048e053be59144eed91..1813988ecbbe47e897ffb22dc5e2ee023764f799 100644 (file)
@@ -1,53 +1,56 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       Filesys-DiskSpace perl module
-Summary(pl):   Modu³ perla Filesys-DiskSpace
+#
+# Conditional build:
+%bcond_with    tests   # perform crappy "make test"
+
+%define                pdir    Filesys
+%define                pnam    DiskSpace
+Summary:       Filesys::DiskSpace - Perl df
+Summary(pl.UTF-8):     Filesys::DiskSpace - df w Perlu
 Name:          perl-Filesys-DiskSpace
 Version:       0.05
-Release:       1
-License:       GPL
+Release:       9
+# 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/Filesys/Filesys-DiskSpace-%{version}.tar.gz
-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: b95651483e0234db33561a53708e007d
+URL:           http://search.cpan.org/dist/Filesys-DiskSpace/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Filesys-DiskSpace - Perl df.
+The Filesys::DiskSpace Perl module is used for displaying information
+of a file system such as its type, the amount of disk space occupied,
+the total disk space and the number of inodes.
 
-%description -l pl
-Filesys-DiskSpace - 'df' dla perla.
+%description -l pl.UTF-8
+Moduł Perla Filesys::DiskSpace służy do wypisywania takich informacji
+o systemie plików, jak jego typ, ilość zajętego miejsca na dysku,
+łączna pojemność dysku i liczba i-węzłów.
 
 %prep
-%setup -q -n Filesys-DiskSpace-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Filesys/DiskSpace
-  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}/Filesys/DiskSpace.pm
-%{perl_sitearch}/auto/Filesys/DiskSpace
-
+%doc README
+%{perl_vendorlib}/Filesys/DiskSpace.pm
 %{_mandir}/man3/*
This page took 0.031339 seconds and 4 git commands to generate.