new upstream release
fix UTF8 encoding correctly drop redundant definition of buildroot, python_sitelib drop redundant clean stage and defattr use macro for Source
This commit is contained in:
parent
d038060195
commit
b2d0694f4c
@ -1,17 +1,12 @@
|
|||||||
%if 0%{?fedora} < 13 && 0%{?rhel} < 6
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-dateutil
|
Name: python-dateutil
|
||||||
Version: 1.4.1
|
Version: 1.5
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Powerful extensions to the standard datetime module
|
Summary: Powerful extensions to the standard datetime module
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: Python
|
License: Python
|
||||||
URL: http://labix.org/python-dateutil
|
URL: http://labix.org/python-dateutil
|
||||||
Source0: http://labix.org/download/python-dateutil/python-dateutil-%{version}.tar.gz
|
Source0: http://labix.org/download/%{name}/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel,python-setuptools
|
BuildRequires: python-devel,python-setuptools
|
||||||
@ -23,29 +18,26 @@ module available in Python 2.3+.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# Reencode this as utf8
|
iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
|
||||||
iconv -f ISO-8859-1 -t utf8 NEWS
|
mv NEWS.new NEWS
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc example.py LICENSE NEWS README
|
%doc example.py LICENSE NEWS README
|
||||||
%{python_sitelib}/dateutil/
|
%{python_sitelib}/dateutil/
|
||||||
%{python_sitelib}/*.egg-info
|
%{python_sitelib}/*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 13 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.5-1
|
||||||
|
- New upstream release
|
||||||
|
- Fix UTF8 encoding correctly
|
||||||
|
- Drop buildroot, clean, defattr and use macro for Source
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-6
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user