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