Subpackage python2-pyxdg has been removed
This commit is contained in:
parent
aa1b46e1f8
commit
0cb8d341c1
43
pyxdg.spec
43
pyxdg.spec
@ -1,8 +1,6 @@
|
||||
%global with_python3 1
|
||||
|
||||
Name: pyxdg
|
||||
Version: 0.26
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Python library to access freedesktop.org standards
|
||||
License: LGPLv2
|
||||
URL: http://freedesktop.org/Software/pyxdg
|
||||
@ -18,20 +16,6 @@ BuildRequires: shared-mime-info
|
||||
%description
|
||||
PyXDG is a python library to access freedesktop.org standards
|
||||
|
||||
%package -n python2-pyxdg
|
||||
Summary: Python2 library to access freedesktop.org standards
|
||||
BuildRequires: python2-devel
|
||||
# These are needed for the nose tests.
|
||||
BuildRequires: python2-nose
|
||||
%{?python_provide:%python_provide python2-pyxdg}
|
||||
Provides: pyxdg = %{version}-%{release}
|
||||
Obsoletes: pyxdg < 0.25-10
|
||||
|
||||
%description -n python2-pyxdg
|
||||
PyXDG is a python library to access freedesktop.org standards. This
|
||||
package contains a Python 2 version of PyXDG.
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python%{python3_pkgversion}-pyxdg
|
||||
Summary: Python3 library to access freedesktop.org standards
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
@ -42,7 +26,6 @@ BuildRequires: python%{python3_pkgversion}-nose
|
||||
%description -n python%{python3_pkgversion}-pyxdg
|
||||
PyXDG is a python library to access freedesktop.org standards. This
|
||||
package contains a Python 3 version of PyXDG.
|
||||
%endif # with_python3
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -50,43 +33,27 @@ package contains a Python 3 version of PyXDG.
|
||||
%patch1 -p1 -b .getType
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif # with_python3
|
||||
|
||||
%install
|
||||
%if 0%{?with_python3}
|
||||
%py3_install
|
||||
%endif # with_python3
|
||||
|
||||
%py2_install
|
||||
|
||||
%check
|
||||
# icon-test currently fails
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=104846
|
||||
nosetests-%{python2_version} || :
|
||||
|
||||
%if 0%{?with_python3}
|
||||
nosetests-%{python3_version} || :
|
||||
%endif # with_python3
|
||||
|
||||
%files -n python2-pyxdg
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog README TODO
|
||||
%{python2_sitelib}/xdg
|
||||
%{python2_sitelib}/pyxdg-*.egg-info
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python%{python3_pkgversion}-pyxdg
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog README TODO
|
||||
%{python3_sitelib}/xdg
|
||||
%{python3_sitelib}/pyxdg-*.egg-info
|
||||
%endif #with_python3
|
||||
|
||||
%changelog
|
||||
* Thu Nov 07 2019 Miro Hrončok <mhroncok@redhat.com> - 0.26-8
|
||||
- Subpackage python2-pyxdg has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.26-7
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user