[python-dateutil15] Build the full module, not just the egg.
Pete Travis
immanetize at fedoraproject.org
Sun Jan 18 19:41:51 UTC 2015
commit 3fa3a7c02c502499d66609db252a25b1b8fe99b0
Author: Pete Travis <immanetize at fedoraproject.org>
Date: Sun Jan 18 12:42:16 2015 -0700
Build the full module, not just the egg.
python-dateutil15.spec | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/python-dateutil15.spec b/python-dateutil15.spec
index 7a8a7f7..a726a9d 100644
--- a/python-dateutil15.spec
+++ b/python-dateutil15.spec
@@ -1,7 +1,7 @@
%global srcname python-dateutil
Name: python-dateutil15
Version: 1.5
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Powerful extensions to the standard datetime module
Group: Development/Languages
@@ -11,11 +11,12 @@ Source0: http://labix.org/download/%{srcname}/%{srcname}-%{version}.tar.g
Patch0: python-dateutil-1.5-system-zoneinfo.patch
BuildArch: noarch
BuildRequires: python-devel,python-setuptools
+Conflicts: python-dateutil
%description
The dateutil module provides powerful extensions to the standard datetime
-module available in Python 2.3+. This is a parallel installable newer version
-for EPEL 6 only. RHEL 6 base has python-dateutil 1.4.1
+module available in Python 2.3+. This is backwards compatibility version
+that conflicts with dateutil 2.x .
%prep
%setup -q -n %{srcname}-%{version}
@@ -25,21 +26,23 @@ iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
mv NEWS.new NEWS
%build
-%{__python} setup.py bdist_egg
+%{__python} setup.py build
%install
-mkdir -p %{buildroot}%{python_sitelib}
-easy_install -m --prefix %{buildroot}%{_usr} dist/*.egg
-
-chmod -x %{buildroot}%{python_sitelib}/python_dateutil-1.5-py2.?.egg/dateutil/*.py
-chmod -x %{buildroot}%{python_sitelib}/python_dateutil-1.5-py2.?.egg/dateutil/zoneinfo/__init__.py
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
%files
%doc example.py LICENSE NEWS README
-%{python_sitelib}/python_dateutil-1.5-py2.?.egg
+%{python_sitelib}/dateutil/
%exclude %{python_sitelib}/dateutil/zoneinfo/zoneinfo-2010g.tar.gz
+%{python_sitelib}/*.egg-info
+
%changelog
+* Sun Jan 18 2015 Pete Travis <immanetize at fedoraproject.org> - 1.5-6
+- Build the full module, not just an egg.
+- Conflict with the newer python-dateutil package.
+
* Wed Jan 07 2015 Pete Travis <immanetize at fedoraproject.org> - 1.5-5
- Add patch to use system timezone data.
More information about the scm-commits
mailing list