[python-cpopen/f20] fixing import error

Yaniv Bronhaim bronhaim at fedoraproject.org
Mon Aug 26 11:21:45 UTC 2013


commit f484f02487aa7e640d9acd21c101e23e40eb49da
Author: Yaniv Bronhaim <ybronhei at redhat.com>
Date:   Mon Aug 26 14:21:29 2013 +0300

    fixing import error

 .gitignore         |    1 +
 python-cpopen.spec |   27 +++++++++++++++++----------
 sources            |    2 +-
 3 files changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6e7186c..9cf2191 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /cpopen-1.2.2.tar.gz
+/cpopen-1.2.3.tar.gz
diff --git a/python-cpopen.spec b/python-cpopen.spec
index 456b292..2f8aca1 100644
--- a/python-cpopen.spec
+++ b/python-cpopen.spec
@@ -1,9 +1,10 @@
 %{!?python_ver: %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
-%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$
+%global __provides_exclude_from ^%{python_sitearch}/.*\\.so$
+%global libname cpopen
 
-Name:           python-cpopen
-Version:        1.2.2
-Release:        1%{?dist}
+Name:           python-%{libname}
+Version:        1.2.3
+Release:        2%{?dist}
 Summary:        Creates a sub-process in simpler safer manner
 
 License:        GPLv2+
@@ -18,7 +19,7 @@ Python package for creating sub-process in simpler and safer manner by using C
 code.
 
 %prep
-%setup -q -n cpopen-%{version}
+%setup -q -n %{libname}-%{version}
 
 %build
 %{__python} setup.py build
@@ -26,15 +27,21 @@ code.
 
 %install
 %{__python} setup.py install --root $RPM_BUILD_ROOT \
-                             --install-lib %{python_sitearch}
+			     --install-lib %{python_sitearch}/%{libname}
 
 %files
-%doc AUTHORS COPYING MANIFEST
-%{python_sitearch}/__init__.py*
-%{python_sitearch}/cpopen-%{version}-py*.egg-info
-%attr(755, root, root) %{python_sitearch}/cpopen.so*
+%doc AUTHORS COPYING readme.md
+%{python_sitearch}/%{libname}/__init__.py*
+%{python_sitearch}/%{libname}/%{libname}-%{version}-py*.egg-info
+%attr(755, root, root) %{python_sitearch}/%{libname}/%{libname}.so*
 
 %changelog
+* Mon Aug 26 2013 Yaniv Bronhaim <ybronhei at redhat.com> - 1.2.3-2
+- Fixing import error in __init__.py
+
+* Sun Aug 25 2013 Yaniv Bronhaim <ybronhei at redhat.com> - 1.2.3-1
+- Moving files under cpopen folder
+
 * Wed Jun 12 2013 Yaniv Bronhaim <ybronhei at redhat.com> - 1.2.2-1
 - Merging vdsm-python-cpopen fixes
 - Renaming to cpopen.so
diff --git a/sources b/sources
index a19b833..f477785 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-87721ada5e5003bc69076009a826a1b9  cpopen-1.2.2.tar.gz
+140ca2c6532c2374f205b820b4381030  cpopen-1.2.3.tar.gz


More information about the scm-commits mailing list