]> git.pld-linux.org Git - packages/quota.git/blob - quota.spec
- updated to 4.01
[packages/quota.git] / quota.spec
1 # TODO:
2 # - add warnquota as cron job
3 # - fix quota-pl.po-update.patch
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.01
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:  5c2c31e321d2e1322ce12d69ae5c66d6
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
36 BuildRequires:  automake
37 %{?with_netlinks:BuildRequires: dbus-devel}
38 BuildRequires:  e2fsprogs-devel
39 BuildRequires:  gettext-devel
40 %{?with_netlinks:BuildRequires: libnl-devel}
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 -f $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 echo ".so rquotad.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
177
178 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
179 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.quota-non-english-man-pages
180
181 # interface included in glibc-devel
182 %{__rm} $RPM_BUILD_ROOT{%{_includedir}/rpcsvc/rquota.[hx],%{_mandir}/man3/rquota.3}
183
184 %find_lang quota
185
186 %clean
187 rm -rf $RPM_BUILD_ROOT
188
189 %post rquotad
190 /sbin/chkconfig --add rquotad
191 %service rquotad restart "RPC rquotad"
192
193 %preun rquotad
194 if [ "$1" = "0" ]; then
195         %service rquotad stop
196         /sbin/chkconfig --del rquotad
197 fi
198
199 %triggerpostun rquotad -- quota-rquotad < 3.14-3
200 /sbin/chkconfig rquotad reset
201
202 %files -f quota.lang
203 %defattr(644,root,root,755)
204 %doc Changelog README.{ldap-support,mailserver} doc/{quotas-1.eps,quotas.ms} quotatab
205 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotagrpadmins
206 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotatab
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/warnquota.conf
208 %attr(755,root,root) /sbin/convertquota
209 %attr(755,root,root) /sbin/quotacheck
210 %attr(755,root,root) /sbin/quotaoff
211 %attr(755,root,root) /sbin/quotaon
212 %attr(755,root,root) %{_sbindir}/edquota
213 %attr(755,root,root) %{_sbindir}/quotastats
214 %attr(755,root,root) %{_sbindir}/quot
215 %attr(755,root,root) %{_sbindir}/repquota
216 %attr(755,root,root) %{_sbindir}/setquota
217 %attr(755,root,root) %{_sbindir}/warnquota
218 %attr(755,root,root) %{_sbindir}/xqmstats
219 %attr(755,root,root) %{_bindir}/quota
220 %attr(755,root,root) %{_bindir}/quotasync
221
222 %{_mandir}/man1/quota.1*
223 %{_mandir}/man8/convertquota.8*
224 %{_mandir}/man8/edquota.8*
225 %{_mandir}/man8/quot.8*
226 %{_mandir}/man8/quota_nld.8*
227 %{_mandir}/man8/quotacheck.8*
228 %{_mandir}/man8/quotaoff.8*
229 %{_mandir}/man8/quotaon.8*
230 %{_mandir}/man8/quotastats.8*
231 %{_mandir}/man8/repquota.8*
232 %{_mandir}/man8/setquota.8*
233 %{_mandir}/man8/warnquota.8*
234 %{_mandir}/man8/xqmstats.8*
235
236 %lang(fi) %{_mandir}/fi/man1/*
237
238 %lang(hu) %{_mandir}/hu/man8/*
239
240 %lang(ja) %{_mandir}/ja/man1/*
241 %lang(ja) %{_mandir}/ja/man8/quota*
242 %lang(ja) %{_mandir}/ja/man8/edquota.8*
243 %lang(ja) %{_mandir}/ja/man8/repquota.8*
244 %lang(ja) %{_mandir}/ja/man8/setquota.8*
245
246 %lang(pl) %{_mandir}/pl/man1/*
247 %lang(pl) %{_mandir}/pl/man8/*
248
249 %files rquotad
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_sbindir}/rpc.rquotad
252 %attr(754,root,root) /etc/rc.d/init.d/rquotad
253 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
254
255 %{_mandir}/man8/rpc.rquotad.8*
256 %{_mandir}/man8/rquotad.8*
257 %lang(fr) %{_mandir}/fr/man8/rpc.rquotad.8*
258 %lang(fr) %{_mandir}/fr/man8/rquotad.8*
259 %lang(ja) %{_mandir}/ja/man8/rpc.rquotad.8*
260 %lang(ja) %{_mandir}/ja/man8/rquotad.8*
This page took 0.091995 seconds and 4 git commands to generate.