]> git.pld-linux.org Git - packages/libvirt-sandbox.git/blame - libvirt-sandbox.spec
do not use dot in run-parts scanned dir
[packages/libvirt-sandbox.git] / libvirt-sandbox.spec
CommitLineData
f3e37857
JB
1Summary: API for building application sandboxes using libvirt
2Summary(pl.UTF-8): API do tworzenia sandboksów aplikacyjnych przy użyciu libvirt
3Name: libvirt-sandbox
909352f6 4Version: 0.5.0
34a05983 5Release: 2
f3e37857
JB
6License: LGPL v2.1+
7Group: Libraries
8Source0: ftp://libvirt.org/libvirt/sandbox/%{name}-%{version}.tar.gz
909352f6 9# Source0-md5: 7ad2d1353bb08a1c2496fc9badcc8049
f3e37857 10URL: http://libvirt.org/
4dddd6ff 11BuildRequires: gettext-devel
8a54692b 12BuildRequires: glib2-devel >= 1:2.32.0
f3e37857
JB
13BuildRequires: gobject-introspection-devel >= 0.10.8
14BuildRequires: gtk-doc >= 1.10
4dddd6ff 15BuildRequires: intltool >= 0.35.0
f3e37857 16BuildRequires: libcap-ng-devel >= 0.4.0
817bd0bc 17BuildRequires: libselinux-devel
dacae2a0 18BuildRequires: libvirt-devel >= 1.0.2
dc664126 19BuildRequires: libvirt-glib-devel >= 0.1.7
f3e37857
JB
20BuildRequires: pkgconfig
21BuildRequires: sed >= 4.0
8a54692b 22Requires: glib2 >= 1:2.32.0
f3e37857 23Requires: libcap-ng >= 0.4.0
dacae2a0 24Requires: libvirt >= 1.0.2
dc664126 25Requires: libvirt-glib >= 0.1.7
f3e37857
JB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29The libvirt-sandbox package provides an API for building application
30sandboxes using libvirt. Sandboxes can be based on either container or
31machine based virtualization technology. Also included is a simple
32command line tool for launching sandboxes for arbitrary commands.
33
34%description -l pl.UTF-8
35Libvirt-sandbox udostępnia API do tworzenia sandboksów ("piaskownic")
36aplikacyjnych przy użyciu libvirt. Sandboksy mogą być oparte na
37wirtualizacji kontenera lub maszyny. Dołączone są także proste
38narzędzia uruchamiane z linii poleceń do uruchamiania sandboksów
39dowolnych poleceń.
40
41%package devel
42Summary: Header files for libvirt-sandbox library
43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvirt-sandbox
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
8a54692b 46Requires: glib2-devel >= 1:2.32.0
dacae2a0 47Requires: libvirt-devel >= 1.0.2
dc664126 48Requires: libvirt-glib-devel >= 0.1.7
f3e37857
JB
49
50%description devel
51Header files for libvirt-sandbox library.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe biblioteki libvirt-sandbox.
55
56%package static
57Summary: Static libvirt-sandbox library
58Summary(pl.UTF-8): Statyczna biblioteka libvirt-sandbox
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
63Static libvirt-sandbox library.
64
65%description static -l pl.UTF-8
66Statyczna biblioteka libvirt-sandbox.
67
68%package -n bash-completion-libvirt-sandbox
69Summary: Bash completion rules for libvirt-sandbox
70Summary(pl.UTF-8): Bashowe uzupełnianie poleceń dla pakietu libvirt-sandbox
71Group: Applications/Shells
72Requires: %{name} = %{version}-%{release}
4dddd6ff 73Requires: bash-completion >= 2.0
f3e37857
JB
74
75%description -n bash-completion-libvirt-sandbox
76Bash completion rules for virt-sandbox-service command.
77
78%description -n bash-completion-libvirt-sandbox -l pl.UTF-8
79Bashowe uzupełnianie parametrów dla polecenia virt-sandbox-service.
80
81%prep
82%setup -q
83
84# what is it? seems not required
85%{__sed} -i -e '/Requires: sandbox-2.0/d' libvirt-sandbox-1.0.pc.in
86
87%build
88%configure \
89 --disable-silent-rules \
90 --with-html-dir=%{_gtkdocdir}
91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
f3e37857
JB
95%{__make} install \
96 DESTDIR=$RPM_BUILD_ROOT
97
34a05983
ER
98mv $RPM_BUILD_ROOT/etc/cron.daily/virt-sandbox-service{.logrotate,}
99
f3e37857
JB
100# obsoleted by pkg-config
101%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt-sandbox-1.0.la
102# just placeholder, useless in RPM
103%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/libvirt-sandbox/scratch/README
104
4dddd6ff
JB
105%find_lang %{name}
106
f3e37857
JB
107%clean
108rm -rf $RPM_BUILD_ROOT
109
4dddd6ff 110%files -f %{name}.lang
f3e37857 111%defattr(644,root,root,755)
8a54692b 112%doc AUTHORS ChangeLog NEWS README TODO
f3e37857
JB
113%attr(755,root,root) %{_bindir}/virt-sandbox
114%attr(755,root,root) %{_bindir}/virt-sandbox-service
115%attr(755,root,root) %{_libdir}/libvirt-sandbox-1.0.so.*.*.*
909352f6 116%attr(755,root,root) %ghost %{_libdir}/libvirt-sandbox-1.0.so.4
f3e37857
JB
117%{_libdir}/girepository-1.0/LibvirtSandbox-1.0.typelib
118%attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-common
119%attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-lxc
120%attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-qemu
8a54692b 121%attr(755,root,root) %{_libexecdir}/virt-sandbox-service-util
f3e37857
JB
122%dir %{_sysconfdir}/libvirt-sandbox
123%dir %{_sysconfdir}/libvirt-sandbox/scratch
124%dir %{_sysconfdir}/libvirt-sandbox/services
34a05983 125%config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/virt-sandbox-service
f3e37857
JB
126%{_mandir}/man1/virt-sandbox.1*
127%{_mandir}/man1/virt-sandbox-service.1*
dacae2a0 128%{_mandir}/man1/virt-sandbox-service-*.1*
f3e37857
JB
129
130%files devel
131%defattr(644,root,root,755)
132%attr(755,root,root) %{_libdir}/libvirt-sandbox-1.0.so
133%{_includedir}/libvirt-sandbox-1.0
134%{_pkgconfigdir}/libvirt-sandbox-1.0.pc
135%{_datadir}/gir-1.0/LibvirtSandbox-1.0.gir
136%{_gtkdocdir}/Libvirt-sandbox
137
138%files static
139%defattr(644,root,root,755)
140%{_libdir}/libvirt-sandbox-1.0.a
141
142%files -n bash-completion-libvirt-sandbox
143%defattr(644,root,root,755)
4dddd6ff 144%{_datadir}/bash-completion/completions/virt-sandbox-service
This page took 0.149545 seconds and 4 git commands to generate.