python-isodate/python-isodate.spec

65 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: python-isodate
Version: 0.5.1
Release: 1mamba
Summary: An ISO 8601 date/time/duration parser and formatter
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://pypi.python.org/pypi/isodate/
Source: http://pypi.python.org/packages/source/i/isodate/isodate-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%prep
%setup -q -n isodate-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
## note: this list is just an example; modify as required
# %{python_sitearch}/%{name}.py*
# %{python_sitearch}/%{name}.so
## note: eventually add the remaining documents (if any)
# %doc README.txt
%changelog
* Wed Dec 03 2014 Automatic Build System <autodist@mambasoft.it> 0.5.1-1mamba
- automatic update by autodist
* Thu Feb 27 2014 Automatic Build System <autodist@mambasoft.it> 0.5.0-1mamba
- automatic update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.9-2mamba
- python 2.7 mass rebuild
* Tue Oct 30 2012 Automatic Build System <autodist@mambasoft.it> 0.4.9-1mamba
- automatic version update by autodist
* Tue Sep 04 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.8-1mamba
- package created by autospec