diff --git python-debian/python-debian.spec python-debian/python-debian.spec.tmp index bf71337a35..e9cf388c56 100644 --- python-debian/python-debian.spec +++ python-debian/python-debian.spec.tmp @@ -11,7 +11,7 @@ Name: python-debian Version: 0.1.27 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Modules for Debian-related data formats # debfile.py, arfile.py, debtags.py are release under GPL v3 or above # everything else is GPLv2+ @@ -22,28 +22,36 @@ Patch1: 0001-add-support-for-lzma.patch URL: http://git.debian.org/?p=pkg-python-debian/python-debian.git BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch -Requires: python >= 2.4 -Requires: python-chardet -Requires: xz -Requires: python-six #not available now #Recommends: python-apt -Suggests: gnupg BuildRequires: python-devel, python-setuptools, python-chardet BuildRequires: python-six -%description -This package provides Python modules that abstract many formats of Debian -related files. Currently handled are: -* Debtags information (debian.debtags module) -* debian/changelog (debian.changelog module) -* Packages files, pdiffs (debian.debian_support module) -* Control files of single or multiple RFC822-style paragraphs, e.g. - debian/control, .changes, .dsc, Packages, Sources, Release, etc. - (debian.deb822 module) -* Raw .deb and .ar files, with (read-only) access to contained +%global _description\ +This package provides Python modules that abstract many formats of Debian\ +related files. Currently handled are:\ +* Debtags information (debian.debtags module)\ +* debian/changelog (debian.changelog module)\ +* Packages files, pdiffs (debian.debian_support module)\ +* Control files of single or multiple RFC822-style paragraphs, e.g.\ + debian/control, .changes, .dsc, Packages, Sources, Release, etc.\ + (debian.deb822 module)\ +* Raw .deb and .ar files, with (read-only) access to contained\ files and meta-information +%description %_description + +%package -n python2-debian +Summary: %summary +Requires: python >= 2.4 +Requires: python-chardet +Requires: xz +Requires: python-six +Suggests: gnupg +%{?python_provide:%python_provide python2-debian} + +%description -n python2-debian %_description + %if 0%{?with_python3} %package -n python3-debian Summary: Modules for Debian-related data formats @@ -119,7 +127,7 @@ cd tests; popd %endif -%files +%files -n python2-debian %defattr(-,root,root,-) %dir %{python_sitelib}/debian %dir %{python_sitelib}/debian_bundle @@ -145,6 +153,10 @@ popd %endif %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 0.1.27-8 +- Python 2 binary package renamed to python2-debian + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.1.27-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild