[python-cement] build fixed
derks
derks at fedoraproject.org
Wed Jul 4 00:37:15 UTC 2012
commit 22b25e93e7cc5a4cff7d67d98f643030319adeed
Author: BJ Dierkes <wdierkes at rackspace.com>
Date: Tue Jul 3 00:14:11 2012 -0500
build fixed
python-cement.spec | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/python-cement.spec b/python-cement.spec
index 75ba479..22cc6ac 100644
--- a/python-cement.spec
+++ b/python-cement.spec
@@ -7,7 +7,8 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif
-Name: python-cement
+%global srcname cement
+Name: python-%{srcname}
Version: 1.9.10
Release: 1%{?dist}
Summary: CLI Application Framework for Python
@@ -15,7 +16,7 @@ Group: Applications/System
License: BSD
URL: http://builtoncement.org
-Source0: http://builtoncement.org/cement/1.9/source/cement-%{version}.tar.gz
+Source0: http://builtoncement.org/cement/1.9/source/%{srcname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -23,7 +24,7 @@ BuildArch: noarch
BuildRequires: python2-devel, python-setuptools, python-nose, python-coverage
%if 0%{?with_python3}
-BuildRequires: python3-devel, python3-distribute, python3-nose, python3-coverage
+BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-coverage
%endif
%description
@@ -73,6 +74,13 @@ rm -rf %{buildroot}
popd
%endif
+# cleanup tests from sitelib
+rm -rf %{buildroot}%{python_sitelib}/tests/
+
+%if 0%{?with_python3}
+rm -rf %{buildroot}%{python3_sitelib}/tests/
+%endif
+
%check
%{__python} setup.py nosetests
@@ -86,15 +94,15 @@ rm -rf %{buildroot}
%clean
rm -rf %{buildroot}
-
%files
%defattr(-,root,root,-)
-%doc README.md LICENSE ChangeLog docs
-%{python_sitelib}/cement/
+%doc README.md LICENSE ChangeLog doc
+%{python_sitelib}/%{srcname}*
%if 0%{?with_python3}
-%doc README.md LICENSE ChangeLog docs
-%{python3_sitelib}/cement/
+%files -n python3-cement
+%doc README.md LICENSE ChangeLog doc
+%{python3_sitelib}/%{srcname}*
%endif
%changelog
More information about the scm-commits
mailing list