python-decorator/python-decorator.spec

48 lines
1.5 KiB
RPMSpec
Raw Normal View History

Name: python-decorator
Version: 4.0.10
Release: 1mamba
Summary: A Python moduke to simplify the usage and to popularize decorators
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: https://pypi.python.org/pypi/decorator/
Source: http://pypi.debian.net/decorator/decorator-%{version}.tar.gz
License: BSD
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The aim of the Python decorator module it to simplify the usage and to popularize decorators.
%prep
%setup -q -n decorator-%{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} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
%{python27_sitearch}/decorator-%{version}-py*.egg-info/*
%changelog
* Sat Jun 11 2016 Automatic Build System <autodist@mambasoft.it> 4.0.10-1mamba
- automatic version update by autodist
* Tue Mar 01 2016 Automatic Build System <autodist@mambasoft.it> 4.0.9-1mamba
- automatic version update by autodist
* Sat Jan 23 2016 Davide Madrisan <davide.madrisan@gmail.com> 4.0.6-1mamba
- package created using the webbuild interface