Clean up spec file
This package is not in epel, and doesn't build on RHEL 6 or 7 so I took out all the python3 conditionals.
This commit is contained in:
parent
ec2aa5fcdb
commit
02d4c547a8
@ -1,10 +1,6 @@
|
|||||||
%if 0%{?fedora}
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-markupsafe
|
Name: python-markupsafe
|
||||||
Version: 0.23
|
Version: 0.23
|
||||||
Release: 14%{?dist}
|
Release: 15%{?dist}
|
||||||
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -13,11 +9,7 @@ URL: http://pypi.python.org/pypi/MarkupSafe
|
|||||||
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
BuildRequires: python2-devel python2-setuptools
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%endif # if with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library for safe markup escaping.
|
A library for safe markup escaping.
|
||||||
@ -30,7 +22,6 @@ Group: Development/Languages
|
|||||||
%description -n python2-markupsafe
|
%description -n python2-markupsafe
|
||||||
A library for safe markup escaping.
|
A library for safe markup escaping.
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-markupsafe
|
%package -n python3-markupsafe
|
||||||
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -38,37 +29,27 @@ Group: Development/Languages
|
|||||||
|
|
||||||
%description -n python3-markupsafe
|
%description -n python3-markupsafe
|
||||||
A library for safe markup escaping.
|
A library for safe markup escaping.
|
||||||
%endif #if with_python3
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n MarkupSafe-%{version}
|
%setup -q -n MarkupSafe-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
%py2_install
|
||||||
# C code errantly gets installed
|
# C code errantly gets installed
|
||||||
rm $RPM_BUILD_ROOT/%{python2_sitearch}/markupsafe/*.c
|
rm $RPM_BUILD_ROOT/%{python2_sitearch}/markupsafe/*.c
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif # with_python3
|
|
||||||
# C code errantly gets installed
|
# C code errantly gets installed
|
||||||
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
|
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
%{__python2} setup.py test
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-markupsafe
|
%files -n python2-markupsafe
|
||||||
@ -76,14 +57,15 @@ rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
|
|||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%{python2_sitearch}/*
|
%{python2_sitearch}/*
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-markupsafe
|
%files -n python3-markupsafe
|
||||||
%doc AUTHORS LICENSE README.rst
|
%doc AUTHORS LICENSE README.rst
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 28 2017 Troy Dawson <tdawson@redhat.com> - 0.23-15
|
||||||
|
- Clean up spec file
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-14
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-14
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user