|
|
896b460 |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
648730a |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
648730a |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
896b460 |
%endif
|
|
|
62ea07e |
#%%global prerel c2
|
|
|
62ea07e |
|
|
|
e3e9e03 |
Name: python-fedora
|
|
|
66c92cd |
Version: 0.3.37
|
|
|
66c92cd |
Release: 1%{?dist}
|
|
|
e3e9e03 |
Summary: Python modules for talking to Fedora Infrastructure Services
|
|
|
e3e9e03 |
|
|
|
e3e9e03 |
Group: Development/Languages
|
|
|
bf83af5 |
License: LGPLv2+
|
|
|
dcfc3be |
URL: https://fedorahosted.org/python-fedora/
|
|
|
66c92cd |
Source0: https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}%{?prerel}.tar.xz
|
|
|
e3e9e03 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e3e9e03 |
|
|
|
833a565 |
|
|
|
e3e9e03 |
BuildArch: noarch
|
|
|
37fa3ab |
BuildRequires: python2-devel
|
|
|
37fa3ab |
BuildRequires: python-setuptools
|
|
|
896b460 |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
896b460 |
BuildRequires: python-sphinx10
|
|
|
896b460 |
%else
|
|
|
1a6bc66 |
BuildRequires: python-sphinx
|
|
|
896b460 |
%endif
|
|
|
8afb6bf |
%if 0%{?fedora} || (0%{?rhel} == 6)
|
|
|
0c73223 |
BuildRequires: python-cherrypy2
|
|
|
349dc1d |
%else
|
|
|
8afb6bf |
# Do not need TurboGears1 dependencies on epel7
|
|
|
8afb6bf |
%if 0%{?rhel} < 7
|
|
|
0c73223 |
BuildRequires: python-cherrypy
|
|
|
349dc1d |
%endif
|
|
|
8afb6bf |
%endif
|
|
|
349dc1d |
BuildRequires: python-babel
|
|
|
0c73223 |
BuildRequires: TurboGears2
|
|
|
41e1329 |
BuildRequires: python-nose
|
|
|
37fa3ab |
BuildRequires: python-kitchen
|
|
|
37fa3ab |
BuildRequires: python-bunch
|
|
|
e8b4da1 |
# Needed for tests and for the way we build docs
|
|
|
04ef7f6 |
%if 0%{?rhel} < 7
|
|
|
8afb6bf |
# Phasing this out. First from epel7 and later for everything
|
|
|
04ef7f6 |
BuildRequires: TurboGears
|
|
|
04ef7f6 |
%endif
|
|
|
04ef7f6 |
BuildRequires: python-repoze-who-friendlyform Django
|
|
|
cc36712 |
BuildRequires: python-requests
|
|
|
d19ebc0 |
BuildRequires: python-openid
|
|
|
d19ebc0 |
BuildRequires: python-openid-teams
|
|
|
d19ebc0 |
BuildRequires: python-openid-cla
|
|
|
e8b4da1 |
|
|
|
f128c82 |
Requires: python-simplejson
|
|
|
37fa3ab |
Requires: python-bunch
|
|
|
37fa3ab |
Requires: python-kitchen
|
|
|
cc36712 |
Requires: python-requests
|
|
|
c32dedb |
Requires: python-beautifulsoup4
|
|
|
8c9d8c5 |
# These are now optional dependencies. Some bodhi methods will not work if
|
|
|
8c9d8c5 |
# they aren't installed but they aren't needed for most functionality of the
|
|
|
8c9d8c5 |
# module.
|
|
|
8c9d8c5 |
#Requires: koji python-iniparse yum
|
|
|
e3e9e03 |
|
|
|
e3e9e03 |
%description
|
|
|
e8b4da1 |
Python modules that help with building Fedora Services. The client module
|
|
|
04ef7f6 |
included here can be used to build programs that communicate with many of
|
|
|
04ef7f6 |
Fedora Infrastructure's Applications such as Bodhi, PackageDB, MirrorManager,
|
|
|
04ef7f6 |
and FAS2.
|
|
|
e8b4da1 |
|
|
|
04ef7f6 |
%if 0%{?rhel} < 7
|
|
|
e8b4da1 |
%package turbogears
|
|
|
e8b4da1 |
Summary: Python modules for TurboGears applications in Fedora Infrastructure
|
|
|
e8b4da1 |
Group: Development/Languages
|
|
|
e8b4da1 |
License: LGPLv2+
|
|
|
e8b4da1 |
Requires: %{name} = %{version}-%{release}
|
|
|
e8b4da1 |
Requires: TurboGears
|
|
|
62ea07e |
Requires: python-sqlalchemy
|
|
|
62ea07e |
Requires: python-decorator
|
|
|
62ea07e |
Requires: python-bugzilla
|
|
|
62ea07e |
Requires: python-feedparser
|
|
|
62ea07e |
|
|
|
62ea07e |
%description turbogears
|
|
|
62ea07e |
Python modules that help with building Fedora Services. This package includes
|
|
|
62ea07e |
a JSON based auth provider for authenticating TurboGears1 applications against
|
|
|
62ea07e |
FAS2 over the network, a csrf protected version of the standard TG1 auth
|
|
|
62ea07e |
provider, templates to help build CSRF-protected login forms, and miscellaneous
|
|
|
62ea07e |
other helper functions for TurboGears applications.
|
|
|
04ef7f6 |
%endif
|
|
|
62ea07e |
|
|
|
62ea07e |
%package turbogears2
|
|
|
62ea07e |
Summary: Python modules for TurboGears applications in Fedora Infrastructure
|
|
|
62ea07e |
Group: Development/Languages
|
|
|
62ea07e |
License: LGPLv2+
|
|
|
62ea07e |
Requires: %{name} = %{version}-%{release}
|
|
|
e8b4da1 |
Requires: TurboGears2
|
|
|
e8b4da1 |
Requires: python-sqlalchemy
|
|
|
8afb6bf |
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
62ea07e |
Requires: python-mako >= 0.3.6
|
|
|
8afb6bf |
%else
|
|
|
8afb6bf |
%if 0%{?rhel} <= 6
|
|
|
8afb6bf |
Requires: python-mako0.4
|
|
|
8afb6bf |
%endif
|
|
|
62ea07e |
%endif
|
|
|
e8b4da1 |
Requires: python-repoze-who-friendlyform
|
|
|
e8b4da1 |
|
|
|
62ea07e |
%description turbogears2
|
|
|
e8b4da1 |
Python modules that help with building Fedora Services. This package includes
|
|
|
62ea07e |
middleware for protecting against CSRF attacks, repoze.who authenticators for
|
|
|
62ea07e |
logging in to TurboGears2 services based on account information lp build
|
|
|
62ea07e |
CSRF-protected login forms, and miscellaneous other helper functions for
|
|
|
62ea07e |
TurboGears2 applications.
|
|
|
e8b4da1 |
|
|
|
e8b4da1 |
%package django
|
|
|
e8b4da1 |
Summary: Python modules for django applications authing to Fedora Account System
|
|
|
e8b4da1 |
Group: Development/Languages
|
|
|
e8b4da1 |
License: LGPLv2+
|
|
|
e8b4da1 |
Requires: %{name} = %{version}-%{release}
|
|
|
e8b4da1 |
Requires: Django
|
|
|
e8b4da1 |
|
|
|
e8b4da1 |
%description django
|
|
|
e8b4da1 |
Python modules that help with building Fedora Services. This package includes
|
|
|
e8b4da1 |
an auth provider to let django applications authenticate against the Fedora
|
|
|
e8b4da1 |
Account System.
|
|
|
e3e9e03 |
|
|
|
46d847f |
%package flask
|
|
|
46d847f |
Summary: Python modules for flask applications authing to Fedora Account System
|
|
|
46d847f |
Group: Development/Languages
|
|
|
46d847f |
License: LGPLv2+
|
|
|
46d847f |
Requires: %{name} = %{version}-%{release}
|
|
|
46d847f |
Requires: python-flask
|
|
|
46d847f |
Requires: python-flask-wtf
|
|
|
d19ebc0 |
Requires: python-openid
|
|
|
d19ebc0 |
Requires: python-openid-teams
|
|
|
d19ebc0 |
Requires: python-openid-cla
|
|
|
46d847f |
|
|
|
46d847f |
%description flask
|
|
|
46d847f |
Python modules that help with building Fedora Services. This package includes
|
|
|
46d847f |
an auth provider to let flask applications authenticate against the Fedora
|
|
|
46d847f |
Account System.
|
|
|
46d847f |
|
|
|
e3e9e03 |
%prep
|
|
|
66c92cd |
%setup -q -c -n %{name}-%{version}%{?prerel}
|
|
|
e3e9e03 |
|
|
|
833a565 |
|
|
|
e3e9e03 |
%build
|
|
|
896b460 |
python2 setup.py build
|
|
|
896b460 |
python2 setup.py build_sphinx
|
|
|
896b460 |
python2 releaseutils.py build_catalogs
|
|
|
e3e9e03 |
|
|
|
e3e9e03 |
%install
|
|
|
2511f72 |
rm -rf %{buildroot}
|
|
|
896b460 |
python2 setup.py install --skip-build --root %{buildroot}
|
|
|
896b460 |
DESTDIR=%{buildroot} python2 releaseutils.py install_catalogs
|
|
|
bba62b6 |
|
|
|
62ea07e |
# Cleanup doc
|
|
|
896b460 |
mv build/sphinx/html doc/
|
|
|
62ea07e |
if test -e doc/html/.buildinfo ; then
|
|
|
62ea07e |
rm doc/html/.buildinfo
|
|
|
62ea07e |
fi
|
|
|
62ea07e |
find doc -name 'EMPTY' -exec rm \{\} \;
|
|
|
62ea07e |
|
|
|
62ea07e |
# Remove regression tests
|
|
|
896b460 |
rm -rf %{buildroot}%{python2_sitelib}/fedora/wsgi/test
|
|
|
62ea07e |
|
|
|
349dc1d |
%find_lang %{name}
|
|
|
e3e9e03 |
|
|
|
e3e9e03 |
%clean
|
|
|
2511f72 |
rm -rf %{buildroot}
|
|
|
e3e9e03 |
|
|
|
349dc1d |
%files -f %{name}.lang
|
|
|
e3e9e03 |
%defattr(-,root,root,-)
|
|
|
cc36712 |
%doc NEWS README COPYING AUTHORS doc
|
|
|
896b460 |
%{python2_sitelib}/*
|
|
|
896b460 |
%exclude %{python2_sitelib}/fedora/tg/
|
|
|
896b460 |
%exclude %{python2_sitelib}/fedora/tg2/
|
|
|
896b460 |
%exclude %{python2_sitelib}/fedora/wsgi/
|
|
|
896b460 |
%exclude %{python2_sitelib}/fedora/django/
|
|
|
896b460 |
%exclude %{python2_sitelib}/flask_fas.py*
|
|
|
896b460 |
%exclude %{python2_sitelib}/flask_fas_openid.py*
|
|
|
e8b4da1 |
|
|
|
04ef7f6 |
%if 0%{?rhel} < 7
|
|
|
e8b4da1 |
%files turbogears
|
|
|
896b460 |
%{python2_sitelib}/fedora/tg/
|
|
|
04ef7f6 |
%endif
|
|
|
62ea07e |
|
|
|
62ea07e |
%files turbogears2
|
|
|
896b460 |
%{python2_sitelib}/fedora/wsgi/
|
|
|
896b460 |
%{python2_sitelib}/fedora/tg2/
|
|
|
e8b4da1 |
|
|
|
e8b4da1 |
%files django
|
|
|
896b460 |
%{python2_sitelib}/fedora/django/
|
|
|
e3e9e03 |
|
|
|
46d847f |
%files flask
|
|
|
896b460 |
%{python2_sitelib}/flask_fas.py*
|
|
|
896b460 |
%{python2_sitelib}/flask_fas_openid.py*
|
|
|
46d847f |
|
|
|
e3e9e03 |
%changelog
|
|
|
66c92cd |
* Sat Jan 24 2015 Xavier Lamien <laxathom@fedoraproject.org> - 0.3.37-1
|
|
|
66c92cd |
- Upstream release.
|
|
|
66c92cd |
|
|
|
833a565 |
* Thu Oct 23 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.3.36-2
|
|
|
833a565 |
- Backport the flask-fas-openid fix merged upstream at:
|
|
|
833a565 |
https://github.com/fedora-infra/python-fedora/pull/108
|
|
|
833a565 |
|
|
|
e951478 |
* Thu Aug 7 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.36-1
|
|
|
e951478 |
- New upstream release fixing logging in openidbaseclient
|
|
|
e951478 |
|
|
|
1510b9c |
* Wed Aug 6 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.35-1
|
|
|
1510b9c |
- Upstream 0.3.35 release that adds openidbaseclient
|
|
|
1510b9c |
|
|
|
e1219cc |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.34-2
|
|
|
e1219cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e1219cc |
|
|
|
c32dedb |
* Fri May 2 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.34-1
|
|
|
c32dedb |
- Upstream 0.3.34 release with security fixes for TG and flask services built
|
|
|
c32dedb |
with python-fedora
|
|
|
c32dedb |
|
|
|
8afb6bf |
* Fri Mar 14 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.33-3
|
|
|
04ef7f6 |
- Do not build the TG1 subpackage on EPEL7. Infrastructure is going to port
|
|
|
04ef7f6 |
its applications away from TG1 by the time they switch to RHEL7. So we want
|
|
|
04ef7f6 |
to get rid of TurboGears1 packages before RHEL7.
|
|
|
8afb6bf |
- Fix conditionals so that they include the proper packages on epel7
|
|
|
8afb6bf |
|
|
|
bbc139b |
* Fri Jan 10 2014 Dennis Gilmore <dennis@ausil.us> - 0.3.33-2
|
|
|
bbc139b |
- clean up some rhel logic in the spec
|
|
|
04ef7f6 |
|
|
|
896b460 |
* Thu Dec 19 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.33-1
|
|
|
896b460 |
- Update for final release with numerous flask_fas_openid fixes
|
|
|
896b460 |
|
|
|
812fa6f |
* Mon Jul 29 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.32.3-3
|
|
|
812fa6f |
- Update flask_fas_openid to fix imports
|
|
|
812fa6f |
|
|
|
d19ebc0 |
* Tue Jul 23 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.32.3-2
|
|
|
d19ebc0 |
- Add the flask_fas_openid identity provider for flask
|
|
|
d19ebc0 |
|
|
|
e8e2bb6 |
* Tue Feb 5 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.32.3-1
|
|
|
e8e2bb6 |
- Upstream update to fix BodhiClient's knowledge of koji tags (ajax)
|
|
|
e8e2bb6 |
|
|
|
8a6a54d |
* Mon Feb 04 2013 Toshio Kuratomi <toshio@fedoraproject.org> 0.3.32.2-1
|
|
|
8a6a54d |
- Upstream update fixing a bug interacting with python-requests
|
|
|
8a6a54d |
|
|
|
cc36712 |
* Thu Jan 24 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.32.1-1
|
|
|
cc36712 |
- Fix a documentation bug that slipped through
|
|
|
cc36712 |
|
|
|
cc36712 |
* Wed Jan 23 2013 Ralph Bean <rbean@redhat.com> - 0.3.32-1
|
|
|
cc36712 |
- Replace pyCurl with python-requests in ProxyClient.
|
|
|
cc36712 |
|
|
|
5846a33 |
* Tue Jan 22 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.31-1
|
|
|
5846a33 |
- Minor bugfix release
|
|
|
5846a33 |
|
|
|
46d847f |
* Thu Jan 10 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.30-1
|
|
|
46d847f |
- Make TG's loginForm and CSRF's text translated from tg-apps (laxathom).
|
|
|
46d847f |
- Fix a bug in fedora.tg.utils.tg_absolute_url
|
|
|
46d847f |
- Add a lookup email parameter to gravatar lookups
|
|
|
46d847f |
- Add an auth provider for flask
|
|
|
46d847f |
|
|
|
9619182 |
* Wed Jun 6 2012 Ricky Elrd <codeblock@fedoraproject.org> - 0.3.29-1
|
|
|
9619182 |
- Add a create_group() method to AccountSystem.
|
|
|
9619182 |
|
|
|
6a71f49 |
* Tue Apr 17 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.28.1-1
|
|
|
6a71f49 |
- Apply the apache-curl workaround unconditionally, not just when doing
|
|
|
6a71f49 |
authenticated requests
|
|
|
6a71f49 |
|
|
|
44c1056 |
* Tue Apr 17 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.28-1
|
|
|
44c1056 |
- Bugfix for a bad interaction between curl and the apache version running on
|
|
|
44c1056 |
Fedora Infrastructure leading to Http 417 errors.
|
|
|
44c1056 |
- Bugfix for older Django installations.
|
|
|
44c1056 |
|
|
|
3bdf1ec |
* Thu Mar 8 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.27-1
|
|
|
3bdf1ec |
- Bugfix release for servers using tg-1.1.x
|
|
|
3bdf1ec |
|
|
|
16d7563 |
* Mon Feb 13 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.26-1
|
|
|
16d7563 |
- Final release.
|
|
|
16d7563 |
|
|
|
16d7563 |
* Thu Dec 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.25.92-1
|
|
|
16d7563 |
- Third beta release
|
|
|
16d7563 |
|
|
|
16d7563 |
* Sun Nov 20 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.25.90-1
|
|
|
16d7563 |
- Beta release
|
|
|
010c947 |
|
|
|
62ea07e |
* Thu Oct 6 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.25.1-1
|
|
|
62ea07e |
- Minor update to bugzilla email aliases
|
|
|
62ea07e |
|
|
|
62ea07e |
* Sat Sep 3 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.25-1
|
|
|
62ea07e |
- Upstream bugfix release that makes many TG2-server helper function more usable
|
|
|
62ea07e |
- Also, split the TG2 functionality into a separate subpackage from the TG1
|
|
|
62ea07e |
functions
|
|
|
62ea07e |
|
|
|
067bc7f |
* Tue Aug 9 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.24-3
|
|
|
067bc7f |
- Get the PYTHONPATH for building docs correct
|
|
|
067bc7f |
|
|
|
e8b4da1 |
* Tue Aug 9 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.24-2
|
|
|
e8b4da1 |
- Rework package to provide the turbogears and django code in subpackages with
|
|
|
e8b4da1 |
full dependencies for each of those.
|
|
|
e8b4da1 |
|
|
|
fbafc9f |
* Wed Jul 20 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.24-1
|
|
|
fbafc9f |
- Upstream 0.3.24 release bugfixing TG2 server utils and clients with
|
|
|
fbafc9f |
session cookie auth.
|
|
|
fbafc9f |
|
|
|
fbafc9f |
* Tue May 03 2011 Luke Macken <lmacken@redhat.com> - 0.3.23-1
|
|
|
fbafc9f |
- Upstream 0.3.23 bugfix release
|
|
|
fbafc9f |
|
|
|
2e53afd |
* Fri Apr 29 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.22-1
|
|
|
2e53afd |
- Upstream 0.3.22 bugfix release
|
|
|
2e53afd |
|
|
|
37fa3ab |
* Mon Apr 11 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.21-1
|
|
|
37fa3ab |
- Upstream 0.3.21 release
|
|
|
37fa3ab |
|
|
|
37fa3ab |
* Mon Feb 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.21-0.a1
|
|
|
37fa3ab |
- 0.3.21 alpha1 release.
|
|
|
37fa3ab |
|
|
|
37b3667 |
* Thu Apr 22 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.20-1
|
|
|
37b3667 |
- 0.3.20 release
|
|
|
37b3667 |
|
|
|
4a84f0d |
* Wed Apr 21 2010 Luke Macken <lmacken@redhat.com> - 0.3.19-1
|
|
|
4a84f0d |
- 0.3.19 release
|
|
|
4a84f0d |
|
|
|
4a84f0d |
* Mon Mar 15 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.18.90-1
|
|
|
4a84f0d |
- 0.3.18.90: beta of a bugfix release
|
|
|
4a84f0d |
|
|
|
e0e4542 |
* Mon Mar 15 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.18-1
|
|
|
e0e4542 |
- 0.3.18 bugfix.
|
|
|
e0e4542 |
|
|
|
41e1329 |
* Thu Mar 11 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.17-1
|
|
|
41e1329 |
- New release 0.3.17.
|