]> 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 16f3299f448295074e40b3ed0a84392071719985..1813988ecbbe47e897ffb22dc5e2ee023764f799 100644 (file)
@@ -1,37 +1,50 @@
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    Filesys
-%define        pnam    DiskSpace
-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:       7
-License:       GPL
+Release:       9
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 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
-BuildRequires: perl-devel >= 5.6
 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 %{pdir}-%{pnam}-%{version}
 
 %build
 %{__perl} Makefile.PL \
-       INSTALLDIRS=vendor 
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.1149 seconds and 4 git commands to generate.