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