1- # Created by pyp2rpm-3.3.3
2- %global pypi_name requre
1+ %global srcname requre
32
4- Name: python-%{pypi_name }
5- Version: 0.2.4
3+ Name: python-%{srcname }
4+ Version: 0.4.0
65Release: 1%{?dist }
76Summary: Python library what allows re/store output of various objects for testing
87
98License: MIT
10- URL: https://github.com/packit-service /requre
9+ URL: https://github.com/packit/requre
1110Source0: %{pypi_source }
1211BuildArch: noarch
1312
@@ -26,46 +25,39 @@ REQUest REcordingRequre [rekure] - Is Library for storing output of various
2625function and methods to persistent storage and be able to replay the stored
2726output to functions.
2827
29- %package -n python3-%{pypi_name }
28+ %package -n python3-%{srcname }
3029Summary: %{summary }
31- %{?python_provide:%python_provide python3-%{pypi_name }}
3230
33- %description -n python3-%{pypi_name }
31+ # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides
32+ %if 0%{?fedora } < 33
33+ %{?python_provide:%python_provide python3-%{srcname }}
34+ %endif
35+
36+ %description -n python3-%{srcname }
3437REQUest REcordingRequre [rekure] - Is Library for storing output of various
3538function and methods to persistent storage and be able to replay the stored
3639output to functions.
3740
38- %package -n python-%{pypi_name }-doc
39- Summary: requre documentation
40- %description -n python-%{pypi_name }-doc
41- Documentation for requre
42-
43- %check
44- make check
45-
4641%prep
47- %autosetup -n %{pypi_name }-%{version }
48- rm -rf %{pypi_name }.egg-info
42+ %autosetup -n %{srcname }-%{version }
43+ # Remove bundled egg-info
44+ rm -rf %{srcname }.egg-info
4945
5046%build
5147%py3_build
52- PYTHONPATH=${PWD} sphinx-build-3 docs html
53- rm -rf html/.{doctrees,buildinfo}
5448
5549%install
5650%py3_install
5751
58- %files -n python3-%{pypi_name }
52+ %files -n python3-%{srcname }
5953%license LICENSE
6054%doc README.md
6155%{_bindir }/requre-patch
62- %{python3_sitelib }/%{pypi_name }/
63- %{python3_sitelib }/%{pypi_name }-%{version }-py%{python3_version }.egg-info/
64-
65- %files -n python-%{pypi_name }-doc
66- %doc html
67- %license LICENSE
56+ %{python3_sitelib }/%{srcname }
57+ %{python3_sitelib }/%{srcname }-%{version }-py%{python3_version }.egg-info
6858
6959%changelog
60+ *
Wed Sep 22 2020 Jan Ščotka <[email protected] > -
0.4.0-1 61+ - New upstream release 0.4.0
7062*
Wed Jan 15 2020 Jan Ščotka <[email protected] > -
0.2.0-1 7163- Initial package.
0 commit comments