|
1 | 1 | %global pypi_name feedgen
|
| 2 | +%global pypi_version 1.0.0 |
2 | 3 |
|
3 | 4 | Name: python-%{pypi_name}
|
4 |
| -Version: 0.9.0 |
| 5 | +Version: %{pypi_version} |
5 | 6 | Release: 1%{?dist}
|
6 | 7 | Summary: Feed Generator (ATOM, RSS, Podcasts)
|
7 | 8 |
|
8 | 9 | License: BSD or LGPLv3
|
9 | 10 | URL: http://lkiesow.github.io/python-feedgen
|
10 |
| -Source0: https://github.com/lkiesow/%{name}/archive/v%{version}.tar.gz |
| 11 | +#Source0: https://github.com/lkiesow/%{name}/archive/v%{version}.tar.gz |
| 12 | +Source0: %{pypi_source} |
11 | 13 | BuildArch: noarch
|
12 | 14 |
|
13 |
| -BuildRequires: python2-dateutil |
14 |
| -BuildRequires: python2-devel |
15 |
| -BuildRequires: python2-lxml |
16 |
| -BuildRequires: python2-setuptools |
17 |
| - |
18 |
| -BuildRequires: python3-dateutil |
19 | 15 | BuildRequires: python3-devel
|
20 |
| -BuildRequires: python3-lxml |
21 |
| -BuildRequires: python3-setuptools |
| 16 | +BuildRequires: python3dist(setuptools) |
| 17 | +BuildRequires: python3dist(lxml) |
| 18 | +BuildRequires: python3dist(python-dateutil) |
22 | 19 |
|
23 | 20 | %description
|
24 |
| -Feedgenerator This module can be used to generate web feeds in both ATOM and |
25 |
| -RSS format. It has support for extensions. Included is for example an extension |
26 |
| -to produce Podcasts. |
27 |
| - |
28 |
| -%package -n python2-%{pypi_name} |
29 |
| -Summary: %{summary} |
30 |
| -%{?python_provide:%python_provide python2-%{pypi_name}} |
31 |
| - |
32 |
| -Requires: python2-dateutil |
33 |
| -Requires: python2-lxml |
34 |
| -%description -n python2-%{pypi_name} |
35 |
| -Feedgenerator This module can be used to generate web feeds in both ATOM and |
| 21 | +Feedgenerator: This module can be used to generate web feeds in both ATOM and |
36 | 22 | RSS format. It has support for extensions. Included is for example an extension
|
37 | 23 | to produce Podcasts.
|
38 | 24 |
|
39 | 25 | %package -n python3-%{pypi_name}
|
40 | 26 | Summary: %{summary}
|
41 | 27 | %{?python_provide:%python_provide python3-%{pypi_name}}
|
42 | 28 |
|
43 |
| -Requires: python3-dateutil |
44 |
| -Requires: python3-lxml |
| 29 | +Requires: python3dist(python-dateutil) |
| 30 | +Requires: python3dist(lxml) |
| 31 | + |
45 | 32 | %description -n python3-%{pypi_name}
|
46 |
| -Feedgenerator This module can be used to generate web feeds in both ATOM and |
| 33 | +Feedgenerator: This module can be used to generate web feeds in both ATOM and |
47 | 34 | RSS format. It has support for extensions. Included is for example an extension
|
48 | 35 | to produce Podcasts.
|
49 | 36 |
|
50 | 37 |
|
51 | 38 | %prep
|
52 |
| -%autosetup |
| 39 | +%autosetup -n %{pypi_name}-%{pypi_version} |
53 | 40 | # Remove bundled egg-info
|
54 | 41 | rm -rf %{pypi_name}.egg-info
|
55 | 42 |
|
56 | 43 | %build
|
57 |
| -%py2_build |
58 | 44 | %py3_build
|
59 | 45 |
|
60 | 46 | %install
|
61 |
| -%py2_install |
62 | 47 | %py3_install
|
63 | 48 |
|
64 |
| - |
65 | 49 | %check
|
66 |
| -%{__python2} setup.py test |
67 | 50 | %{__python3} setup.py test
|
68 | 51 |
|
69 |
| -%files -n python2-%{pypi_name} |
70 |
| -%license license.lgpl license.bsd |
71 |
| -%doc readme.rst |
72 |
| -%{python2_sitelib}/%{pypi_name} |
73 |
| -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info |
74 |
| - |
75 | 52 | %files -n python3-%{pypi_name}
|
76 | 53 | %license license.lgpl license.bsd
|
77 | 54 | %doc readme.rst
|
78 | 55 | %{python3_sitelib}/%{pypi_name}
|
79 | 56 | %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
80 | 57 |
|
81 | 58 | %changelog
|
| 59 | +* Mon Dec 25 2023 Lars Kiesow <[email protected]> - 1.0.0-1 |
| 60 | +- Update to 1.0.0 |
| 61 | +- Removing support for Python 2 |
| 62 | + |
82 | 63 | * Sat May 19 2018 Lars Kiesow <[email protected]> - 0.7.0-1
|
83 | 64 | - Update to 0.7.0
|
84 | 65 |
|
|
0 commit comments