Blame SPECS/python-markupsafe.spec

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