]> git.pld-linux.org Git - packages/criu.git/blobdiff - criu.spec
- updated to 2.3
[packages/criu.git] / criu.spec
index 827cfa4a6473c4cba753ecdb8302e1026f8b0bf6..3b39d653ffc88fb7e47d7480e4d4815b7081e741 100644 (file)
--- a/criu.spec
+++ b/criu.spec
@@ -1,18 +1,24 @@
-Summary:       checkpoint/restore functionality for Linux in userspace
+Summary:       Checkpoint/restore functionality for Linux in userspace
+Summary(pl.UTF-8):     Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa
 Name:          criu
-Version:       1.0
+Version:       2.3
 Release:       1
-License:       GPL v2
+License:       GPL v2 (tools), LGPL v2.1 (library)
 Group:         Applications/System
 Source0:       http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
-# Source0-md5: 67c4ca5ca36a3514f247e86743c9ceee
+# Source0-md5: ba8f3ba9aed1219f0569cc2958a4f171
+Patch0:                %{name}-python.patch
 URL:           http://criu.org/
 BuildRequires: autoconf >= 2.50
+BuildRequires: libnl-devel >= 3.2
 BuildRequires: protobuf-c-devel
+BuildRequires: python >= 2
 BuildRequires: rpmbuild(macros) >= 1.228
 BuildRequires: sed >= 4.0
+Requires:      %{name}-libs = %{version}-%{release}
 Requires:      iproute2 >= 3.6
 Requires:      uname(release) >= 3.9
+ExclusiveArch: %{x8664} arm aarch64 ppc64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -32,29 +38,107 @@ then use the files to restore and run the application from the point
 it was frozen at. The distinctive feature of the CRIU project is that
 it is mainly implemented in user space.
 
+%description -l pl.UTF-8
+CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla
+systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą
+aplikację (lub jej część) i zapisać migawkę na twardym dysku jako
+zestaw plików. Następnie można użyć tych plików do odtworzenia i
+uruchomienia aplikacji od miejsca, w którym została zamrożona.
+Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie
+w przestrzeni użytkownika.
+
+%package libs
+Summary:       CRIU shared library
+Summary(pl.UTF-8):     Biblioteka współdzielona CRIU
+License:       LGPL v2.1
+Group:         Libraries
+
+%description libs
+CRIU shared library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona CRIU.
+
+%package devel
+Summary:       Header files for CRIU library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki CRIU
+License:       LGPL v2.1
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for CRIU library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki CRIU.
+
+%package -n python-pycriu
+Summary:       Python interface to CRIU
+Summary(pl.UTF-8):     Pythonowy interfejs do CRIU
+Group:         Libraries/Python
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description -n python-pycriu
+Python interface to CRIU. This package contains also crit utility.
+
+%description -n python-pycriu -l pl.UTF-8
+Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit.
+
 %prep
 %setup -q
-sed -i -e 's#-O2#$(OPT)#g' Makefile*
+%patch0 -p1
+
+%{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile
 
 %build
 %{__make} \
+       DEB_HOST_MULTIARCH= \
        CC="%{__cc}" \
        OPT="%{rpmcppflags} %{rpmcflags}" \
+       PREFIX=%{_prefix} \
+       LIBDIR=%{_libdir} \
+       LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
        V=1 \
        WERROR=0
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
-       SBINDIR=/sbin \
+       DEB_HOST_MULTIARCH= \
+       PREFIX=%{_prefix} \
+       LIBDIR=%{_libdir} \
+       PYSITESCRIPTDIR=%{py_sitescriptdir} \
+       LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
        MANDIR=%{_mandir} \
        DESTDIR=$RPM_BUILD_ROOT
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc CREDITS README
-%attr(755,root,root) /sbin/criu
+%doc CREDITS README.md
+%attr(755,root,root) %{_sbindir}/criu
 %{_mandir}/man8/criu.8*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcriu.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcriu.so
+%{_includedir}/criu
+%{_pkgconfigdir}/criu.pc
+
+%files -n python-pycriu
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/crit
+%{py_sitescriptdir}/pycriu
+%{py_sitescriptdir}/crit-0.0.1-py*.egg-info
This page took 0.089722 seconds and 4 git commands to generate.