python-markupsafe/python-markupsafe.spec

59 lines
1.7 KiB
RPMSpec

Name: python-markupsafe
Version: 0.21
Release: 1mamba
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: openmamba WebBuild System <webbuild@openmamba.org>
URL: https://github.com/mitsuhiko/markupsafe
Source: https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
## note: run 'autospec -u -a6 python-markupsafe' to get the list of build requirements.
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%prep
%setup -q -n MarkupSafe-%{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)
%doc AUTHORS LICENSE README.rst
%changelog
* Wed Apr 23 2014 Automatic Build System <autodist@mambasoft.it> 0.21-1mamba
- automatic version update by autodist
* Sun Mar 16 2014 Automatic Build System <autodist@mambasoft.it> 0.19-1mamba
- automatic update by autodist
* Wed Aug 07 2013 openmamba WebBuild System <webbuild@openmamba.org> 0.18-1mamba
- update to 0.18
* Sun Feb 06 2011 gil <puntogil@libero.it> 0.11-2mamba
- rebuilt devel
* Tue Nov 09 2010 gil <puntogil@libero.it> 0.11-1mamba
- package created by autospec