]> git.pld-linux.org Git - packages/quota.git/blob - quota.spec
- updated pl.po-update patch is back
[packages/quota.git] / quota.spec
1 # TODO:
2 # - add warnquota as cron job
3 #
4 # Conditional build:
5 %bcond_with     kernel64        # build 32bit userland for 64bit kernel
6 #
7 Summary:        Quota administration package%{?with_kernel64: - 32bit userland for 64bit kernel}
8 Summary(de.UTF-8):      Quotenverwaltungspaket
9 Summary(es.UTF-8):      Paquete de administración cuota
10 Summary(fr.UTF-8):      Paquetage de gestion des quotas
11 Summary(pl.UTF-8):      Pakiet administaracyjny Quota%{?with_kernel64: - 32 bitowe programy dla 64 bitowego jądra}
12 Summary(pt_BR.UTF-8):   Pacote de administração quota
13 Summary(ru.UTF-8):      Утилиты системного администратора для управления дисковыми квотами
14 Summary(tr.UTF-8):      Kota denetleme paketi
15 Summary(uk.UTF-8):      Утиліти системного адміністратора для керування дисковими квотами
16 Summary(zh_CN.UTF-8):   磁盘使用情况的监控工具
17 Name:           quota%{?with_kernel64:64}
18 Version:        3.16
19 Release:        1
20 Epoch:          1
21 License:        BSD
22 Group:          Applications/System
23 Source0:        http://dl.sourceforge.net/linuxquota/quota-%{version}.tar.gz
24 # Source0-md5:  6d1467458a092c4754abef92e7fa6ebe
25 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/quota-non-english-man-pages.tar.bz2
26 # Source1-md5:  05a209bc054366ea190d1c67669f9ca3
27 Source2:        rquotad.init
28 Source3:        rquotad.sysconfig
29 URL:            http://sourceforge.net/projects/linuxquota/
30 Patch0:         quota-defaults.patch
31 Patch1:         quota-pl.po-update.patch
32 Patch2:         quota-repquota-len-fix.patch
33 BuildRequires:  autoconf
34 BuildRequires:  automake
35 BuildRequires:  e2fsprogs-devel
36 BuildRequires:  gettext-devel
37 BuildRequires:  libwrap-devel
38 BuildRequires:  rpmbuild(macros) >= 1.268
39 %if %{with kernel64}
40 # possibly also sparc and ppc
41 ExclusiveArch:  %{ix86}
42 %endif
43 BuildRoot:      %{tmpdir}/quota-%{version}-root-%(id -u -n)
44
45 %description
46 Quotas allow the system administrator to limit disk usage by a user
47 and/or group per filesystem. This package contains the tools which are
48 needed to enable, modify, and update quotas.
49
50 %if %{with kernel64}
51 Warning: This package is for 32bit systems running on 64bit kernel!
52 %endif
53
54 %description -l de.UTF-8
55 Quotas gestatten es dem Systemadministrator, die Festplattennutzung
56 durch einen Anwender und/oder Gruppen pro Dateisystem zu beschränken.
57 Es enthält die Tools, die zur Aktivierung, Modifikation und zum
58 Aktualisieren von Quoten erforderlich sind."
59
60 %description -l es.UTF-8
61 Cuotas permite al administrador del sistema limitar el uso de disco
62 por un usuario y/o grupo por sistema de archivos. Este paquete
63 contiene las herramientas que son necesarias para activar, modificar y
64 actualizar cuotas.
65
66 %description -l fr.UTF-8
67 Les quotas permettant à l'administrateur système de limiter
68 l'utilisation disque par un utilisateur et/ou un groupe par système de
69 fichiers. Ce paquetage contient les outils nécessaires à la mise en
70 place, la modification et la mise à jour des quotas.
71
72 %description -l pl.UTF-8
73 Quota pozwala administratorowi systemu na ograniczanie wielkości
74 miejsca na dysku dla użytkownika/grupy. Pakiet ten zawiera narzędzia
75 do aktywacji i modyfikacji Quoty.
76
77 %if %{with kernel64}
78 Uwaga: Ten pakiet jest przeznaczony wyłącznie dla 32 bitowych systemów
79        działających na 64 bitowym jądrze!
80 %endif
81
82 %description -l pt_BR.UTF-8
83 Quotas permite ao administrador do sistema limitar o uso de disco por
84 um usuário e/ou grupo por sistema de arquivos. Este pacote contém as
85 ferramentas que são necessárias para ativar, modificar e atualizar
86 quotas.
87
88 %description -l ru.UTF-8
89 Пакет quota содержит утилиты системного администратора для мониторинга
90 и ограничения использования дискового пространства пользователями и их
91 группами в каждой файловой системе.
92
93 %description -l tr.UTF-8
94 Kota, sistem yöneticisine, bir kullanıcının ya da kullanıcı grubunun
95 disk kullanımını sınırlama yeteneği verir. Bu paket içerisindeki
96 yazılımlar kota sistemini kullanmak için gereken kontrol
97 yazılımlarıdır.
98
99 %description -l uk.UTF-8
100 Пакет quota містить утиліти системного адміністратора для моніторингу
101 та обмеження використання дискового простору користувачами та їх
102 групами в кожній файловій системі.
103
104 %package rquotad
105 Summary:        Remote quota server
106 Summary(pl.UTF-8):      Zdalny serwer quota
107 Group:          Networking/Daemons
108 Requires(post,preun):   /sbin/chkconfig
109 Requires:       portmap >= 4.0
110 Requires:       rc-scripts >= 0.4.1.5
111 Obsoletes:      nfs-utils-rquotad
112
113 %description rquotad
114 rquotad is an rpc(3N) server which returns quotas for a user of a
115 local file system which is mounted by a remote machine over the NFS.
116 The results are used by quota(1) to display user quotas for remote
117 file systems.
118
119 %if %{with kernel64}
120 Warning: This package is for 32bit systems running on 64bit kernel!
121 %endif
122
123 %description rquotad -l pl.UTF-8
124 rquotad jest serverem rpc(3N), który zwraca quoty użytkownika
125 lokalnego systemu plików, który jest zamountowany przez zdalną maszynę
126 poprzez NFS. Rezultaty są używane przez quota(1), aby wyświetlić quote
127 dla zdalnego systemu plików.
128
129 %if %{with kernel64}
130 Uwaga: Ten pakiet jest przeznaczony wyłącznie dla 32 bitowych systemów
131        działających na 64 bitowym jądrze!
132 %endif
133
134 %prep
135 %setup -q -n quota-tools
136 %patch0 -p1
137 %patch1 -p1
138 %patch2 -p1
139
140 %build
141 %{__aclocal}
142 %{__autoconf}
143
144 %if %{with kernel64}
145 CFLAGS="%{rpmcflags} -malign-double"
146 export CFLAGS
147 %endif
148
149 %configure \
150         --enable-rpcsetquota
151
152 %{__make} \
153         CC="%{__cc}"
154
155 %install
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT{/sbin,/etc/{rc.d/init.d,sysconfig}}
158
159 %{__make} install \
160         ROOTDIR=$RPM_BUILD_ROOT
161
162 # essential, used by rc-scripts
163 mv -f $RPM_BUILD_ROOT%{_sbindir}/{quotacheck,quotaon,quotaoff,convertquota} \
164         $RPM_BUILD_ROOT/sbin
165
166 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
167 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
168
169 echo ".so quotaon.8" > $RPM_BUILD_ROOT%{_mandir}/man8/quotaoff.8
170 echo ".so rquotad.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
171
172 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
173
174 %find_lang quota
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
179 %post rquotad
180 /sbin/chkconfig --add rquotad
181 %service rquotad restart "RPC rquotad"
182
183 %preun rquotad
184 if [ "$1" = "0" ]; then
185         %service rquotad stop
186         /sbin/chkconfig --del rquotad
187 fi
188
189 %triggerpostun rquotad -- quota-rquotad < 3.14-3
190 /sbin/chkconfig rquotad reset
191
192 %files -f quota.lang
193 %defattr(644,root,root,755)
194 %doc Changelog doc/{quotas-1.eps,quotas.ms} quotatab
195 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotagrpadmins
196 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotatab
197 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/warnquota.conf
198 %attr(755,root,root) /sbin/convertquota
199 %attr(755,root,root) /sbin/quotacheck
200 %attr(755,root,root) /sbin/quotaoff
201 %attr(755,root,root) /sbin/quotaon
202 %attr(755,root,root) %{_sbindir}/edquota
203 %attr(755,root,root) %{_sbindir}/quotastats
204 %attr(755,root,root) %{_sbindir}/quot
205 %attr(755,root,root) %{_sbindir}/repquota
206 %attr(755,root,root) %{_sbindir}/setquota
207 %attr(755,root,root) %{_sbindir}/warnquota
208 %attr(755,root,root) %{_sbindir}/xqmstats
209 %attr(755,root,root) %{_bindir}/*
210
211 %{_mandir}/man1/*
212 %{_mandir}/man8/quot*.8*
213 %{_mandir}/man8/*quota.8*
214 %{_mandir}/man8/xqmstats.8*
215
216 %lang(fi) %{_mandir}/fi/man1/*
217
218 %lang(hu) %{_mandir}/hu/man8/*
219
220 %lang(ja) %{_mandir}/ja/man1/*
221 %lang(ja) %{_mandir}/ja/man8/quota*
222 %lang(ja) %{_mandir}/ja/man8/edquota.8*
223 %lang(ja) %{_mandir}/ja/man8/repquota.8*
224 %lang(ja) %{_mandir}/ja/man8/setquota.8*
225
226 %lang(pl) %{_mandir}/pl/man1/*
227 %lang(pl) %{_mandir}/pl/man8/*
228
229 %files rquotad
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_sbindir}/rpc.rquotad
232 %attr(754,root,root) /etc/rc.d/init.d/rquotad
233 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
234
235 %{_mandir}/man8/*rquotad.8*
236 %lang(fr) %{_mandir}/fr/man8/*rquotad.8*
237 %lang(ja) %{_mandir}/ja/man8/*rquotad.8*
This page took 0.157784 seconds and 3 git commands to generate.