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