Skip to content

Commit e507e8f

Browse files
authored
Merge pull request #133 from lkiesow/spec-py3
Update RPM Specfile (tests, pypi, py3)
2 parents 8311a84 + fc5b64a commit e507e8f

File tree

1 file changed

+17
-36
lines changed

1 file changed

+17
-36
lines changed

python-feedgen.spec

+17-36
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,65 @@
11
%global pypi_name feedgen
2+
%global pypi_version 1.0.0
23

34
Name: python-%{pypi_name}
4-
Version: 0.9.0
5+
Version: %{pypi_version}
56
Release: 1%{?dist}
67
Summary: Feed Generator (ATOM, RSS, Podcasts)
78

89
License: BSD or LGPLv3
910
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}
1113
BuildArch: noarch
1214

13-
BuildRequires: python2-dateutil
14-
BuildRequires: python2-devel
15-
BuildRequires: python2-lxml
16-
BuildRequires: python2-setuptools
17-
18-
BuildRequires: python3-dateutil
1915
BuildRequires: python3-devel
20-
BuildRequires: python3-lxml
21-
BuildRequires: python3-setuptools
16+
BuildRequires: python3dist(setuptools)
17+
BuildRequires: python3dist(lxml)
18+
BuildRequires: python3dist(python-dateutil)
2219

2320
%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
3622
RSS format. It has support for extensions. Included is for example an extension
3723
to produce Podcasts.
3824

3925
%package -n python3-%{pypi_name}
4026
Summary: %{summary}
4127
%{?python_provide:%python_provide python3-%{pypi_name}}
4228

43-
Requires: python3-dateutil
44-
Requires: python3-lxml
29+
Requires: python3dist(python-dateutil)
30+
Requires: python3dist(lxml)
31+
4532
%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
4734
RSS format. It has support for extensions. Included is for example an extension
4835
to produce Podcasts.
4936

5037

5138
%prep
52-
%autosetup
39+
%autosetup -n %{pypi_name}-%{pypi_version}
5340
# Remove bundled egg-info
5441
rm -rf %{pypi_name}.egg-info
5542

5643
%build
57-
%py2_build
5844
%py3_build
5945

6046
%install
61-
%py2_install
6247
%py3_install
6348

64-
6549
%check
66-
%{__python2} setup.py test
6750
%{__python3} setup.py test
6851

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-
7552
%files -n python3-%{pypi_name}
7653
%license license.lgpl license.bsd
7754
%doc readme.rst
7855
%{python3_sitelib}/%{pypi_name}
7956
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
8057

8158
%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+
8263
* Sat May 19 2018 Lars Kiesow <[email protected]> - 0.7.0-1
8364
- Update to 0.7.0
8465

0 commit comments

Comments
 (0)