forked from fedora-infra/python-fedora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-fedora.spec
313 lines (252 loc) · 10.6 KB
/
python-fedora.spec
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
* Thu Aug 7 2014 Toshio Kuratomi <[email protected]> - 0.3.36-1
- New upstream release fixing logging in openidbaseclient
* Wed Aug 6 2014 Toshio Kuratomi <[email protected]> - 0.3.35-1
- Upstream 0.3.35 release that adds openidbaseclient
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.3.34-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri May 2 2014 Toshio Kuratomi <[email protected]> - 0.3.34-1
- Upstream 0.3.34 release with security fixes for TG and flask services built
with python-fedora
* Fri Mar 14 2014 Toshio Kuratomi <[email protected]> - 0.3.33-3
- 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
* Fri Jan 10 2014 Dennis Gilmore <[email protected]> - 0.3.33-2
- clean up some rhel logic in the spec
* Thu Dec 19 2013 Toshio Kuratomi <[email protected]> - 0.3.33-1
- Update for final release with numerous flask_fas_openid fixes
* Mon Jul 29 2013 Toshio Kuratomi <[email protected]> - 0.3.32.3-3
- Update flask_fas_openid to fix imports
* Tue Jul 23 2013 Toshio Kuratomi <[email protected]> - 0.3.32.3-2
- Add the flask_fas_openid identity provider for flask
* Tue Feb 5 2013 Toshio Kuratomi <[email protected]> - 0.3.32.3-1
- Upstream update to fix BodhiClient's knowledge of koji tags (ajax)
* Mon Feb 04 2013 Toshio Kuratomi <[email protected]> 0.3.32.2-1
- Upstream update fixing a bug interacting with python-requests
* Thu Jan 24 2013 Toshio Kuratomi <[email protected]> - 0.3.32.1-1
- Fix a documentation bug that slipped through
* Wed Jan 23 2013 Ralph Bean <[email protected]> - 0.3.32-1
- Replace pyCurl with python-requests in ProxyClient.
* Tue Jan 22 2013 Toshio Kuratomi <[email protected]> - 0.3.31-1
- Minor bugfix release
* Thu Jan 10 2013 Toshio Kuratomi <[email protected]> - 0.3.30-1
- 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
* Wed Jun 6 2012 Ricky Elrd <[email protected]> - 0.3.29-1
- Add a create_group() method to AccountSystem.
* Tue Apr 17 2012 Toshio Kuratomi <[email protected]> - 0.3.28.1-1
- Apply the apache-curl workaround unconditionally, not just when doing
authenticated requests
* Tue Apr 17 2012 Toshio Kuratomi <[email protected]> - 0.3.28-1
- 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.
* Thu Mar 8 2012 Toshio Kuratomi <[email protected]> - 0.3.27-1
- Bugfix release for servers using tg-1.1.x
* Mon Feb 13 2012 Toshio Kuratomi <[email protected]> - 0.3.26-1
- Final release.
* Thu Dec 22 2011 Toshio Kuratomi <[email protected]> - 0.3.25.92-1
- Third beta release
* Sun Nov 20 2011 Toshio Kuratomi <[email protected]> - 0.3.25.90-1
- Beta release
* Thu Oct 6 2011 Toshio Kuratomi <[email protected]> - 0.3.25.1-1
- Minor update to bugzilla email aliases
* Sat Sep 3 2011 Toshio Kuratomi <[email protected]> - 0.3.25-1
- 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
* Tue Aug 9 2011 Toshio Kuratomi <[email protected]> - 0.3.24-3
- Get the PYTHONPATH for building docs correct
* Tue Aug 9 2011 Toshio Kuratomi <[email protected]> - 0.3.24-2
- Rework package to provide the turbogears and django code in subpackages with
full dependencies for each of those.
* Wed Jul 20 2011 Toshio Kuratomi <[email protected]> - 0.3.24-1
- Upstream 0.3.24 release bugfixing TG2 server utils and clients with
session cookie auth.
* Tue May 03 2011 Luke Macken <[email protected]> - 0.3.23-1
- Upstream 0.3.23 bugfix release
* Fri Apr 29 2011 Toshio Kuratomi <[email protected]> - 0.3.22-1
- Upstream 0.3.22 bugfix release
* Mon Apr 11 2011 Toshio Kuratomi <[email protected]> - 0.3.21-1
- Upstream 0.3.21 release
* Mon Feb 28 2011 Toshio Kuratomi <[email protected]> - 0.3.21-0.a1
- 0.3.21 alpha1 release.
* Thu Apr 22 2010 Toshio Kuratomi <[email protected]> - 0.3.20-1
- 0.3.20 release
* Wed Apr 21 2010 Luke Macken <[email protected]> - 0.3.19-1
- 0.3.19 release
* Mon Mar 15 2010 Toshio Kuratomi <[email protected]> - 0.3.18.90-1
- 0.3.18.90: beta of a bugfix release
* Mon Mar 15 2010 Toshio Kuratomi <[email protected]> - 0.3.18-1
- 0.3.18 bugfix.
* Thu Mar 11 2010 Toshio Kuratomi <[email protected]> - 0.3.17-1
- New release 0.3.17.