3 %bcond_with tests # perform "make test"
8 Summary: Quota - Perl interface to file system quotas
9 Summary(pl.UTF-8): Quota - perlowy interfejs do quot systemów plików
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Quota/%{pnam}-%{version}.tar.gz
17 # Source0-md5: ce32e518e915d9549e0952d0f82a79d0
18 Patch0: %{name}-paths.patch
19 Patch1: %{name}-pic.patch
20 URL: http://search.cpan.org/dist/Quota/
21 BuildRequires: libtirpc-devel
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Quota module provides access to file system quotas. The quotactl
28 system call or ioctl is used to query or set quotas on the local host,
29 or queries are submitted via RPC to a remote host. Mount tables can
30 be parsed with getmntent and paths can be translated to device files
31 (or whatever the actual quotactl implementations needs as argument)
32 of the according file system.
34 %description -l pl.UTF-8
35 Moduł Quota daje dostęp do quot systemów plików. Używa wywołań
36 systemowych quotactl lub ioctl do sprawdzania lub ustawiania quot
37 lokalnych lub przesyła zapytania po RPC do zdalnej maszyny. Tablice
38 montowanych partycji mogą być analizowane poprzez getmntent, a ścieżki
39 tłumaczone na pliki urządzeń (lub cokolwiek, czego dana implementacja
40 quotactl wymaga jako parametru) odpowiadających im systemów plików.
43 %setup -q -n %{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 DESTDIR=$RPM_BUILD_ROOT
63 cp -af contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorarch}/Quota.pm
72 %dir %{perl_vendorarch}/auto/Quota
73 %{perl_vendorarch}/auto/Quota/autosplit.ix
74 %attr(755,root,root) %{perl_vendorarch}/auto/Quota/Quota.so
76 %dir %{_examplesdir}/%{name}-%{version}
77 %{_examplesdir}/%{name}-%{version}/[Rqr]*
78 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl