Blame SPECS/python-markupsafe.spec

4cb54c
%{?scl:%scl_package python-markupsafe}
4cb54c
%{!?scl:%global pkg_name %{name}}
4cb54c
4cb54c
Name: %{?scl_prefix}python-markupsafe
4cb54c
Version: 1.0
4cb54c
Release: 1%{?dist}
4cb54c
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
4cb54c
4cb54c
Group: Development/Languages
4cb54c
License: BSD
4cb54c
URL: https://pypi.python.org/pypi/MarkupSafe
4cb54c
Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
4cb54c
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
4cb54c
4cb54c
BuildRequires: %{?scl_prefix}python-devel
4cb54c
BuildRequires: %{?scl_prefix}python-setuptools
4cb54c
4cb54c
4cb54c
%description
4cb54c
A library for safe markup escaping.
4cb54c
4cb54c
%prep
4cb54c
%setup -q -n MarkupSafe-%{version}
4cb54c
4cb54c
%build
4cb54c
%{?scl:scl enable %{scl} - << \EOF}
4cb54c
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
4cb54c
%{?scl:EOF}
4cb54c
4cb54c
%install
4cb54c
rm -rf $RPM_BUILD_ROOT
4cb54c
%{?scl:scl enable %{scl} "}
4cb54c
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
4cb54c
%{?scl:"}
4cb54c
# C code errantly gets installed
4cb54c
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
4cb54c
4cb54c
%check
4cb54c
%{?scl:scl enable %{scl} "}
4cb54c
%{__python3} setup.py test
4cb54c
%{?scl:"}
4cb54c
4cb54c
%clean
4cb54c
rm -rf $RPM_BUILD_ROOT
4cb54c
4cb54c
%files
4cb54c
%defattr(-,root,root,-)
4cb54c
%doc AUTHORS LICENSE README.rst
4cb54c
%{python3_sitearch}/*
4cb54c
4cb54c
%changelog
4cb54c
* Thu Jun 15 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.0-1
4cb54c
- Update to 1.0 for rh-python36
4cb54c
4cb54c
* Fri Dec 12 2014 Robert Kuska <rkuska@redhat.com> - 0.23-1
4cb54c
- Update to 0.23
4cb54c
4cb54c
* Tue May 21 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.11-10
4cb54c
- Build as noarch to prevent creation of empty debuginfo package.
4cb54c
4cb54c
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.11-9
4cb54c
- Rebuild to generate bytecode properly after fixing rhbz#956289
4cb54c
4cb54c
* Wed Jan 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.11-8
4cb54c
- Rebuilt for SCL.
4cb54c
4cb54c
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-7
4cb54c
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
4cb54c
4cb54c
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-6
4cb54c
- remove rhel logic from with_python3 conditional
4cb54c
4cb54c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
4cb54c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4cb54c
4cb54c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
4cb54c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4cb54c
4cb54c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
4cb54c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4cb54c
4cb54c
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 0.11-2
4cb54c
- rebuild for newer python3
4cb54c
4cb54c
* Thu Sep 30 2010 Luke Macken <lmacken@redhat.com> - 0.11-1
4cb54c
- Update to 0.11
4cb54c
4cb54c
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.2-5
4cb54c
- rebuild with python3.2
4cb54c
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
4cb54c
4cb54c
* Fri Jul 23 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.2-4
4cb54c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4cb54c
4cb54c
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-3
4cb54c
- Fix missing setuptools BuildRequires.
4cb54c
4cb54c
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-2
4cb54c
- Fixed sitearch and python3 definitions to work better with older Fedora/RHEL.
4cb54c
4cb54c
* Wed Jun 23 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-1
4cb54c
- Initial version.