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