]> git.pld-linux.org Git - packages/perl-Quota.git/blame - perl-Quota.spec
- rebuild for perl 5.20
[packages/perl-Quota.git] / perl-Quota.spec
CommitLineData
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 9Summary: Quota - Perl interface to file system quotas
620b7b52 10Summary(pl.UTF-8): Quota - perlowy interfejs do quot systemów plików
85c5b000 11Name: perl-Quota
58e87b07 12Version: 1.6.7
fce89ac3 13Release: 3
4f80f67e 14# same as perl
15License: GPL v1+ or Artistic
85c5b000 16Group: Development/Languages/Perl
0a67d7ff 17Source0: http://www.cpan.org/modules/by-module/Quota/%{pnam}-%{version}.tar.gz
58e87b07 18# Source0-md5: 3bc663fa72ec3522f1360d01ddf3b5a5
f838318e 19Patch0: %{name}-paths.patch
87bbf0cb 20Patch1: %{name}-pic.patch
0a67d7ff 21URL: http://search.cpan.org/dist/Quota/
b488a09d 22BuildRequires: perl-devel >= 1:5.8.0
363d2ad9 23BuildRequires: rpm-perlprov >= 4.1-13
8e215b17 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85c5b000 25
26%description
88736a78 27The Quota module provides access to file system quotas. The quotactl
3b2ebf16 28system call or ioctl is used to query or set quotas on the local host,
29or queries are submitted via RPC to a remote host. Mount tables can
88736a78
JB
30be parsed with getmntent and paths can be translated to device files
31(or whatever the actual quotactl implementations needs as argument)
3b2ebf16 32of the according file system.
85c5b000 33
9a900c91
JR
34%description -l pl.UTF-8
35Moduł Quota daje dostęp do quot systemów plików. Używa wywołań
88736a78 36systemowych quotactl lub ioctl do sprawdzania lub ustawiania quot
9a900c91
JR
37lokalnych lub przesyła zapytania po RPC do zdalnej maszyny. Tablice
38montowanych partycji mogą być analizowane poprzez getmntent, a ścieżki
39tłumaczone na pliki urządzeń (lub cokolwiek, czego dana implementacja
40quotactl 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
58rm -rf $RPM_BUILD_ROOT
f838318e 59install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85c5b000 60
4f80f67e 61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
1dfb63c2 63cp -af contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85c5b000 64
85c5b000 65%clean
66rm -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
This page took 0.108292 seconds and 4 git commands to generate.