3 %bcond_with tests # do not perform "make test". requires network access, https://github.com/fedora-python/pyp2rpm/issues/57
5 Summary: Convert Python packages to RPM .spec files
11 Source0: https://github.com/fedora-python/pyp2rpm/archive/v%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 9c744bc722f554cb22f63e1fd2b1a187
13 Patch0: default-savepath.patch
14 Patch1: no-rpmdev-packager.patch
15 Patch2: default-distro.patch
16 URL: https://github.com/fedora-python/pyp2rpm
17 BuildRequires: python-flexmock >= 0.9.3
18 BuildRequires: python-pytest
19 BuildRequires: python-setuptools
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Convert Python packages to RPM .spec.
28 Users can provide their own templates for rendering the package
29 metadata. Both the package source and metadata can be extracted from
30 PyPI or from local filesystem (local file doesn't provide that much
43 PYTHONPATH=$(pwd) py.test
47 rm -rf $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc README.md LICENSE
57 %attr(755,root,root) %{_bindir}/pyp2rpm
58 %dir %{py_sitescriptdir}/%{name}
59 %{py_sitescriptdir}/%{name}/*.py[co]
60 %{py_sitescriptdir}/%{name}/command
61 %dir %{py_sitescriptdir}/%{name}/templates
62 %{py_sitescriptdir}/%{name}/templates/epel6.spec
63 %{py_sitescriptdir}/%{name}/templates/epel7.spec
64 %{py_sitescriptdir}/%{name}/templates/fedora.spec
65 %{py_sitescriptdir}/%{name}/templates/macros.spec
66 %{py_sitescriptdir}/%{name}/templates/mageia.spec
67 %{py_sitescriptdir}/%{name}/templates/pld.spec
68 %{py_sitescriptdir}/%{name}-%{version}-py*.egg-info