diff --git python-pyblock/python-pyblock.spec python-pyblock/python-pyblock.spec.tmp index d2dadc48bf..8789e13619 100644 --- python-pyblock/python-pyblock.spec +++ python-pyblock/python-pyblock.spec.tmp @@ -7,7 +7,7 @@ Summary: Python modules for dealing with block devices Name: python-%{realname} Version: 0.53 -Release: 14%{?dist} +Release: 15%{?dist} # We are upstream, to generate Source0 do: # git clone http://git.fedorahosted.org/git/pyblock.git # git checkout -b archive-branch pyblock-%{version}-%{release} @@ -20,11 +20,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: python-devel, gettext BuildRequires: device-mapper-libs >= %{dmver}, device-mapper-devel >= %{dmver} BuildRequires: dmraid-devel >= %{dmrver}, libselinux-devel, libsepol-devel -Requires: device-mapper-libs >= %{dmver}, pyparted -%description +%global _description\ The pyblock contains Python modules for dealing with block devices. +%description %_description + +%package -n python2-%{realname} +Summary: %summary +Requires: device-mapper-libs >= %{dmver}, pyparted +%{?python_provide:%python_provide python2-%{realname}} + +%description -n python2-%{realname} %_description + %prep %setup -q -n %{realname}-%{version} sed -i -e 's|/usr/share/doc/pyblock-${VERSION}|%{_pkgdocdir}|' Makefile @@ -39,12 +47,16 @@ make DESTDIR=${RPM_BUILD_ROOT} SITELIB=%{python_sitearch} install %clean rm -rf $RPM_BUILD_ROOT -%files +%files -n python2-%{realname} %defattr(-,root,root,-) %doc %{_pkgdocdir} %{python_sitearch}/block %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 0.53-15 +- Python 2 binary package renamed to python2-pyblock + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 0.53-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild