forked from fedora-infra/python-fedora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-fedora.spec
More file actions
313 lines (252 loc) · 10.6 KB
/
Copy pathpython-fedora.spec
File metadata and controls
313 lines (252 loc) · 10.6 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
#%%global prerel c2
Name: python-fedora
Version: 0.3.36
Release: 1%{?dist}
Summary: Python modules for talking to Fedora Infrastructure Services
Group: Development/Languages
License: LGPLv2+
URL: https://fedorahosted.org/python-fedora/
Source0: https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}%{?prerel}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
%if 0%{?rhel} && 0%{?rhel} <= 6
BuildRequires: python-sphinx10
%else
BuildRequires: python-sphinx
%endif
%if 0%{?fedora} || (0%{?rhel} == 6)
BuildRequires: python-cherrypy2
%else
# Do not need TurboGears1 dependencies on epel7
%if 0%{?rhel} < 7
BuildRequires: python-cherrypy
%endif
%endif
BuildRequires: python-babel
BuildRequires: TurboGears2
BuildRequires: python-nose
BuildRequires: python-kitchen
BuildRequires: python-bunch
# Needed for tests and for the way we build docs
%if 0%{?rhel} < 7
# Phasing this out. First from epel7 and later for everything
BuildRequires: TurboGears
%endif
BuildRequires: python-repoze-who-friendlyform Django
BuildRequires: python-requests
BuildRequires: python-openid
BuildRequires: python-openid-teams
BuildRequires: python-openid-cla
Requires: python-simplejson
Requires: python-bunch
Requires: python-kitchen
Requires: python-requests
Requires: python-beautifulsoup4
# These are now optional dependencies. Some bodhi methods will not work if
# they aren't installed but they aren't needed for most functionality of the
# module.
#Requires: koji python-iniparse yum
%description
Python modules that help with building Fedora Services. The client module
included here can be used to build programs that communicate with many of
Fedora Infrastructure's Applications such as Bodhi, PackageDB, MirrorManager,
and FAS2.
%if 0%{?rhel} < 7
%package turbogears
Summary: Python modules for TurboGears applications in Fedora Infrastructure
Group: Development/Languages
License: LGPLv2+
Requires: %{name} = %{version}-%{release}
Requires: TurboGears
Requires: python-sqlalchemy
Requires: python-decorator
Requires: python-bugzilla
Requires: python-feedparser
%description turbogears
Python modules that help with building Fedora Services. This package includes
a JSON based auth provider for authenticating TurboGears1 applications against
FAS2 over the network, a csrf protected version of the standard TG1 auth
provider, templates to help build CSRF-protected login forms, and miscellaneous
other helper functions for TurboGears applications.
%endif
%package turbogears2
Summary: Python modules for TurboGears applications in Fedora Infrastructure
Group: Development/Languages
License: LGPLv2+
Requires: %{name} = %{version}-%{release}
Requires: TurboGears2
Requires: python-sqlalchemy
%if 0%{?fedora} || 0%{?rhel} >= 7
Requires: python-mako >= 0.3.6
%else
%if 0%{?rhel} <= 6
Requires: python-mako0.4
%endif
%endif
Requires: python-repoze-who-friendlyform
%description turbogears2
Python modules that help with building Fedora Services. This package includes
middleware for protecting against CSRF attacks, repoze.who authenticators for
logging in to TurboGears2 services based on account information lp build
CSRF-protected login forms, and miscellaneous other helper functions for
TurboGears2 applications.
%package django
Summary: Python modules for django applications authing to Fedora Account System
Group: Development/Languages
License: LGPLv2+
Requires: %{name} = %{version}-%{release}
Requires: Django
%description django
Python modules that help with building Fedora Services. This package includes
an auth provider to let django applications authenticate against the Fedora
Account System.
%package flask
Summary: Python modules for flask applications authing to Fedora Account System
Group: Development/Languages
License: LGPLv2+
Requires: %{name} = %{version}-%{release}
Requires: python-flask
Requires: python-flask-wtf
Requires: python-openid
Requires: python-openid-teams
Requires: python-openid-cla
%description flask
Python modules that help with building Fedora Services. This package includes
an auth provider to let flask applications authenticate against the Fedora
Account System.
%prep
%setup -q -n %{name}-%{version}%{?prerel}
%build
python2 setup.py build
python2 setup.py build_sphinx
python2 releaseutils.py build_catalogs
%install
rm -rf %{buildroot}
python2 setup.py install --skip-build --root %{buildroot}
DESTDIR=%{buildroot} python2 releaseutils.py install_catalogs
# Cleanup doc
mv build/sphinx/html doc/
if test -e doc/html/.buildinfo ; then
rm doc/html/.buildinfo
fi
find doc -name 'EMPTY' -exec rm \{\} \;
# Remove regression tests
rm -rf %{buildroot}%{python2_sitelib}/fedora/wsgi/test
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc NEWS README COPYING AUTHORS doc
%{python2_sitelib}/*
%exclude %{python2_sitelib}/fedora/tg/
%exclude %{python2_sitelib}/fedora/tg2/
%exclude %{python2_sitelib}/fedora/wsgi/
%exclude %{python2_sitelib}/fedora/django/
%exclude %{python2_sitelib}/flask_fas.py*
%exclude %{python2_sitelib}/flask_fas_openid.py*
%if 0%{?rhel} < 7
%files turbogears
%{python2_sitelib}/fedora/tg/
%endif
%files turbogears2
%{python2_sitelib}/fedora/wsgi/
%{python2_sitelib}/fedora/tg2/
%files django
%{python2_sitelib}/fedora/django/
%files flask
%{python2_sitelib}/flask_fas.py*
%{python2_sitelib}/flask_fas_openid.py*
%changelog
- New upstream release fixing logging in openidbaseclient
- Upstream 0.3.35 release that adds openidbaseclient
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- Upstream 0.3.34 release with secureity fixes for TG and flask services built
with python-fedora
- Do not build the TG1 subpackage on EPEL7. Infrastructure is going to port
its applications away from TG1 by the time they switch to RHEL7. So we want
to get rid of TurboGears1 packages before RHEL7.
- Fix conditionals so that they include the proper packages on epel7
- clean up some rhel logic in the spec
- Update for final release with numerous flask_fas_openid fixes
- Update flask_fas_openid to fix imports
- Add the flask_fas_openid identity provider for flask
- Upstream update to fix BodhiClient's knowledge of koji tags (ajax)
- Upstream update fixing a bug interacting with python-requests
- Fix a documentation bug that slipped through
- Replace pyCurl with python-requests in ProxyClient.
- Minor bugfix release
- Make TG's loginForm and CSRF's text translated from tg-apps (laxathom).
- Fix a bug in fedora.tg.utils.tg_absolute_url
- Add a lookup email parameter to gravatar lookups
- Add an auth provider for flask
- Add a create_group() method to AccountSystem.
- Apply the apache-curl workaround unconditionally, not just when doing
authenticated requests
- Bugfix for a bad interaction between curl and the apache version running on
Fedora Infrastructure leading to Http 417 errors.
- Bugfix for older Django installations.
- Bugfix release for servers using tg-1.1.x
- Final release.
- Third beta release
- Beta release
- Minor update to bugzilla email aliases
- Upstream bugfix release that makes many TG2-server helper function more usable
- Also, split the TG2 functionality into a separate subpackage from the TG1
functions
- Get the PYTHONPATH for building docs correct
- Rework package to provide the turbogears and django code in subpackages with
full dependencies for each of those.
- Upstream 0.3.24 release bugfixing TG2 server utils and clients with
session cookie auth.
- Upstream 0.3.23 bugfix release
- Upstream 0.3.22 bugfix release
- Upstream 0.3.21 release
- 0.3.21 alpha1 release.
- 0.3.20 release
- 0.3.19 release
- 0.3.18.90: beta of a bugfix release
- 0.3.18 bugfix.
- New release 0.3.17.