diff --git a/pyp2rpm.spec b/pyp2rpm.spec index 8a5924a..42e3d82 100644 --- a/pyp2rpm.spec +++ b/pyp2rpm.spec @@ -4,7 +4,7 @@ Name: %{pypi_name} Version: 1.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert Python packages to RPM SPECFILES License: MIT @@ -32,6 +32,7 @@ BuildRequires: python3-setuptools Requires: python-jinja2 Requires: python-setuptools +Requires: rpmdevtools %description Convert Python packages to RPM SPECFILES. The packages can be downloaded from @@ -47,6 +48,7 @@ Summary: Convert Python packages to RPM SPECFILES Requires: python3-jinja2 Requires: python3-setuptools +Requires: rpmdevtools %description -n python3-%{pypi_name} Convert Python packages to RPM SPECFILES. The packages can be downloaded from @@ -66,12 +68,16 @@ provide that much information though). # Remove bundled egg-info rm -rf %{pypi_name}.egg-info +sed -i 's/distribute/setuptools/' setup.py + %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' +sed -i 's/distribute/setuptools/' setup.py + %endif # with_python3 @@ -126,6 +132,10 @@ popd %changelog +* Wed Jan 29 2014 Robert Kuska - 1.0.1-4 +- Change requires from distribute to setuptools +- Add rpmdevtools to requires + * Sun Aug 04 2013 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild