]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
- added init scripts
[packages/util-vserver.git] / util-vserver.spec
1 # TODO:
2 # - split into core/build/sysv/legacy subpackages
3 #   (see util-vserver.spec inside of tarball)
4 #
5 Summary:        Linux virtual server utilities
6 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
7 Name:           util-vserver
8 Version:        0.30.207
9 Release:        0.2
10 Epoch:          0
11 License:        GPL
12 Group:          Base
13 Source0:        http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
14 # Source0-md5:  1c8457a687643ae8a7b1f1d34ebbdd68
15 Source1:        vprocunhide.init
16 Source2:        vservers-default.init
17 Source3:        vservers-legacy.init
18 Source4:        vservers-default.sysconfig
19 Source5:        vservers-legacy.sysconfig
20 Patch0:         %{name}-no-kernel-includes.patch
21 URL:            http://savannah.nongnu.org/projects/util-vserver/
22 BuildRequires:  e2fsprogs-devel
23 BuildRequires:  libxslt-progs
24 PreReq:         rc-scripts
25 Requires(post,preun):   /sbin/chkconfig
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This package provides the components and a framework to setup virtual
30 servers. A virtual server runs inside a Linux server. It is
31 nevertheless highly independent. As such, you can run various services
32 with normal configuration. The various vservers can't interact with
33 each other and can't interact with services in the main server.
34
35 This requires a special kernel supporting the new new_s_context and
36 set_ipv4root system call.
37
38 %description -l pl
39 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
40 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
41 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
42 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
43 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
44
45 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
46 new_s_context i set_ipv4root.
47
48 %package devel
49 Summary:        Development files for Linux vserver libraries
50 Summary(pl):    Pliki programistyczne dla bibliotek linuksowego vserwera
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53
54 %description devel
55 This package contains the development files necessary for developing
56 programs which use vserver library.
57
58 %description devel -l pl
59 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
60 programów u¿ywaj±cych biblioteki vserver.
61
62 %package static
63 Summary:        Static vserver library
64 Summary(pl):    Biblioteka statyczna vservera
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 This package contains the static version of vserver library.
70
71 %description static -l pl
72 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77
78 %build
79 %configure
80 #       --with-kerneldir=%{_kernelsrcdir}
81 %{__make}
82
83 cd doc
84 xsltproc --stringparam confdir '%{_sysconfdir}/vservers' -o compatibility.html compatibility-xhtml.xsl compatibility.xml
85 xsltproc --stringparam confdir '%{_sysconfdir}/vservers' -o configuration.html configuration-xhtml.xsl configuration.xml
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d}}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 rm -f $RPM_BUILD_ROOT%{_sbindir}/util-vserver-vars
95
96 install $SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
97 install $SOURCE2 $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
98 install $SOURCE3 $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
99 install $SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
100 install $SOURCE5 $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
111 %dir %{_sysconfdir}/vservers
112 %dir %{_sysconfdir}/vservers/.distributions
113 %{_sysconfdir}/vservers/.distributions/*
114 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/vservers*
115 %attr(754,root,root) /etc/rc.d/init.d/*
116 %attr(755,root,root) %{_sbindir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
118 %dir %{_libdir}/%{name}
119 %dir %{_libdir}/%{name}/defaults
120 %dir %{_libdir}/%{name}/distributions
121 %dir %{_libdir}/%{name}/legacy
122 %{_libdir}/%{name}/defaults/*
123 %{_libdir}/%{name}/distributions/*
124 %{_libdir}/%{name}/legacy/*
125 %attr(755,root,root) %{_libdir}/%{name}/FEATURES.txt
126 %attr(755,root,root) %{_libdir}/%{name}/capchroot
127 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
128 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
129 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
130 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
131 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
132 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
133 %attr(755,root,root) %{_libdir}/%{name}/filetime
134 %{_libdir}/%{name}/functions
135 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
136 %attr(755,root,root) %{_libdir}/%{name}/lockfile
137 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
138 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
139 %attr(755,root,root) %{_libdir}/%{name}/readlink
140 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
141 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
142 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
143 %attr(755,root,root) %{_libdir}/%{name}/sigexec
144 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
145 %{_libdir}/%{name}/util-vserver-vars
146 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
147 %attr(755,root,root) %{_libdir}/%{name}/vbuild
148 %attr(755,root,root) %{_libdir}/%{name}/vcheck
149 %attr(755,root,root) %{_libdir}/%{name}/vcopy
150 %attr(755,root,root) %{_libdir}/%{name}/vhashify
151 %attr(755,root,root) %{_libdir}/%{name}/vpkg
152 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
153 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
154 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
155 %{_libdir}/%{name}/vserver-build.*
156 %{_libdir}/%{name}/vserver-setup.functions
157 %{_libdir}/%{name}/vserver.*
158 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
159 %attr(755,root,root) %{_libdir}/%{name}/vshelper
160 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
161 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
162 %attr(755,root,root) %{_libdir}/%{name}/vunify
163 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
164 %{_mandir}/man8/*
165 %attr(0,root,root) %dir /vservers
166
167 %files devel
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/lib*.so
170 %{_libdir}/lib*.la
171 %{_includedir}/vserver.h
172 %{_pkgconfigdir}/*.pc
173
174 %files static
175 %defattr(644,root,root,755)
176 %{_libdir}/libvserver.a
This page took 0.03731 seconds and 4 git commands to generate.