# Created by pyp2rpm-0.5.1 %global pypi_name pyp2rpm Name: %{pypi_name} Version: 1.1.2 Release: 1%{?dist} Summary: Convert Python packages to RPM SPECFILES License: MIT URL: http://pypi.python.org/pypi/pyp2rpm Source0: http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # to get tests: # git clone git@bitbucket.org:bkabrda/pyp2rpm.git && cd pyp2rpm # git checkout v1.0.1 && tar czf pyp2rpm-1.0.1-tests.tgz tests/ Source1: %{name}-%{version}-tests.tgz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-flexmock >= 0.9.3 BuildRequires: python3-setuptools BuildRequires: python3-jinja2 Summary: Convert Python packages to RPM SPECFILES Requires: python3-jinja2 Requires: python3-setuptools Requires: rpmdevtools %description Convert Python packages to RPM SPECFILES. The packages can be downloaded from PyPI and the produced SPEC is in line with Fedora Packaging Guidelines. Users can provide their own templates for rendering the package metadata. Both the package source and metadata can be extracted from PyPI or from local filesystem (local file doesn't provide that much information though). %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build %{__python3} setup.py build %install %{__python3} setup.py install --skip-build --root %{buildroot} %check tar xzf %{SOURCE1} %{__python3} setup.py test %files %doc README.rst LICENSE %{_bindir}/pyp2rpm %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Thu Nov 27 2014 Robert Kuska - 1.1.2-1 - Update to 1.1.2 * Fri Sep 12 2014 Robert Kuska - 1.1.1-1 - Update to 1.1.1 * Sat Jun 07 2014 Fedora Release Engineering - 1.1.0b-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 13 2014 Bohuslav Kabrda - 1.1.0b-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue Apr 29 2014 Robert Kuska - 1.1.0b-1 - Update to v1.1.0b * 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 * Thu Feb 14 2013 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Dec 19 2012 Bohuslav Kabrda - 0.5.1-6 - Update to 1.0.1. * Mon Dec 03 2012 Bohuslav Kabrda - 0.5.1-5 - Properly require python3 deps only from the python3 subpackage. * Mon Aug 06 2012 David Malcolm - 0.5.1-4 - rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 * Thu Aug 2 2012 David Malcolm - 0.5.1-3 - generalize py.test reference to work with Python 3.* * Sat Jul 21 2012 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 18 2012 Bohuslav Kabrda - 0.5.1-1 - Initial package.