Initial import (#608925).
This commit is contained in:
parent
ce0ea4f995
commit
802216db71
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
iso8601-0.1.4.tar.gz
|
||||
54
python-iso8601.spec
Normal file
54
python-iso8601.spec
Normal file
@ -0,0 +1,54 @@
|
||||
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%endif
|
||||
|
||||
%global tarball_name iso8601
|
||||
|
||||
Name: python-iso8601
|
||||
Version: 0.1.4
|
||||
Release: 2%{?dist}
|
||||
Summary: Simple module to parse ISO 8601 dates
|
||||
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: http://pypi.python.org/pypi/iso8601/
|
||||
Source0: http://pypi.python.org/packages/source/i/iso8601/%{tarball_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel python-setuptools
|
||||
|
||||
%description
|
||||
This module parses the most common forms of ISO 8601 date strings (e.g.
|
||||
2007-01-14T20:34:22+00:00) into datetime objects.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qn %{tarball_name}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 9 2010 Ian Weller <iweller@redhat.com> - 0.1.4-2
|
||||
- Correct python_sitelib macro
|
||||
|
||||
* Mon Jun 28 2010 Ian Weller <iweller@redhat.com> - 0.1.4-1
|
||||
- Initial package build
|
||||
Loading…
Reference in New Issue
Block a user