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: 32a6c74763c1b1d8ea6a260750bd0176
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: python3-flexmock >= 0.9.3
18 BuildRequires: python3-setuptools
19 BuildRequires: python3-wheel
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
23 BuildRequires: python3-click
24 BuildRequires: python3-jinja2
25 BuildRequires: python3-pytest
26 BuildRequires: python3-scripttest
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Convert Python packages to RPM .spec.
34 Users can provide their own templates for rendering the package
35 metadata. Both the package source and metadata can be extracted from
36 PyPI or from local filesystem (local file doesn't provide that much
49 PYTHONPATH=$(pwd) py.test-3
53 rm -rf $RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc README.md LICENSE
62 %attr(755,root,root) %{_bindir}/pyp2rpm
63 %dir %{py3_sitescriptdir}/%{name}
64 %{py3_sitescriptdir}/%{name}/__pycache__
65 %{py3_sitescriptdir}/%{name}/*.py
66 %{py3_sitescriptdir}/%{name}/command
67 %dir %{py3_sitescriptdir}/%{name}/templates
68 %{py3_sitescriptdir}/%{name}/templates/epel6.spec
69 %{py3_sitescriptdir}/%{name}/templates/epel7.spec
70 %{py3_sitescriptdir}/%{name}/templates/fedora.spec
71 %{py3_sitescriptdir}/%{name}/templates/macros.spec
72 %{py3_sitescriptdir}/%{name}/templates/mageia.spec
73 %{py3_sitescriptdir}/%{name}/templates/pld.spec
74 %{py3_sitescriptdir}/%{name}-%{version}-py*.egg-info