32b3dd5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e3e9e03
e3e9e03
Name:           python-fedora
ebbbe27
Version:        0.3.11
32b3dd5
Release:        1%{?dist}
e3e9e03
Summary:        Python modules for talking to Fedora Infrastructure Services
e3e9e03
e3e9e03
Group:          Development/Languages
e3e9e03
License:        GPLv2
dcfc3be
URL:            https://fedorahosted.org/python-fedora/
88f40b0
Source0:        https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
e3e9e03
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e3e9e03
e3e9e03
BuildArch:      noarch
1a6bc66
BuildRequires:  python-devel
1a6bc66
BuildRequires:  python-setuptools-devel
1a6bc66
BuildRequires:  python-paver
1a6bc66
BuildRequires:  python-sphinx
f128c82
Requires:       python-simplejson
dcfc3be
Requires:       python-bugzilla
dcfc3be
Requires:       python-feedparser
dcfc3be
Requires:       python-sqlalchemy
21ddc2c
Requires:       python-decorator
61d131f
Requires:       python-pycurl
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
dcfc3be
Provides:       python-fedora-infrastructure = %{version}-%{release}
dcfc3be
Obsoletes:      python-fedora-infrastructure < %{version}-%{release}
e3e9e03
e3e9e03
%description
dcfc3be
Python modules that help with building Fedora Services.  This includes a JSON
dcfc3be
based auth provider for authenticating against FAS2 over the network and a
dcfc3be
client that handles communication with the servers.  The client module can
dcfc3be
be used to build programs that communicate with Fedora Infrastructure's
dcfc3be
TurboGears Applications such as Bodhi, PackageDB, MirrorManager, and FAS2.
e3e9e03
e3e9e03
%prep
e3e9e03
%setup -q
e3e9e03
e3e9e03
%build
f66dd48
paver build
8c9d8c5
paver html
e3e9e03
e3e9e03
%install
2511f72
rm -rf %{buildroot}
2511f72
paver install --skip-build --root %{buildroot}
8c9d8c5
mv build-doc/html doc/
e3e9e03
e3e9e03
%clean
2511f72
rm -rf %{buildroot}
e3e9e03
e3e9e03
%files
e3e9e03
%defattr(-,root,root,-)
b6e900d
%doc README COPYING AUTHORS ChangeLog doc
dcfc3be
%{python_sitelib}/*
e3e9e03
e3e9e03
%changelog
ebbbe27
* Mon Mar 9 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.11-1
ebbbe27
- readd the old jsonfasproviders.
ebbbe27
32b3dd5
* Fri Mar 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.10-1
32b3dd5
- CSRF fixes and django authentication provider.
32b3dd5
10b31b5
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-2
10b31b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
10b31b5
a745f08
* Sun Feb 8 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.9-1
a745f08
- New upstream with important bugfixes.
a745f08
7b61791
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.8-2
7b61791
- Rebuild for Python 2.6
7b61791
61d131f
* Thu Nov 20 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.8-1
61d131f
- New upstream with pycurl client backend, more fas methods, and bodhi bugfix.
61d131f
21ddc2c
* Thu Oct 30 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.7-1
21ddc2c
- New upstream has more complete pkgdb integration.
21ddc2c
1a6bc66
* Mon Sep 15 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.6-2
1a6bc66
- Add python-sphinx to the buildrequires.
1a6bc66
8c9d8c5
* Mon Sep 15 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.6-1
8c9d8c5
- New upstream.  No longer deps on koji.
8c9d8c5
f66dd48
* Mon Aug 25 2008 Luke Macken <lmacken@redhat.com> - 0.3.5-1
f66dd48
- New upstream release
f66dd48
786f7f9
* Mon Jul 28 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.4-1
786f7f9
- Small fix to proxyclient.send_request() for sequence types.
786f7f9
13ab156
* Wed Jul 23 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.3-1
13ab156
- A few fixes for the new fas release.
13ab156
fae543b
* Sun Jul 20 2008 Luke Macken <lmacken@redhat.com> - 0.3.2-1
fae543b
- Latest upstream release
fae543b
- Add koji to the Requires
fae543b
dfd7f9c
* Mon Jul 14 2008 Luke Macken <lmacken@redhat.com> - 0.3.1-1
dfd7f9c
- New upstream bugfix release
dfd7f9c
b39cba3
* Wed Jul 02 2008 Luke Macken <lmacken@redhat.com> - 0.3-1
b39cba3
- New upstream release.
b39cba3
36f9958
* Wed Apr 23 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.11.1-1
36f9958
- Fix a crasher bug.
36f9958
b6e900d
* Wed Apr 23 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.11-1
b6e900d
- New upstream release.
b6e900d
394d410
* Wed Apr 23 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.10-1
394d410
- New upstream release.
91a0ba4
e73d762
* Sun Apr 20 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.9-1
e73d762
- New upstream release.
e73d762
f6e9386
* Sat Apr 12 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.8-1
f6e9386
- New upstream release to fix two bugs found by a pylint run.
f6e9386
dcfc3be
* Fri Apr 11 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2.99.7-1
dcfc3be
- Add a method to accounts.fas2.AccountSystem to speed up retrieval of user
dcfc3be
  information.
dcfc3be
dcfc3be
* Mon Apr 7 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2.99.6-1
dcfc3be
- Add gencert method in fedora.accounts.fas2
dcfc3be
- Remove old python-ldap dependency.
dcfc3be
- Toshio Kuratomi added:
dcfc3be
  * Merge infrastructure subpackage into main package.
dcfc3be
  * Remove FAS1 code.
dcfc3be
  * Fix JsonVisitManager race condition.
dcfc3be
  * Start documentation on BaseClient/Fedora Service Architecture.
dcfc3be
dcfc3be
* Tue Mar 18 2008 Ricky Zhou <ricky@fedoraproject.org> - 0.2.99.5-1
dcfc3be
- Add fas2.py (an interface for apps to fetch data from FAS2 using
dcfc3be
  fedora.tg.client)
dcfc3be
dcfc3be
* Tue Mar 11 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.4-1
dcfc3be
- Change from Ricky to enable user.human_name.
dcfc3be
2c08cc9
* Tue Mar 11 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.3-1
2c08cc9
- Fix a bug in BaseClient.
2c08cc9
772aa0a
* Fri Mar 7 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.2-2
772aa0a
- Small updates to description of -infrastructure as we're no longer tied to
772aa0a
  Fedora Infrastructure boxes.
772aa0a
772aa0a
* Mon Mar 3 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.2-1
772aa0a
- Third beta.  Changes to accomodate FAS2 included as FAS2, TG-1.0.4, and
772aa0a
  SA-0.4 are going to all roll into the new platform together.
772aa0a
772aa0a
* Sun Feb 17 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.1-1
772aa0a
- Second beta.
772aa0a
772aa0a
* Wed Feb 13 2008 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.99.0-1
772aa0a
- First beta of new release.  This release is for TG-1.0.4 and SA-0.4.
772aa0a
69225eb
* Thu Dec 13 2007 Luke Macken <lmacken@redhat.com> - 0.2.90.22-1
69225eb
- Convert fasLDAP to get its connection information fedora-db-access.
69225eb
- Add requirements for python-feedparser and python-bugzilla
69225eb
- Add fedora.tg.widgets module containing a few proof-of-concept
69225eb
  Fedora TurboGears widgets
69225eb
- Add a new method to fas: get_users() that returns common public information
69225eb
  about all users.
69225eb
c40316b
* Thu Nov 15 2007 Toshio Kuratomi <tkuratom@redhat.com> - 0.2.90.21-1
c40316b
- Bugfix release for expired sessions.
c40316b
4a8d5de
* Wed Nov 14 2007 Luke Macken <lmacken@redhat.com> - 0.2.90.20-3
4a8d5de
- Handle our SQLAlchemy requirement differently for Fedora 8+, until
4a8d5de
  TurboGears can use SQLAlchemy >= 0.4
4a8d5de
f128c82
* Wed Nov  7 2007 Luke Macken <lmacken@redhat.com> - 0.2.90.20-2
f128c82
- Require SQLAlchemy 0.3 for python-fedora-infrastructure
f128c82
f128c82
* Wed Nov  7 2007 Luke Macken <lmacken@redhat.com> - 0.2.90.20-1
f128c82
- Latest upstream release
f128c82
4e3b594
* Tue Sep 25 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.19-1
4e3b594
- New upstream release with a FAS2 unicode fix.
4e3b594
e3e9e03
* Mon Sep 24 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.18-3
e3e9e03
- Fix the Source URL.  Should be fedorapeople rather than fedoraproject.
e3e9e03
e3e9e03
* Fri Sep 21 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.18-2
e3e9e03
- BR: python-setuptools-devel as this has been split in the new versions.
e3e9e03
e3e9e03
* Tue Sep 18 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.18-1
e3e9e03
- Update to version wih handling of control-center-maint bugzilla address.
e3e9e03
e3e9e03
* Tue Sep 18 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.17-2
e3e9e03
- Minor touchups to description and URL.
e3e9e03
e3e9e03
* Mon Sep 17 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.17-1
e3e9e03
- Update to 0.2.90.17. 
e3e9e03
- Build separate packages for pieces useful on clients and only on the server.
e3e9e03
e3e9e03
* Mon Sep 10 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.16-1
e3e9e03
- Bugfix to fasLDAP module.
e3e9e03
e3e9e03
* Fri Sep 7 2007 Toshio Kuratomi <a.badger@gmail.com> - 0.2.90.15-1
e3e9e03
- Make the fasLDAP module more OO.
e3e9e03
- Bugfixes.
e3e9e03
- Update the install line.
e3e9e03
e3e9e03
* Thu Aug 2 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.14-1
e3e9e03
- Fix safas2provider to only create the visit_identity class.
e3e9e03
- Add COPYING and AUTHORS files.
e3e9e03
e3e9e03
* Sat Jul 21 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.13-1
e3e9e03
- New class fedora.tg.client.BaseClient that can be used as the basis of a TG
e3e9e03
  standalone application.  With a little support on the server side (mostly
e3e9e03
  allowing tg_format=json) this class will provide you with the basis to read
e3e9e03
  and write data to the server.
e3e9e03
- Fix safasprovider to only create the visit_identity class since the other
e3e9e03
  information is stored directly in FAS.
e3e9e03
e3e9e03
* Mon Jul 10 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.12-1
e3e9e03
- Fix some issues with Unicode.
e3e9e03
- Catch a traceback when the database is down.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.11-1
e3e9e03
- Remove a decorator so running on python-2.3 works.
e3e9e03
- Have FASUser and FASGroup emit json on demand so that they can be returned
e3e9e03
  when tg_format=json.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.10-1
e3e9e03
- Update fas2 integration with changes from mmcgrath.
e3e9e03
- berrange has changed his email address in the account system, no longer need
e3e9e03
  to special case his bugzilla address.
e3e9e03
- Fix a bug in the handling of db errors in accounts/fas.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.9-1
e3e9e03
- Update fas2 integration with changes from mmcgrath.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.8-1
e3e9e03
- Catch some exceptions when the database connection dies.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.7-1
e3e9e03
- Fix another bug with the new bugzilla email code.  Need to grab the user
e3e9e03
  email from the database even if unathenticated so bugzilla_email has
e3e9e03
  something to pull from.
e3e9e03
e3e9e03
* Sun Apr 14 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.2.90.6-1
e3e9e03
- Fix bug with the new bugzilla email code.