]>
Commit | Line | Data |
---|---|---|
2cc169e5 ER |
1 | # NOTE: |
2 | # - m68k and mips are the only not supported archs | |
9f1aa96a | 3 | # |
9f81736b | 4 | # Conditional build: |
6730cb3d JB |
5 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
6 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 7 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 8 | %bcond_with xalan # use the xalan xslt processor |
6cdf8db5 | 9 | %bcond_with legacy # build legacy 1.x utils |
04c2a702 | 10 | |
22ee1f7a | 11 | %define vproc_version 0.01 |
04c2a702 | 12 | |
8fe55c88 JR |
13 | %ifarch ppc |
14 | # pdflatex: refman: Invalid argument | |
15 | %undefine with_doc | |
16 | %endif | |
b681e6a9 | 17 | |
35d779f2 | 18 | # reqdb_pkg and reqdb_ver must match value from current rpm package in distro |
35d779f2 | 19 | %define reqdb_ver 5.2 |
076cf350 | 20 | %define reqdb_pkg db%{reqdb_ver} |
1f4eb45e | 21 | %define snap pre3054 |
2709d8e3 | 22 | %define rel 5 |
c4036d6e | 23 | Summary: Linux virtual server utilities |
33f71e01 | 24 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 25 | Name: util-vserver |
bc2ffe55 | 26 | Version: 0.30.216 |
2c41f437 | 27 | Release: 1.%{snap}.%{rel} |
c4036d6e | 28 | License: GPL |
fc8ba798 | 29 | Group: Applications/System |
385aa86b | 30 | Source0: http://people.linux-vserver.org/~dhozac/t/uv-testing/%{name}-%{version}-%{snap}.tar.bz2 |
1f4eb45e | 31 | # Source0-md5: d6fe16a0dbde811ae0672ca69aaf01c5 |
536c7360 | 32 | Source1: vprocunhide.init |
f16cd315 | 33 | Source2: vservers.init |
536c7360 | 34 | Source3: vservers-legacy.init |
9f81736b | 35 | Source4: rebootmgr.init |
f16cd315 | 36 | Source5: vservers.sysconfig |
9f81736b | 37 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
38 | Source7: vrootdevices.init |
39 | Source8: vrootdevices.sysconfig | |
19844202 | 40 | # A bit of documentation explaining package management |
47f9cd5f | 41 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 42 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 43 | Source10: %{name}-initpost.sh |
22ee1f7a | 44 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{vproc_version}.tar.bz2 |
e128cb8a | 45 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 |
4961db11 | 46 | Source12: %{name}-vhashify.cron |
468087c5 | 47 | Source13: ftp://ftp.pld-linux.org/dists/ac/PLD-2.0-Ac-GPG-key.asc |
48 | # Source13-md5: 8e7574d1de2fa95c2c54cd2ee03364c1 | |
49 | Source14: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
50 | # Source14-md5: 08b29584dd349aac9caa7610131a0a88 | |
49e22b19 | 51 | Source15: %{name}.init |
7c944e34 | 52 | Source16: %{name}.tmpfiles |
01331769 | 53 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 54 | Patch1: %{name}-pld.patch |
54c149ac | 55 | Patch2: %{name}-centos.patch |
1e07a54b | 56 | Patch3: %{name}-tld.patch |
01331769 | 57 | Patch4: %{name}-m4-diet.patch |
1e14ade8 | 58 | Patch5: %{name}-yum-verb-nogpg.patch |
f16cd315 | 59 | Patch6: %{name}-build-umask.patch |
33beda22 | 60 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 61 | Patch9: %{name}-dev.patch |
f5385f4a | 62 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 63 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 64 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 65 | Patch13: %{name}-tmpdir.patch |
e7ac6dd1 ER |
66 | Patch14: %{name}-rpmpath.patch |
67 | Patch15: %{name}-interfaces-ignore-cvs-dir.patch | |
761afb0b | 68 | Patch16: %{name}-personalitymachine.patch |
0edd7eb1 | 69 | Patch17: %{name}-backupfiles.patch |
bc2ffe55 | 70 | Patch18: %{name}-vprocunhide-net.patch |
bac1963d | 71 | # http://glen.alkohol.ee/pld/util-vserver-dbrebuild-internalize4.patch |
bc2ffe55 | 72 | Patch19: %{name}-dbrebuild-internalize4.patch |
bc2ffe55 | 73 | Patch21: %{name}-bash-wrapper.patch |
94a3845f | 74 | Patch22: %{name}-pivot-root-ugly-hack.patch |
21a3b8ba | 75 | Patch24: vunify-more-exclude.patch |
27dc70bd | 76 | Patch25: stat.patch |
1f4eb45e | 77 | |
696acb34 | 78 | Patch27: %{name}-rpm5.patch |
7352b984 | 79 | Patch28: diet-ccache.patch |
c8b51fec | 80 | Patch29: %{name}-centos6.patch |
5e98d590 | 81 | Patch30: vsysctl-ignore-files.patch |
f9347a64 | 82 | URL: http://savannah.nongnu.org/projects/util-vserver/ |
59ac117c | 83 | BuildRequires: autoconf |
c21e4fcc | 84 | BuildRequires: automake >= 1.9 |
6f3fd704 | 85 | BuildRequires: beecrypt-devel |
925e8edc | 86 | BuildRequires: ctags |
63fbe331 | 87 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.32-16} |
6730cb3d | 88 | BuildRequires: e2fsprogs-devel |
6f3fd704 | 89 | BuildRequires: libstdc++-devel |
c740301d | 90 | BuildRequires: libtool >= 1.5.14 |
08d35c12 | 91 | BuildRequires: pkgconfig |
21a3b8ba | 92 | BuildRequires: python-devel |
7890624b | 93 | BuildRequires: python-modules |
94 | BuildRequires: rpm-pythonprov | |
d6ac0c8c | 95 | BuildRequires: rpmbuild(macros) >= 1.647 |
08d35c12 | 96 | BuildRequires: sed >= 4.0 |
54d8402e | 97 | %if %{with doc} |
c27aa395 | 98 | BuildRequires: doxygen >= 1:1.7.3 |
3aaf9ac9 | 99 | BuildRequires: graphviz |
e8b52e06 | 100 | BuildRequires: libxslt-progs |
11eacd16 | 101 | BuildRequires: python-devel |
a1ab5811 | 102 | %if "%{pld_release}" != "th" |
6d7f9a61 | 103 | BuildRequires: tetex-fonts-jknappen |
104 | BuildRequires: tetex-format-pdflatex | |
105 | BuildRequires: tetex-makeindex | |
106 | BuildRequires: tetex-metafont | |
107 | %else | |
888b8665 | 108 | BuildRequires: texlive-fonts-rsfs |
bc2ffe55 JR |
109 | BuildRequires: texlive-fonts-type1-urw |
110 | BuildRequires: texlive-format-pdflatex | |
91ab8aa0 | 111 | BuildRequires: texlive-latex-ams |
c27aa395 | 112 | BuildRequires: texlive-latex-extend |
8d5e0559 | 113 | BuildRequires: texlive-latex-ucs |
bc2ffe55 JR |
114 | BuildRequires: texlive-makeindex |
115 | BuildRequires: texlive-pdftex | |
116 | BuildRequires: texlive-xetex | |
6d7f9a61 | 117 | %endif |
9f81736b | 118 | %{?with_xalan:BuildRequires: xalan-j} |
54d8402e | 119 | %endif |
2d6d0c17 | 120 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 121 | Requires: %{name}-lib = %{version}-%{release} |
2bef02ad | 122 | Requires: coreutils |
1e14ade8 | 123 | Requires: diffutils |
2709d8e3 | 124 | Requires: glibc-misc |
966e1664 | 125 | Requires: pld-release |
7ccbf05b | 126 | Requires: make |
fc5c9ef4 | 127 | Requires: mktemp >= 1.5-18 |
cf832f1a | 128 | Requires: rc-scripts >= 0.4.3.4 |
5dc515be | 129 | #Requires: rpm >= 5.4.10-36 |
07c48fe5 | 130 | Requires: tar |
fa6b08f2 | 131 | Requires: uname(release) >= 2.6.27 |
a1ab5811 | 132 | Requires: util-linux >= 2.13 |
33ef531a | 133 | Requires: vserver-distro-pld = %{version}-%{release} |
a343f348 | 134 | Suggests: %{reqdb_pkg}-utils |
4f782c13 | 135 | Obsoletes: util-vserver-build |
bf0ccb73 | 136 | Obsoletes: util-vserver-core |
82a15eaa | 137 | Obsoletes: util-vserver-init |
11eacd16 | 138 | Conflicts: poldek < 0.18.8-10 |
c4036d6e AM |
139 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
140 | ||
6492e391 AM |
141 | %if %{with dietlibc} |
142 | # binaries created with this option have broken segments when using dietlibc | |
143 | %define filterout_ld -Wl,-z,relro | |
144 | %endif | |
145 | ||
c993b99d ER |
146 | # for adapter |
147 | %define _usrbin /usr/bin | |
f996608b ER |
148 | %define _usrsbin /usr/sbin |
149 | %define _usrlib /usr/lib | |
c993b99d | 150 | |
c4036d6e AM |
151 | %description |
152 | This package provides the components and a framework to setup virtual | |
f9347a64 | 153 | servers. A virtual server runs inside a Linux server. It is |
c4036d6e AM |
154 | nevertheless highly independent. As such, you can run various services |
155 | with normal configuration. The various vservers can't interact with | |
156 | each other and can't interact with services in the main server. | |
157 | ||
158 | This requires a special kernel supporting the new new_s_context and | |
159 | set_ipv4root system call. | |
160 | ||
fc8ba798 | 161 | This package contains utilities which are required to communicate with |
82a15eaa | 162 | the Linux-Vserver enabled kernel, utilities which assist in building |
11eacd16 AM |
163 | Vservers and SysV initscripts which start and stop Vservers and |
164 | related tools. | |
fc8ba798 | 165 | |
aa0485fb JR |
166 | %description -l pl.UTF-8 |
167 | Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych | |
168 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
169 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
170 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
171 | w interakcję z innymi ani z usługami na głównym serwerze. | |
f9347a64 | 172 | |
aa0485fb | 173 | Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe |
f9347a64 JB |
174 | new_s_context i set_ipv4root. |
175 | ||
aa0485fb | 176 | Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z |
82a15eaa JR |
177 | włączonym mechanizmem Linux-Vserver, narzędzia pomagające przy |
178 | budowaniu Vserwerów i skrypty inicjalizujące SysV uruchamiające i | |
179 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
fc8ba798 | 180 | |
d76eaeb7 JB |
181 | %package lib |
182 | Summary: Dynamic libraries for util-vserver | |
183 | Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver | |
184 | Group: Libraries | |
185 | ||
186 | %description lib | |
187 | util-vserver provides the components and a framework to setup virtual | |
188 | servers. A virtual server runs inside a linux server. It is | |
189 | nevertheless highly independent. As such, you can run various services | |
190 | pith normal configuration. The various vservers can't interact with | |
191 | each other and can't interact with services in the main server. | |
192 | ||
193 | This package contains the shared libraries needed by all other | |
194 | 'util-vserver' subpackages. | |
195 | ||
196 | %description lib -l pl.UTF-8 | |
197 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
198 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
199 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
200 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
201 | w interakcję z innymi ani z usługami na głównym serwerze. | |
202 | ||
203 | Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie | |
204 | podpakiety util-vserver. | |
205 | ||
421cacb8 | 206 | %package devel |
b2c6ab86 | 207 | Summary: Development files for Linux vserver libraries |
33f71e01 | 208 | Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera |
28a38c7c | 209 | Group: Development/Libraries |
33ef531a | 210 | Requires: %{name}-lib = %{version}-%{release} |
421cacb8 AM |
211 | |
212 | %description devel | |
b2c6ab86 JB |
213 | This package contains the development files necessary for developing |
214 | programs which use vserver library. | |
421cacb8 | 215 | |
aa0485fb | 216 | %description devel -l pl.UTF-8 |
b2c6ab86 | 217 | Ten pakiet zawiera pliki programistyczne konieczne do rozwijania |
aa0485fb | 218 | programów używających biblioteki vserver. |
421cacb8 AM |
219 | |
220 | %package static | |
28a38c7c | 221 | Summary: Static vserver library |
33f71e01 | 222 | Summary(pl.UTF-8): Biblioteka statyczna vservera |
28a38c7c | 223 | Group: Development/Libraries |
33ef531a | 224 | Requires: %{name}-devel = %{version}-%{release} |
421cacb8 AM |
225 | |
226 | %description static | |
b2c6ab86 | 227 | This package contains the static version of vserver library. |
421cacb8 | 228 | |
aa0485fb JR |
229 | %description static -l pl.UTF-8 |
230 | Ten pakiet zawiera statyczną wersję biblioteki vservera. | |
421cacb8 | 231 | |
9f81736b JR |
232 | %package legacy |
233 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 234 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 235 | Group: Applications/System |
7a93d1d4 | 236 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 237 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 238 | Requires: rc-scripts |
9f81736b JR |
239 | |
240 | %description legacy | |
241 | util-vserver provides the components and a framework to setup virtual | |
242 | servers. A virtual server runs inside a linux server. It is | |
243 | nevertheless highly independent. As such, you can run various services | |
244 | with normal configuration. The various vservers can't interact with | |
245 | each other and can't interact with services in the main server. | |
246 | ||
7a93d1d4 | 247 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
248 | having an old-style configuration. |
249 | ||
aa0485fb JR |
250 | %description legacy -l pl.UTF-8 |
251 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
252 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
253 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
254 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
255 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 256 | |
aa0485fb JR |
257 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
258 | konfigurację w starym stylu. | |
7a93d1d4 | 259 | |
11eacd16 AM |
260 | %package -n python-util-vserver |
261 | Summary: Python interface to libutil-vserver library | |
262 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki libutil-vserver | |
263 | License: LGPL v2.1+ | |
264 | Group: Libraries/Python | |
265 | ||
266 | %description -n python-util-vserver | |
267 | Python interface to libutil-vserver library. | |
268 | ||
269 | %description -n python-util-vserver -l pl.UTF-8 | |
270 | Pythonowy interfejs do biblioteki libutil-vserver. | |
271 | ||
a94c4947 | 272 | %package -n vserver-distro-alpine |
273 | Summary: VServer build template for Alpine Linux | |
274 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji Alpine Linux | |
d765f9b1 | 275 | Group: Applications/System |
33ef531a | 276 | Requires: %{name} = %{version}-%{release} |
d765f9b1 | 277 | |
a94c4947 | 278 | %description -n vserver-distro-alpine |
279 | VServer build template for Alpine Linux. | |
d765f9b1 | 280 | |
a94c4947 | 281 | %description -n vserver-distro-alpine -l pl.UTF-8 |
282 | Szablon budowania VServerów dla dystrybucji Alpine Linux. | |
d765f9b1 | 283 | |
d76eaeb7 | 284 | %package -n vserver-distro-centos |
d765f9b1 JB |
285 | Summary: VServer build template for CentOS |
286 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 | 287 | Group: Applications/System |
33ef531a ER |
288 | Requires: %{name} = %{version}-%{release} |
289 | Requires: vserver-distro-redhat = %{version}-%{release} | |
d76eaeb7 JB |
290 | Requires: yum |
291 | ||
292 | %description -n vserver-distro-centos | |
d765f9b1 | 293 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
294 | |
295 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 296 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 | 297 | |
a94c4947 | 298 | %package -n vserver-distro-debian |
076e0301 | 299 | Summary: VServer build templates for Debian and Ubuntu |
300 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu | |
a94c4947 | 301 | Group: Applications/System |
33ef531a | 302 | Requires: %{name} = %{version}-%{release} |
076e0301 | 303 | Requires: debootstrap |
a94c4947 | 304 | Requires: dpkg |
e0b99d3d | 305 | Provides: vserver-distro-ubuntu |
076e0301 | 306 | Obsoletes: vserver-distro-ubuntu |
a94c4947 | 307 | |
308 | %description -n vserver-distro-debian | |
e0b99d3d | 309 | VServer build templates for Debian and Ubuntu. |
a94c4947 | 310 | |
311 | %description -n vserver-distro-debian -l pl.UTF-8 | |
e0b99d3d | 312 | Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu. |
a94c4947 | 313 | |
d76eaeb7 | 314 | %package -n vserver-distro-fedora |
d765f9b1 JB |
315 | Summary: VServer build templates for Fedora |
316 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 | 317 | Group: Applications/System |
33ef531a | 318 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
319 | Requires: binutils |
320 | Requires: e2fsprogs | |
321 | Requires: rpm | |
33ef531a | 322 | Requires: vserver-distro-redhat = %{version}-%{release} |
622053c4 | 323 | Requires: wget |
29afce9a | 324 | Requires: yum |
d76eaeb7 JB |
325 | |
326 | %description -n vserver-distro-fedora | |
d765f9b1 | 327 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
328 | |
329 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
330 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
331 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
332 | |
333 | %package -n vserver-distro-gentoo | |
334 | Summary: VServer build template for Gentoo | |
d765f9b1 | 335 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 | 336 | Group: Applications/System |
33ef531a | 337 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
338 | |
339 | %description -n vserver-distro-gentoo | |
340 | VServer build template for Gentoo. | |
341 | ||
342 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 343 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 | 344 | |
e84dd6c9 JR |
345 | %package -n vserver-distro-pld |
346 | Summary: VServer build templates for PLD Linux | |
347 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji PLD Linux | |
348 | Group: Applications/System | |
33ef531a | 349 | Requires: %{name} = %{version}-%{release} |
e84dd6c9 JR |
350 | Requires: /etc/pld-release |
351 | Requires: poldek >= 0.30 | |
352 | ||
353 | %description -n vserver-distro-pld | |
354 | VServer build templates for PLD Linux. | |
355 | ||
356 | %description -n vserver-distro-pld -l pl.UTF-8 | |
357 | Szablony do tworzenia VServerów dla dystrybucji PLD Linux. | |
358 | ||
d76eaeb7 JB |
359 | %package -n vserver-distro-redhat |
360 | Summary: VServer build template for Red Hat Linux 9 | |
361 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
362 | Group: Applications/System | |
33ef531a | 363 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
364 | Requires: binutils |
365 | Requires: e2fsprogs | |
366 | Requires: rpm | |
d76eaeb7 JB |
367 | Requires: wget |
368 | ||
369 | %description -n vserver-distro-redhat | |
370 | VServer build template for RedHat Linux 9. | |
371 | ||
372 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
373 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
374 | ||
375 | %package -n vserver-distro-suse | |
376 | Summary: VServer build template for SuSE 9.1 | |
377 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
378 | Group: Applications/System | |
33ef531a | 379 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
380 | Requires: binutils |
381 | Requires: e2fsprogs | |
382 | Requires: rpm | |
d76eaeb7 JB |
383 | Requires: wget |
384 | ||
385 | %description -n vserver-distro-suse | |
386 | VServer build template for SuSE Linux 9.1. | |
387 | ||
388 | %description -n vserver-distro-suse -l pl.UTF-8 | |
389 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
390 | ||
217d218f AM |
391 | %package -n vserver-distro-scientificlinux |
392 | Summary: VServer build template for Scientific Linux | |
393 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Scientific Linux | |
394 | Group: Applications/System | |
395 | Requires: %{name} = %{version}-%{release} | |
396 | Requires: binutils | |
397 | Requires: e2fsprogs | |
398 | Requires: rpm | |
399 | Requires: wget | |
400 | Requires: yum | |
401 | ||
402 | %description -n vserver-distro-scientificlinux | |
403 | VServer build template for Scientific Linux. | |
404 | ||
405 | %description -n vserver-distro-scientificlinux -l pl.UTF-8 | |
406 | Szablon do tworzenia VServerów dla dystrybucji Scientific Linux. | |
407 | ||
1e07a54b | 408 | %package -n vserver-distro-tld |
409 | Summary: VServer build templates for Titanium Linux Distribution | |
410 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Titanium Linux | |
411 | Group: Applications/System | |
412 | Requires: %{name} = %{version}-%{release} | |
1e07a54b | 413 | Requires: poldek >= 0.30 |
414 | ||
415 | %description -n vserver-distro-tld | |
416 | VServer build templates for Titanium Linux Distribution. | |
417 | ||
418 | %description -n vserver-distro-tld -l pl.UTF-8 | |
419 | Szablony do tworzenia VServerów dla dystrybucji Titanium Linux. | |
420 | ||
c4036d6e | 421 | %prep |
2f75efb5 | 422 | %setup -q -n %{name}-%{version}-%{snap} -a11 |
b7fb7f75 | 423 | %patch0 -p1 |
9f81736b | 424 | %patch1 -p1 |
54c149ac | 425 | %patch2 -p1 |
1e07a54b | 426 | %patch3 -p1 |
33754dff | 427 | %patch4 -p1 |
1e14ade8 | 428 | %patch5 -p1 |
f16cd315 | 429 | %patch6 -p1 |
33beda22 | 430 | %patch8 -p1 |
616759c3 | 431 | %patch9 -p1 |
204e5db3 | 432 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 433 | %patch11 -p1 |
b3024b38 | 434 | %patch12 -p1 |
6d43167c | 435 | %patch13 -p1 |
a41118d0 | 436 | %patch14 -p1 |
e7ac6dd1 | 437 | %patch15 -p1 |
761afb0b | 438 | %patch16 -p1 |
0edd7eb1 | 439 | %patch17 -p1 |
4bfa49a8 | 440 | %patch18 -p1 |
4b9dfd9e | 441 | %patch19 -p1 |
999bf1a1 | 442 | %patch21 -p1 |
94a3845f | 443 | %patch22 -p1 |
21a3b8ba | 444 | %patch24 -p1 |
27dc70bd | 445 | %patch25 -p1 |
1f4eb45e | 446 | |
696acb34 | 447 | %patch27 -p1 |
7352b984 | 448 | %patch28 -p1 |
c8b51fec | 449 | %patch29 -p1 |
5e98d590 | 450 | %patch30 -p1 |
c4036d6e | 451 | |
7352b984 | 452 | cp -p %{SOURCE9} package-management.txt |
47f9cd5f | 453 | |
35d779f2 JR |
454 | %{__sed} -i -e "s/@RPMDB@/%{reqdb_ver}/g" scripts/pkgmgmt |
455 | ||
c4036d6e | 456 | %build |
ac7f10fe AM |
457 | unset LD_SYMBOLIC_FUNCTIONS || : |
458 | ||
b6503b78 | 459 | %if %{with dietlibc} |
fcf60dd0 | 460 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 461 | %endif |
1e14ade8 | 462 | %{__libtoolize} |
84567ffc JR |
463 | %{__aclocal} -I m4 |
464 | %{__automake} | |
31c082fa | 465 | %{__autoconf} |
9f81736b JR |
466 | %configure \ |
467 | --with-initrddir=/etc/rc.d/init.d \ | |
468 | --enable-release \ | |
6f41121b | 469 | --enable-apis=NOLEGACY \ |
893c90d5 | 470 | --with-initscripts=sysv \ |
471 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
7890624b | 472 | FSCK=/sbin/fsck \ |
473 | IONICE=%{_usrbin}/ionice \ | |
2151e92d | 474 | IP=/sbin/ip \ |
c993b99d | 475 | IPTABLES=%{_usrsbin}/iptables \ |
7890624b | 476 | MKTEMP=/bin/mktemp \ |
e8b52e06 | 477 | MODPROBE=/sbin/modprobe \ |
7890624b | 478 | MOUNT=/bin/mount \ |
e8b52e06 | 479 | NAMEIF=/sbin/nameif \ |
7890624b | 480 | PS=/bin/ps \ |
481 | RESTORE=/sbin/restore \ | |
e8b52e06 | 482 | RMMOD=/sbin/rmmod \ |
7890624b | 483 | RSYNC=%{_usrbin}/rsync \ |
484 | STRACE=%{_usrbin}/strace \ | |
485 | UMOUNT=/bin/umount \ | |
e8b52e06 | 486 | VCONFIG=/sbin/vconfig \ |
c993b99d | 487 | WGET=%{_usrbin}/wget \ |
7890624b | 488 | # end |
c4036d6e | 489 | |
9f81736b | 490 | %{__make} all |
6cdf8db5 | 491 | |
9a45d9d7 | 492 | %{?with_doc:%{__make} doc} |
c4036d6e | 493 | |
22ee1f7a | 494 | %{__make} -C vproc-%{vproc_version} \ |
e128cb8a ER |
495 | CC="%{__cc}" \ |
496 | CFLAGS="%{rpmcflags}" | |
497 | ||
c4036d6e AM |
498 | %install |
499 | rm -rf $RPM_BUILD_ROOT | |
49e22b19 | 500 | install -d $RPM_BUILD_ROOT{/vservers/.pkg,/etc/{sysconfig,rc.d/init.d,cron.d}} \ |
7c944e34 | 501 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/{apps/vdevmap,cgroup} \ |
fa6b08f2 | 502 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
27ad8b1b | 503 | |
e8d85bc2 | 504 | %{__make} -j1 install install-distribution \ |
6cdf8db5 ER |
505 | %if %{without legacy} |
506 | scripts_legacy_src_SCRPTS= \ | |
507 | scripts_legacy_gen_SCRPTS= \ | |
508 | scripts_legacy_src_PRGS= \ | |
509 | sysv_gen_SCRPTS= \ | |
510 | legacy_PROGRAMS= \ | |
511 | %endif | |
c4036d6e AM |
512 | DESTDIR=$RPM_BUILD_ROOT |
513 | ||
6a366eb6 JR |
514 | %ifarch %{ix86} |
515 | # fix breakage caused by too many substitiutions on x86 | |
516 | %{__sed} -i -e 's|%{_datadir}/%{name}/sigexec|%{_libdir}/%{name}/sigexec|g' \ | |
517 | $RPM_BUILD_ROOT%{_libdir}/%{name}/vshelper | |
518 | %endif | |
519 | ||
480949d3 AM |
520 | # our libcgroup uses per subsystem mount |
521 | touch $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
522 | ||
1f4eb45e | 523 | chmod -R +rX $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/* |
47f9cd5f | 524 | |
99e1c7ab AM |
525 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
526 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers | |
527 | cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver | |
528 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
529 | sed 's|%{_usrlib}/util-vserver|%{_datadir}/%{name}|g' gentoo/bash-wrapper > \ | |
6cdf8db5 ER |
530 | $RPM_BUILD_ROOT%{_libdir}/%{name}/bash-wrapper |
531 | ||
532 | %if %{with legacy} | |
533 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/vservices | |
534 | ||
9f81736b | 535 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
622053c4 | 536 | s=$(basename $i | sed s/v_//) |
c993b99d | 537 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
538 | # IP addresses/interfaces to bound $s service to |
539 | #IP=10.0.0.1 | |
540 | #IP=eth0 | |
541 | EOF | |
542 | done | |
c4036d6e | 543 | |
99e1c7ab AM |
544 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
545 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr | |
6cdf8db5 ER |
546 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
547 | %else | |
548 | rm $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr | |
549 | rm $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy | |
550 | rm $RPM_BUILD_ROOT%{_mandir}/man8/distrib-info.8 | |
551 | rm $RPM_BUILD_ROOT%{_mandir}/man8/rebootmgr.8 | |
552 | rm $RPM_BUILD_ROOT%{_mandir}/man8/vserver-copy.8 | |
553 | %endif | |
536c7360 | 554 | |
6cdf8db5 ER |
555 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
556 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
1f4eb45e AM |
557 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld |
558 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld/initpost | |
559 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/tld/initpost | |
560 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/initpost | |
561 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/initpost | |
6cdf8db5 | 562 | install -p vproc-%{vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
cf71c7e1 | 563 | sed -e 's,/usr/lib,%{_libdir},' %{SOURCE12} > $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
04c2a702 | 564 | chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
4961db11 PG |
565 | |
566 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
567 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
568 | EOF | |
e5f7ee9a | 569 | |
1f4eb45e AM |
570 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/pubkeys |
571 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/pubkeys/pld-ac.asc | |
468087c5 | 572 | |
1f4eb45e AM |
573 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/pubkeys |
574 | cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc | |
b5d3f919 | 575 | |
6cdf8db5 | 576 | cp -p %{SOURCE16} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
7c944e34 | 577 | |
1cbfb76d | 578 | # set arch for pld-ac in pld.conf |
d4b06dc0 | 579 | %ifarch i586 i686 ppc sparc alpha athlon |
22ee1f7a | 580 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 581 | %endif |
582 | %ifarch %{x8664} | |
22ee1f7a | 583 | %define ftp_arch amd64 |
1cbfb76d | 584 | %endif |
d2c9e889 | 585 | %ifarch i486 |
22ee1f7a | 586 | %define ftp_arch i386 |
d2c9e889 | 587 | %endif |
d4b06dc0 | 588 | %ifarch pentium2 pentium3 pentium4 |
22ee1f7a | 589 | %define ftp_arch i686 |
d4b06dc0 | 590 | %endif |
1cbfb76d | 591 | %ifarch sparcv9 sparc64 |
22ee1f7a | 592 | %define ftp_arch sparc |
1cbfb76d | 593 | %endif |
22ee1f7a | 594 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf |
1cbfb76d | 595 | |
596 | # set arch for pld-th in pld.conf | |
761afb0b | 597 | %ifarch i486 i686 ppc sparc alpha athlon |
22ee1f7a | 598 | %define ftp_arch %{_target_cpu} |
761afb0b | 599 | %endif |
eed0f0e7 | 600 | %ifarch %{x8664} |
22ee1f7a | 601 | %define ftp_arch x86_64 |
761afb0b ER |
602 | %endif |
603 | %ifarch i586 | |
22ee1f7a | 604 | %define ftp_arch i486 |
761afb0b ER |
605 | %endif |
606 | %ifarch pentium2 pentium3 pentium4 | |
22ee1f7a | 607 | %define ftp_arch i686 |
761afb0b ER |
608 | %endif |
609 | %ifarch sparcv9 sparc64 | |
22ee1f7a | 610 | %define ftp_arch sparc |
761afb0b | 611 | %endif |
22ee1f7a | 612 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf |
1cbfb76d | 613 | |
1e07a54b | 614 | # set arch for tld in tld.conf |
615 | %ifarch i586 i686 ppc sparc alpha | |
22ee1f7a | 616 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 617 | %endif |
618 | %ifarch %{x8664} | |
22ee1f7a | 619 | %define ftp_arch x86_64 |
1cbfb76d | 620 | %endif |
d4b06dc0 | 621 | %ifarch athlon pentium2 pentium3 pentium4 |
22ee1f7a | 622 | %define ftp_arch i686 |
1cbfb76d | 623 | %endif |
1e07a54b | 624 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/tld.conf |
761afb0b | 625 | |
6a628ec2 | 626 | # current debootstrap link |
1f4eb45e AM |
627 | echo "http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.55_all.deb" \ |
628 | > $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/debootstrap.uri | |
6a628ec2 | 629 | |
0edd7eb1 | 630 | install -d $RPM_BUILD_ROOT/var/cache/vservers/poldek |
2d6d0c17 | 631 | |
622053c4 | 632 | # cleanups |
6cdf8db5 | 633 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_libvserver.la |
622053c4 | 634 | # we have our own initscript which does the same |
6cdf8db5 | 635 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
1f4eb45e | 636 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/util-vserver/vserver-init.functions |
6cdf8db5 ER |
637 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default |
638 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf | |
2c4297d9 | 639 | |
421cacb8 AM |
640 | %clean |
641 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 642 | |
82a15eaa JR |
643 | %triggerun -- util-vserver-init |
644 | # Prevent preun from util-vserver-init from working | |
645 | chmod a-x /etc/rc.d/init.d/vprocunhide | |
646 | chmod a-x /etc/rc.d/init.d/vrootdevices | |
647 | chmod a-x /etc/rc.d/init.d/vservers | |
648 | ||
90766857 | 649 | %triggerpostun -- util-vserver-init |
807d69d1 | 650 | # Restore what triggerun removed |
82a15eaa JR |
651 | chmod ug+x /etc/rc.d/init.d/vprocunhide |
652 | chmod ug+x /etc/rc.d/init.d/vrootdevices | |
653 | chmod ug+x /etc/rc.d/init.d/vservers | |
654 | /sbin/chkconfig --add vrootdevices | |
655 | /sbin/chkconfig --add vprocunhide | |
656 | /sbin/chkconfig --add vservers | |
5bc4d3d7 ER |
657 | if [ -f /etc/sysconfig/vrootdevices.rpmsave ]; then |
658 | cp -f /etc/sysconfig/vrootdevices{,.rpmnew} | |
659 | mv -f /etc/sysconfig/vrootdevices{.rpmsave,} | |
87423c3f | 660 | fi |
5bc4d3d7 ER |
661 | if [ -f /etc/sysconfig/vservers.rpmsave ]; then |
662 | cp -f /etc/sysconfig/vservers{,.rpmnew} | |
663 | mv -f /etc/sysconfig/vservers{.rpmsave,} | |
87423c3f | 664 | fi |
82a15eaa | 665 | |
9f81736b JR |
666 | %post |
667 | %{_sbindir}/setattr --barrier /vservers || : | |
7ccbf05b | 668 | /sbin/chkconfig --add util-vserver |
3996b68e | 669 | /sbin/chkconfig --add vrootdevices |
9f81736b | 670 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 671 | /sbin/chkconfig --add vservers |
82a15eaa JR |
672 | if [ ! -f /var/lock/subsys/util-vserver ]; then |
673 | echo "Type \"/sbin/service util-vserver start\" to set up vshelper path" 1>&2 | |
674 | fi | |
3996b68e | 675 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 676 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 677 | fi |
26dd3d85 | 678 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 679 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 680 | fi |
09abf0a6 | 681 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 682 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 683 | fi |
9f81736b | 684 | |
82a15eaa | 685 | %preun |
9f81736b | 686 | if [ "$1" = "0" ]; then |
82a15eaa | 687 | %service util-vserver stop |
2d9f659e ER |
688 | %service vservers stop |
689 | %service vprocunhide stop | |
690 | %service vrootdevices stop | |
82a15eaa | 691 | /sbin/chkconfig --del util-vserver |
09abf0a6 | 692 | /sbin/chkconfig --del vservers |
26dd3d85 | 693 | /sbin/chkconfig --del vprocunhide |
3996b68e | 694 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
695 | fi |
696 | ||
82a15eaa JR |
697 | %post lib -p /sbin/ldconfig |
698 | %postun lib -p /sbin/ldconfig | |
699 | ||
9f81736b JR |
700 | %post legacy |
701 | /sbin/chkconfig --add rebootmgr | |
702 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 703 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 704 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
705 | fi |
706 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 707 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 708 | fi |
9f81736b JR |
709 | |
710 | %preun legacy | |
711 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
712 | %service rebootmgr stop |
713 | %service vservers-legacy stop | |
9f81736b JR |
714 | /sbin/chkconfig --del rebootmgr |
715 | /sbin/chkconfig --del vservers-legacy | |
716 | fi | |
b2c6ab86 | 717 | |
e84dd6c9 JR |
718 | %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1 |
719 | for D in ac th ti; do | |
720 | P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek | |
721 | ||
722 | if [ -f $P/pld-source.conf.rpmsave ]; then | |
723 | cp -f $P/repos.d/pld.conf{,.rpmnew} | |
724 | mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf | |
725 | fi | |
726 | done | |
727 | exit 0 | |
728 | ||
c4036d6e AM |
729 | %files |
730 | %defattr(644,root,root,755) | |
befcea8e | 731 | %doc AUTHORS NEWS THANKS doc/intro.txt |
b77e6495 | 732 | %doc package-management.txt |
ea52b140 | 733 | %{?with_doc:%doc doc/*.html} |
82a15eaa JR |
734 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices |
735 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
736 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
737 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
738 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
739 | %attr(754,root,root) /etc/rc.d/init.d/util-vserver | |
740 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
b7fb7f75 | 741 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
742 | %dir %{_sysconfdir}/vservers/.defaults |
743 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
49e22b19 | 744 | %dir %{_sysconfdir}/vservers/.defaults/apps/vdevmap |
4f782c13 JR |
745 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
746 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
480949d3 AM |
747 | %dir %{_sysconfdir}/vservers/.defaults/cgroup |
748 | %{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
9f81736b | 749 | %dir %{_sysconfdir}/vservers/.defaults/files |
047cae91 | 750 | %{_sysconfdir}/vservers/.defaults/vdirbase |
f2524bfd | 751 | %{_sysconfdir}/vservers/.defaults/cachebase |
047cae91 | 752 | %{_sysconfdir}/vservers/.defaults/run.rev |
4f782c13 JR |
753 | %dir %{_sysconfdir}/vservers/.distributions |
754 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
755 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
9f81736b | 756 | /sbin/vshelper |
fc8ba798 JR |
757 | %attr(755,root,root) %{_sbindir}/chbind |
758 | %attr(755,root,root) %{_sbindir}/chcontext | |
759 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 760 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 761 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 762 | %attr(755,root,root) %{_sbindir}/naddress |
763 | %attr(755,root,root) %{_sbindir}/nattribute | |
764 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
765 | %attr(755,root,root) %{_sbindir}/reducecap |
766 | %attr(755,root,root) %{_sbindir}/setattr | |
767 | %attr(755,root,root) %{_sbindir}/showattr | |
4f782c13 | 768 | %attr(755,root,root) %{_sbindir}/vapt-get |
fc8ba798 JR |
769 | %attr(755,root,root) %{_sbindir}/vattribute |
770 | %attr(755,root,root) %{_sbindir}/vcontext | |
4f782c13 | 771 | %attr(755,root,root) %{_sbindir}/vdevmap |
fc8ba798 | 772 | %attr(755,root,root) %{_sbindir}/vdlimit |
4f782c13 | 773 | %attr(755,root,root) %{_sbindir}/vdu |
fc8ba798 JR |
774 | %attr(755,root,root) %{_sbindir}/vkill |
775 | %attr(755,root,root) %{_sbindir}/vlimit | |
467f3ad9 | 776 | %attr(755,root,root) %{_sbindir}/vmemctrl |
777 | %attr(755,root,root) %{_sbindir}/vmount | |
4f782c13 JR |
778 | %attr(755,root,root) %{_sbindir}/vnamespace |
779 | %attr(755,root,root) %{_sbindir}/vpoldek | |
e128cb8a | 780 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
781 | %attr(755,root,root) %{_sbindir}/vps |
782 | %attr(755,root,root) %{_sbindir}/vpstree | |
4f782c13 | 783 | %attr(755,root,root) %{_sbindir}/vrpm |
fc8ba798 JR |
784 | %attr(755,root,root) %{_sbindir}/vrsetup |
785 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 786 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 787 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
788 | %attr(755,root,root) %{_sbindir}/vserver-stat |
789 | %attr(755,root,root) %{_sbindir}/vsomething | |
4f782c13 | 790 | %attr(755,root,root) %{_sbindir}/vspace |
67457f13 | 791 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 792 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 793 | %attr(755,root,root) %{_sbindir}/vuname |
e014ae5d | 794 | %attr(755,root,root) %{_sbindir}/vurpm |
31c082fa | 795 | %attr(755,root,root) %{_sbindir}/vwait |
4f782c13 | 796 | %attr(755,root,root) %{_sbindir}/vyum |
1f4eb45e AM |
797 | %dir %{_datadir}/%{name} |
798 | %dir %{_datadir}/%{name}/defaults | |
799 | %{_datadir}/%{name}/defaults/fstab | |
800 | %{_datadir}/%{name}/defaults/debootstrap.* | |
801 | %{_datadir}/%{name}/defaults/vunify-exclude | |
802 | %{_datadir}/%{name}/defaults/context.start | |
803 | %{_datadir}/%{name}/defaults/environment | |
804 | %{_datadir}/%{name}/defaults/h2ext.desc | |
805 | %{_datadir}/%{name}/defaults/mtab | |
806 | %{_datadir}/%{name}/defaults/vprocunhide-files | |
807 | %dir %{_datadir}/%{name}/distributions | |
808 | %{_datadir}/%{name}/distributions/defaults | |
809 | %dir %{_datadir}/%{name}/distributions/template | |
810 | %attr(755,root,root) %{_datadir}/%{name}/distributions/template/initpost | |
811 | %attr(755,root,root) %{_datadir}/%{name}/distributions/template/initpre | |
812 | %{_datadir}/%{name}/FEATURES.txt | |
813 | %{_datadir}/%{name}/util-vserver-vars | |
814 | %{_datadir}/%{name}/functions | |
815 | %{_datadir}/%{name}/vserver-build.* | |
816 | %{_datadir}/%{name}/vserver-setup.functions | |
817 | %{_datadir}/%{name}/vserver.* | |
b2c6ab86 | 818 | %dir %{_libdir}/%{name} |
49e22b19 | 819 | %attr(755,root,root) %{_libdir}/%{name}/bash-wrapper |
b2c6ab86 | 820 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 821 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 822 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
fc8ba798 | 823 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
4f782c13 | 824 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
31c082fa | 825 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
bc2ffe55 | 826 | %attr(755,root,root) %{_libdir}/%{name}/exec-remount |
b7fb7f75 | 827 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
828 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
829 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
67457f13 | 830 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
831 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
832 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
833 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
834 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
4f782c13 | 835 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt |
b2c6ab86 | 836 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
4f782c13 | 837 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
b7fb7f75 JR |
838 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
839 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
840 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
841 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
467f3ad9 | 842 | %attr(755,root,root) %{_libdir}/%{name}/tunctl |
4f782c13 JR |
843 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker |
844 | %attr(755,root,root) %{_libdir}/%{name}/vclone | |
845 | %attr(755,root,root) %{_libdir}/%{name}/vcopy | |
846 | %attr(755,root,root) %{_libdir}/%{name}/vhashify | |
847 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
848 | %attr(755,root,root) %{_libdir}/%{name}/vpkg | |
849 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker | |
b7fb7f75 | 850 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
4f782c13 | 851 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
aaa9538c | 852 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
e014ae5d | 853 | %attr(755,root,root) %{_libdir}/%{name}/vurpm-worker |
b2c6ab86 | 854 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
b7fb7f75 JR |
855 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
856 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 857 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
82a15eaa | 858 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper |
4f782c13 JR |
859 | %attr(755,root,root) %{_libdir}/%{name}/vunify |
860 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
fc8ba798 JR |
861 | %{_mandir}/man8/chbind.8* |
862 | %{_mandir}/man8/chcontext.8* | |
863 | %{_mandir}/man8/reducecap.8* | |
864 | %{_mandir}/man8/vps.8* | |
865 | %{_mandir}/man8/vpstree.8* | |
4f782c13 | 866 | %{_mandir}/man8/vserver-build.8* |
fc8ba798 JR |
867 | %{_mandir}/man8/vserver-stat.8* |
868 | %{_mandir}/man8/vserver.8* | |
869 | %{_mandir}/man8/vtop.8* | |
c993b99d | 870 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 871 | %dir /vservers/.pkg |
fa6b08f2 | 872 | %{systemdtmpfilesdir}/%{name}.conf |
9f81736b JR |
873 | %dir %{_localstatedir}/run/vservers |
874 | %dir %{_localstatedir}/run/vservers.rev | |
875 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 876 | %dir /var/cache/vservers |
0edd7eb1 | 877 | %dir /var/cache/vservers/poldek |
421cacb8 | 878 | |
d76eaeb7 JB |
879 | %files lib |
880 | %defattr(644,root,root,755) | |
761afb0b ER |
881 | %attr(755,root,root) %{_libdir}/libvserver.so.*.*.* |
882 | %attr(755,root,root) %ghost %{_libdir}/libvserver.so.0 | |
d76eaeb7 | 883 | |
421cacb8 AM |
884 | %files devel |
885 | %defattr(644,root,root,755) | |
ea52b140 | 886 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
761afb0b | 887 | %attr(755,root,root) %{_libdir}/libvserver.so |
b7fb7f75 | 888 | %{_libdir}/lib*.la |
33754dff | 889 | %{_includedir}/vserver*.h |
b7fb7f75 | 890 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
891 | |
892 | %files static | |
893 | %defattr(644,root,root,755) | |
894 | %{_libdir}/libvserver.a | |
9f81736b | 895 | |
6cdf8db5 | 896 | %if %{with legacy} |
d76eaeb7 JB |
897 | %files legacy |
898 | %defattr(644,root,root,755) | |
899 | %dir %{_sysconfdir}/vservices | |
900 | %{_sysconfdir}/vservices/* | |
901 | %dir %{_libdir}/%{name}/legacy | |
902 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
903 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
904 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
905 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
906 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
907 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
908 | %{_mandir}/man8/distrib-info.8* | |
909 | %{_mandir}/man8/rebootmgr.8* | |
910 | %{_mandir}/man8/vserver-copy.8* | |
6cdf8db5 | 911 | %endif |
d76eaeb7 | 912 | |
11eacd16 AM |
913 | %files -n python-util-vserver |
914 | %defattr(644,root,root,755) | |
915 | %attr(755,root,root) %{py_sitedir}/_libvserver.so | |
8524db8a | 916 | %{py_sitedir}/libvserver.py |
11eacd16 | 917 | |
a94c4947 | 918 | %files -n vserver-distro-alpine |
919 | %defattr(644,root,root,755) | |
1f4eb45e AM |
920 | %dir %{_datadir}/%{name}/distributions/alpine |
921 | %attr(755,root,root) %{_datadir}/%{name}/distributions/alpine/initpost | |
922 | %attr(755,root,root) %{_datadir}/%{name}/distributions/alpine/initpre | |
a94c4947 | 923 | |
d76eaeb7 JB |
924 | %files -n vserver-distro-centos |
925 | %defattr(644,root,root,755) | |
1f4eb45e | 926 | %{_datadir}/util-vserver/distributions/centos* |
d76eaeb7 | 927 | |
d765f9b1 JB |
928 | %files -n vserver-distro-debian |
929 | %defattr(644,root,root,755) | |
1f4eb45e AM |
930 | %dir %{_datadir}/%{name}/distributions/debian |
931 | %attr(755,root,root) %{_datadir}/%{name}/distributions/debian/initpost | |
932 | %{_datadir}/%{name}/distributions/etch | |
933 | %{_datadir}/%{name}/distributions/lenny | |
934 | %{_datadir}/%{name}/distributions/sid | |
935 | %{_datadir}/%{name}/distributions/squeeze | |
936 | %{_datadir}/%{name}/distributions/wheezy | |
d765f9b1 | 937 | |
0e0c7ff7 ER |
938 | %files -n vserver-distro-fedora |
939 | %defattr(644,root,root,755) | |
d765f9b1 JB |
940 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
941 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
942 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
943 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
944 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
945 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
1f4eb45e AM |
946 | %{_datadir}/%{name}/distributions/f7 |
947 | %{_datadir}/%{name}/distributions/f8 | |
948 | %{_datadir}/%{name}/distributions/f9 | |
949 | %{_datadir}/%{name}/distributions/f10 | |
950 | %{_datadir}/%{name}/distributions/f11 | |
951 | %{_datadir}/%{name}/distributions/f12 | |
952 | %{_datadir}/%{name}/distributions/f13 | |
953 | %{_datadir}/%{name}/distributions/f14 | |
954 | %{_datadir}/%{name}/distributions/fc1 | |
955 | %{_datadir}/%{name}/distributions/fc2 | |
956 | %{_datadir}/%{name}/distributions/fc3 | |
957 | %{_datadir}/%{name}/distributions/fc4 | |
958 | %{_datadir}/%{name}/distributions/fc5 | |
959 | %{_datadir}/%{name}/distributions/fc6 | |
0e0c7ff7 | 960 | |
d76eaeb7 JB |
961 | %files -n vserver-distro-gentoo |
962 | %defattr(644,root,root,755) | |
1f4eb45e AM |
963 | %dir %{_datadir}/util-vserver/distributions/gentoo |
964 | %attr(755,root,root) %{_datadir}/util-vserver/distributions/gentoo/* | |
d76eaeb7 JB |
965 | %attr(755,root,root) %{_sbindir}/vdispatch-conf |
966 | %attr(755,root,root) %{_sbindir}/vemerge | |
967 | %attr(755,root,root) %{_sbindir}/vesync | |
968 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
969 | ||
e84dd6c9 JR |
970 | %files -n vserver-distro-pld |
971 | %defattr(644,root,root,755) | |
1f4eb45e AM |
972 | %dir %{_datadir}/%{name}/distributions/pld |
973 | %attr(755,root,root) %{_datadir}/%{name}/distributions/pld/initpost | |
974 | %dir %{_datadir}/%{name}/distributions/pld-* | |
975 | %{_datadir}/%{name}/distributions/pld-*/pkgs | |
976 | %{_datadir}/%{name}/distributions/pld-*/pubkeys | |
977 | %{_datadir}/%{name}/distributions/pld-*/rpm | |
978 | %attr(755,root,root) %{_datadir}/%{name}/distributions/pld-*/initpost | |
e84dd6c9 JR |
979 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac |
980 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
981 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d | |
982 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf | |
983 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
984 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
985 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d | |
986 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf | |
e84dd6c9 | 987 | |
0e0c7ff7 ER |
988 | %files -n vserver-distro-redhat |
989 | %defattr(644,root,root,755) | |
076e0301 | 990 | %dir %{_sysconfdir}/vservers/.distributions/rh9 |
991 | %dir %{_sysconfdir}/vservers/.distributions/rh9/apt | |
0e0c7ff7 | 992 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list |
1f4eb45e AM |
993 | %{_datadir}/%{name}/distributions/rh9 |
994 | %dir %{_datadir}/%{name}/distributions/redhat | |
995 | %attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initctl | |
996 | %attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initpost | |
997 | %attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initpre | |
998 | %attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/rc.sysinit | |
0e0c7ff7 ER |
999 | |
1000 | %files -n vserver-distro-suse | |
1001 | %defattr(644,root,root,755) | |
1002 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
1003 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
1004 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
1f4eb45e | 1005 | %{_datadir}/%{name}/distributions/suse* |
217d218f AM |
1006 | |
1007 | %files -n vserver-distro-scientificlinux | |
1008 | %defattr(644,root,root,755) | |
1f4eb45e AM |
1009 | %dir %{_datadir}/%{name}/distributions/sl6 |
1010 | %attr(755,root,root) %{_datadir}/%{name}/distributions/sl6/initpost | |
1011 | %attr(755,root,root) %{_datadir}/%{name}/distributions/sl6/initpre | |
1012 | %{_datadir}/%{name}/distributions/sl6/pkgs | |
1013 | %{_datadir}/%{name}/distributions/sl6/yum | |
1014 | %{_datadir}/%{name}/distributions/sl6/yum.repos.d | |
1e07a54b | 1015 | |
1016 | %files -n vserver-distro-tld | |
1017 | %defattr(644,root,root,755) | |
1f4eb45e AM |
1018 | %dir %{_datadir}/%{name}/distributions/tld |
1019 | %attr(755,root,root) %{_datadir}/%{name}/distributions/tld/initpost | |
1020 | %{_datadir}/%{name}/distributions/tld/pkgs | |
1021 | %{_datadir}/%{name}/distributions/tld/rpm | |
1e07a54b | 1022 | %dir %{_sysconfdir}/vservers/.distributions/tld |
1023 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek | |
1024 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d | |
1025 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/*.conf |