|
|
551b94 |
%if 0%{?fedora} > 12
|
|
|
551b94 |
%global with_python3 1
|
|
|
551b94 |
%else
|
|
|
551b94 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
551b94 |
%endif
|
|
|
551b94 |
|
|
|
551b94 |
Name: python-markupsafe
|
|
|
551b94 |
Version: 0.11
|
|
|
551b94 |
Release: 10%{?dist}
|
|
|
551b94 |
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
551b94 |
|
|
|
551b94 |
Group: Development/Languages
|
|
|
551b94 |
License: BSD
|
|
|
551b94 |
URL: http://pypi.python.org/pypi/MarkupSafe
|
|
|
551b94 |
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
|
|
551b94 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
551b94 |
|
|
|
551b94 |
BuildRequires: python-devel python-setuptools-devel
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
BuildRequires: python3-devel python3-setuptools
|
|
|
551b94 |
# For /usr/bin/2to3
|
|
|
551b94 |
BuildRequires: python-tools
|
|
|
551b94 |
%endif # if with_python3
|
|
|
551b94 |
|
|
|
551b94 |
|
|
|
551b94 |
%description
|
|
|
551b94 |
A library for safe markup escaping.
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
%package -n python3-markupsafe
|
|
|
551b94 |
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
551b94 |
Group: Development/Languages
|
|
|
551b94 |
|
|
|
551b94 |
%description -n python3-markupsafe
|
|
|
551b94 |
A library for safe markup escaping.
|
|
|
551b94 |
%endif #if with_python3
|
|
|
551b94 |
|
|
|
551b94 |
%prep
|
|
|
551b94 |
%setup -q -n MarkupSafe-%{version}
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
rm -rf %{py3dir}
|
|
|
551b94 |
cp -a . %{py3dir}
|
|
|
551b94 |
2to3 --write --nobackups %{py3dir}
|
|
|
551b94 |
%endif # with_python3
|
|
|
551b94 |
|
|
|
551b94 |
%build
|
|
|
551b94 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
pushd %{py3dir}
|
|
|
551b94 |
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
551b94 |
popd
|
|
|
551b94 |
%endif # with_python3
|
|
|
551b94 |
|
|
|
551b94 |
|
|
|
551b94 |
%install
|
|
|
551b94 |
rm -rf $RPM_BUILD_ROOT
|
|
|
551b94 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
551b94 |
# C code errantly gets installed
|
|
|
551b94 |
rm $RPM_BUILD_ROOT/%{python_sitearch}/markupsafe/*.c
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
pushd %{py3dir}
|
|
|
551b94 |
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
551b94 |
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
|
|
|
551b94 |
popd
|
|
|
551b94 |
%endif # with_python3
|
|
|
551b94 |
|
|
|
551b94 |
|
|
|
551b94 |
%check
|
|
|
551b94 |
%{__python} setup.py test
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
pushd %{py3dir}
|
|
|
551b94 |
%{__python3} setup.py test
|
|
|
551b94 |
popd
|
|
|
551b94 |
%endif # with_python3
|
|
|
551b94 |
|
|
|
551b94 |
%clean
|
|
|
551b94 |
rm -rf $RPM_BUILD_ROOT
|
|
|
551b94 |
|
|
|
551b94 |
|
|
|
551b94 |
%files
|
|
|
551b94 |
%defattr(-,root,root,-)
|
|
|
551b94 |
%doc AUTHORS LICENSE README.rst
|
|
|
551b94 |
%{python_sitearch}/*
|
|
|
551b94 |
|
|
|
551b94 |
%if 0%{?with_python3}
|
|
|
551b94 |
%files -n python3-markupsafe
|
|
|
551b94 |
%defattr(-,root,root,-)
|
|
|
551b94 |
%doc AUTHORS LICENSE README.rst
|
|
|
551b94 |
%{python3_sitearch}/*
|
|
|
551b94 |
%endif # with_python3
|
|
|
551b94 |
|
|
|
551b94 |
|
|
|
551b94 |
%changelog
|
|
|
551b94 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.11-10
|
|
|
551b94 |
- Mass rebuild 2014-01-24
|
|
|
551b94 |
|
|
|
551b94 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.11-9
|
|
|
551b94 |
- Mass rebuild 2013-12-27
|
|
|
551b94 |
|
|
|
551b94 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
|
|
|
551b94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
551b94 |
|
|
|
551b94 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-7
|
|
|
551b94 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
551b94 |
|
|
|
551b94 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-6
|
|
|
551b94 |
- remove rhel logic from with_python3 conditional
|
|
|
551b94 |
|
|
|
551b94 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
|
|
|
551b94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
551b94 |
|
|
|
551b94 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
|
|
|
551b94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
551b94 |
|
|
|
551b94 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
|
|
|
551b94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
551b94 |
|
|
|
551b94 |
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 0.11-2
|
|
|
551b94 |
- rebuild for newer python3
|
|
|
551b94 |
|
|
|
551b94 |
* Thu Sep 30 2010 Luke Macken <lmacken@redhat.com> - 0.11-1
|
|
|
551b94 |
- Update to 0.11
|
|
|
551b94 |
|
|
|
551b94 |
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.2-5
|
|
|
551b94 |
- rebuild with python3.2
|
|
|
551b94 |
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
551b94 |
|
|
|
551b94 |
* Fri Jul 23 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.2-4
|
|
|
551b94 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
551b94 |
|
|
|
551b94 |
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-3
|
|
|
551b94 |
- Fix missing setuptools BuildRequires.
|
|
|
551b94 |
|
|
|
551b94 |
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-2
|
|
|
551b94 |
- Fixed sitearch and python3 definitions to work better with older Fedora/RHEL.
|
|
|
551b94 |
|
|
|
551b94 |
* Wed Jun 23 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-1
|
|
|
551b94 |
- Initial version.
|