Repository navigation
Expand file tree
/
Copy pathpython-feedgen.spec
More file actions
149 lines (104 loc) · 3.59 KB
/
Copy pathpython-feedgen.spec
File metadata and controls
149 lines (104 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
%define srcname feedgen
Name: python-%{srcname}
Version: 0.6.1
Release: 1%{?dist}
Summary: Feed Generator (ATOM, RSS, Podcasts)
Group: Development/Libraries
License: LGPLv3+ or BSD
URL: http://lkiesow.github.io/%{name}/
Source0: https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python-lxml
Requires: python-dateutil
%description
This module can be used to generate web feeds in both ATOM and RSS format. It
has support for extensions. Included is for example an extension to produce
Podcasts.
%package -n python3-%{srcname}
Summary: Feed Generator (ATOM, RSS, Podcasts)
Group: Development/Libraries
Requires: python3-lxml
Requires: python3-dateutil
%description -n python3-%{srcname}
This module can be used to generate web feeds in both ATOM and RSS format. It
has support for extensions. Included is for example an extension to produce
Podcasts.
%prep
%setup -q -n %{srcname}-%{version}
mkdir python2
mv PKG-INFO docs feedgen license.bsd license.lgpl readme.rst setup.py python2
cp -r python2 python3
# ensure the right python version is used
find python3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
find python2 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
%build
pushd python2
%{__python2} setup.py build
popd
pushd python3
%{__python3} setup.py build
popd
%install
rm -rf $RPM_BUILD_ROOT
pushd python3
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
pushd python2
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
chmod 644 $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/*.py
chmod 644 $RPM_BUILD_ROOT%{python2_sitelib}/%{srcname}/*.py
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%license python2/license.*
%doc python2/docs/*
%{python2_sitelib}/*
%files -n python3-%{srcname}
%defattr(-,root,root,-)
%license python3/license.*
%doc python3/docs/*
%{python3_sitelib}/*
%changelog
- Update to 0.6.1
- Update to 0.6.0
- Update to 0.5.1
- Update to 0.5.0
- Update to 0.4.1
- Update to 0.4.0
- Update to 0.3.2
- Building for Python 3 as well
- Update to 0.3.1
- Update to 0.3
- Update to 0.2.8
- Update to 0.2.7
- Update to 0.2.6
- Updated to 0.2.5-1
- Update to 0.2.4
- Update to 0.2.3
- Update to version 0.2.2
- Initial build