# Created by pyp2rpm-1.0.1 %global pypi_name pyp2rpm %define version 1.0.1 Name: python-pyp2rpm Version: %{version} Release: %mkrel 1 Group: Development/Python Summary: Convert Python packages to RPM SPECFILES License: MIT URL: http://pypi.python.org/pypi/pyp2rpm Source0: http://pypi.python.org/packages/source/p/pyp2rpm/pyp2rpm-%{version}.tar.gz BuildArch: noarch Patch0: pyp2rpm-mageia.patch BuildRequires: python-devel BuildRequires: python-test BuildRequires: python-flexmock >= 0.9.3 Requires: python-jinja2 Requires: python-setuptools %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 or Mageia Python Policy. 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} %patch0 -p1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc README.rst LICENSE #%{_bindir}/pyp2rpm %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Jan 28 2013 joequant <joequant> 1.0.1-1.mga3 + Revision: 392906 - upgrade to 1.0.1 - add category - imported package python-pyp2rpm