]> git.pld-linux.org Git - packages/criu.git/commitdiff
- updated to 1.5.1 auto/th/criu-1.5.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Apr 2015 16:33:11 +0000 (18:33 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Apr 2015 16:33:11 +0000 (18:33 +0200)
- added python patch (fixes python install dirs)
- package python-pycriu

criu-python.patch [new file with mode: 0644]
criu.spec

diff --git a/criu-python.patch b/criu-python.patch
new file mode 100644 (file)
index 0000000..1cb313e
--- /dev/null
@@ -0,0 +1,11 @@
+--- criu-1.5.1/Makefile.orig   2015-04-05 17:59:01.846070466 +0200
++++ criu-1.5.1/Makefile        2015-04-05 18:08:00.123965069 +0200
+@@ -289,7 +289,7 @@
+ install-crit: crit
+       $(E) "  INSTALL crit"
+-      $(Q) python scripts/crit-setup.py install --prefix=$(DESTDIR)
++      $(Q) python scripts/crit-setup.py install --root=$(DESTDIR) --optimize=2
+ .PHONY: install install-man install-crit
index e4e2579bcd1a6c9d10d74882821006fa27c5c4be..d5d297e194ed4f9205d33d47513e01338f32ab25 100644 (file)
--- a/criu.spec
+++ b/criu.spec
@@ -1,15 +1,17 @@
 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.4
+Version:       1.5.1
 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: 35c3904abcf297bd88b8f7bcd2a588d5
+# Source0-md5: b63a42e9b1195eea8c68b80aa3ff0fc0
+Patch0:                %{name}-python.patch
 URL:           http://criu.org/
 BuildRequires: autoconf >= 2.50
 BuildRequires: protobuf-c-devel
+BuildRequires: python >= 2
 BuildRequires: rpmbuild(macros) >= 1.228
 BuildRequires: sed >= 4.0
 Requires:      %{name}-libs = %{version}-%{release}
@@ -49,6 +51,7 @@ 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
@@ -58,19 +61,34 @@ CRIU shared library.
 Biblioteka współdzielona CRIU.
 
 %package devel
-Summary:       Header file for CRIU library
-Summary(pl.UTF-8):     Plik nagłówkowy biblioteki CRIU
+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 file for CRIU library.
+Header files for CRIU library.
 
 %description devel -l pl.UTF-8
-Plik nagłówkowy biblioteki CRIU.
+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
+%patch0 -p1
+
 sed -i -e 's#-O2#$(OPT)#g' Makefile*
 
 %build
@@ -94,6 +112,8 @@ rm -rf $RPM_BUILD_ROOT
        MANDIR=%{_mandir} \
        DESTDIR=$RPM_BUILD_ROOT
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -128,3 +148,9 @@ rm -rf $RPM_BUILD_ROOT
 %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.347151 seconds and 4 git commands to generate.