]>
Commit | Line | Data |
---|---|---|
58137a62 | 1 | # |
2 | # Conditional build: | |
8b827ee0 | 3 | %bcond_with tests # perform "make test" |
4f80f67e | 4 | # interactive |
58137a62 | 5 | # |
f4a26466 | 6 | %include /usr/lib/rpm/macros.perl |
b3bd119c | 7 | %define pdir Quota |
8 | %define pnam Quota | |
3b2ebf16 | 9 | Summary: Quota - Perl interface to file system quotas |
620b7b52 | 10 | Summary(pl.UTF-8): Quota - perlowy interfejs do quot systemów plików |
85c5b000 | 11 | Name: perl-Quota |
58e87b07 | 12 | Version: 1.6.7 |
fce89ac3 | 13 | Release: 3 |
4f80f67e | 14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
85c5b000 | 16 | Group: Development/Languages/Perl |
0a67d7ff | 17 | Source0: http://www.cpan.org/modules/by-module/Quota/%{pnam}-%{version}.tar.gz |
58e87b07 | 18 | # Source0-md5: 3bc663fa72ec3522f1360d01ddf3b5a5 |
f838318e | 19 | Patch0: %{name}-paths.patch |
87bbf0cb | 20 | Patch1: %{name}-pic.patch |
0a67d7ff | 21 | URL: http://search.cpan.org/dist/Quota/ |
b488a09d | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
363d2ad9 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
8e215b17 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
85c5b000 | 25 | |
26 | %description | |
88736a78 | 27 | The Quota module provides access to file system quotas. The quotactl |
3b2ebf16 | 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 | |
88736a78 JB |
30 | be parsed with getmntent and paths can be translated to device files |
31 | (or whatever the actual quotactl implementations needs as argument) | |
3b2ebf16 | 32 | of the according file system. |
85c5b000 | 33 | |
9a900c91 JR |
34 | %description -l pl.UTF-8 |
35 | Moduł Quota daje dostęp do quot systemów plików. Używa wywołań | |
88736a78 | 36 | systemowych quotactl lub ioctl do sprawdzania lub ustawiania quot |
9a900c91 JR |
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. | |
88736a78 | 41 | |
85c5b000 | 42 | %prep |
d336136c | 43 | %setup -q -n %{pnam}-%{version} |
31f8d73c | 44 | %patch0 -p0 |
87bbf0cb | 45 | %patch1 -p1 |
85c5b000 | 46 | |
47 | %build | |
363d2ad9 | 48 | %{__perl} Makefile.PL \ |
49 | INSTALLDIRS=vendor | |
4f80f67e | 50 | %{__make} \ |
eb194b72 | 51 | CC="%{__cc}" \ |
4f80f67e | 52 | OPTIMIZE="%{rpmcflags}" |
85c5b000 | 53 | |
58137a62 | 54 | # test is interactive |
8b827ee0 | 55 | %{?with_tests:%{__make} test} |
58137a62 | 56 | |
85c5b000 | 57 | %install |
58 | rm -rf $RPM_BUILD_ROOT | |
f838318e | 59 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
85c5b000 | 60 | |
4f80f67e | 61 | %{__make} install \ |
62 | DESTDIR=$RPM_BUILD_ROOT | |
1dfb63c2 | 63 | cp -af contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
85c5b000 | 64 | |
85c5b000 | 65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
8a13e593 | 70 | %doc CHANGES README |
0a67d7ff JB |
71 | %{perl_vendorarch}/Quota.pm |
72 | %dir %{perl_vendorarch}/auto/Quota | |
73 | %{perl_vendorarch}/auto/Quota/autosplit.ix | |
74 | %{perl_vendorarch}/auto/Quota/Quota.bs | |
75 | %attr(755,root,root) %{perl_vendorarch}/auto/Quota/Quota.so | |
85c5b000 | 76 | %{_mandir}/man3/* |
d336136c | 77 | %dir %{_examplesdir}/%{name}-%{version} |
78 | %{_examplesdir}/%{name}-%{version}/[Rqr]* | |
79 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl |