Subpackage python2-dbusmock has been removed

This commit is contained in:
Miro Hrončok 2019-07-23 23:46:58 +02:00
parent 4ba88f8d50
commit d2cd79ed30

View File

@ -2,7 +2,7 @@
Name: python-%{modname} Name: python-%{modname}
Version: 0.17 Version: 0.17
Release: 7%{?dist} Release: 8%{?dist}
Summary: Mock D-Bus objects Summary: Mock D-Bus objects
License: LGPLv3+ License: LGPLv3+
@ -13,10 +13,8 @@ BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-nose BuildRequires: python3-nose
BuildRequires: python2-devel, python2-setuptools, python2-dbus, python2-nose BuildRequires: dbus-x11
BuildRequires: python2-gobject, dbus-x11, upower BuildRequires: upower
%global _description\ %global _description\
With this program/Python library you can easily create mock objects on\ With this program/Python library you can easily create mock objects on\
@ -27,13 +25,6 @@ the state of the real services to what you expect in your tests.
%description %_description %description %_description
%package -n python2-dbusmock
Summary: %summary
Requires: python2-dbus, python2-gobject, dbus-x11
%{?python_provide:%python_provide python2-dbusmock}
%description -n python2-dbusmock %_description
%package -n python3-dbusmock %package -n python3-dbusmock
Summary: %summary (Python3) Summary: %summary (Python3)
Requires: python3-dbus, python3-gobject, dbus-x11 Requires: python3-dbus, python3-gobject, dbus-x11
@ -41,45 +32,28 @@ Requires: python3-dbus, python3-gobject, dbus-x11
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
rm -rf python-%{modname}.egg-info rm -rf python-%{modname}.egg-info
rm -rf %{py3dir}
cp -a . %{py3dir}
%build %build
%{__python2} setup.py build %py3_build
pushd %{py3dir}
%{__python3} setup.py build
popd
%install %install
%py3_install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
popd
%check %check
# Tests are disabled for now # Tests are disabled for now
# %{__python2} setup.py test
pushd %{py3dir}
# %{__python3} setup.py test # %{__python3} setup.py test
popd
%files -n python2-dbusmock
%doc README.rst COPYING
%{python2_sitelib}/*%{modname}*
%files -n python3-dbusmock %files -n python3-dbusmock
%doc README.rst COPYING %doc README.rst COPYING
%{python3_sitelib}/*%{modname}* %{python3_sitelib}/*%{modname}*
%changelog %changelog
* Tue Jul 23 2019 Miro Hrončok <mhroncok@redhat.com> - 0.17-8
- Subpackage python2-dbusmock has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-7 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild