d20bf47
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
d20bf47
%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
be0bc1e
be0bc1e
Name:           bodhi
fded571
Version:        0.7.5
5ea1ec1
Release:        4%{?dist}
be0bc1e
Summary:        A modular framework that facilitates publishing software updates
be0bc1e
Group:          Applications/Internet
be0bc1e
License:        GPLv2+
5a6625d
URL:            https://fedorahosted.org/bodhi
be0bc1e
Source0:        bodhi-%{version}.tar.bz2
d20bf47
Patch0: bodhi-temp-client-only.patch
5a6625d
be0bc1e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
be0bc1e
BuildArch:      noarch
be0bc1e
cc6f621
BuildRequires: python-setuptools 
5a6625d
BuildRequires: python-setuptools-devel
5a6625d
BuildRequires: python-devel
cc6f621
d20bf47
# Disable the following until they are built for python-2.7
d20bf47
#BuildRequires: TurboGears
d20bf47
#BuildRequires: python-TurboMail
d20bf47
BuildRequires: python-bugzilla
d20bf47
BuildRequires: python-fedora
d20bf47
BuildRequires: yum koji
be0bc1e
be0bc1e
%description
5a6625d
Bodhi is a web application that facilitates the process of publishing
be0bc1e
updates for a software distribution.
be0bc1e
92371b4
A modular piece of the Fedora Infrastructure stack
92371b4
* Utilizes the Koji Buildsystem for tracking RPMs
92371b4
* Creates the update repositories using Mash, which composes a repository based
92371b4
  on tagged builds in Koji. 
92371b4
5a6625d
be0bc1e
%package client
be0bc1e
Summary: Bodhi Client
be0bc1e
Group: Applications/Internet
6d37531
Requires: python-simplejson koji yum
6d37531
Requires: python-fedora >= 0.3.5
be0bc1e
5a6625d
%description client
be0bc1e
Client tools for interacting with bodhi
be0bc1e
be0bc1e
be0bc1e
%package server
be0bc1e
Summary: A modular framework that facilitates publishing software updates
be0bc1e
Group: Applications/Internet
5a6625d
Requires: TurboGears
5a6625d
Requires: python-TurboMail
5a6625d
Requires: intltool
5a6625d
Requires: mash
5a6625d
Requires: cvs
5a6625d
Requires: koji
5a6625d
Requires: python-fedora
6dfcb46
Requires: python-bugzilla
5a6625d
Requires: python-imaging
5a6625d
Requires: python-crypto
5a6625d
Requires: python-turboflot
5a6625d
Requires: python-tgcaptcha
5a6625d
Requires: python-decorator
5a6625d
Requires: mod_wsgi
cebf96a
Requires: httpd
fded571
Requires: python-markdown
5a6625d
be0bc1e
be0bc1e
%description server
be0bc1e
Bodhi is a modular framework that facilitates the process of publishing
be0bc1e
updates for a software distribution.
be0bc1e
be0bc1e
%prep
be0bc1e
%setup -q
d20bf47
%patch0 -p1 -b .temporary
be0bc1e
rm -rf bodhi/tests bodhi/tools/test-bodhi.py
be0bc1e
be0bc1e
%build
5a6625d
%{__python} setup.py build --install-data=%{_datadir}
be0bc1e
be0bc1e
%install
5a6625d
%{__rm} -rf %{buildroot}
d20bf47
%{__python} setup.py install --skip-build \
be0bc1e
    --install-data=%{_datadir} --root %{buildroot}
5a6625d
5a6625d
%{__mkdir_p} %{buildroot}/var/lib/bodhi
5a6625d
%{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf.d
5a6625d
%{__mkdir_p} %{buildroot}%{_sysconfdir}/bodhi
5a6625d
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
5a6625d
%{__mkdir_p} -m 0755 %{buildroot}/%{_localstatedir}/log/bodhi
5a6625d
5a6625d
%{__install} -m 640 apache/%{name}.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
5a6625d
%{__install} -m 640 %{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/
5a6625d
%{__install} -m 640 %{name}/config/*mash* %{buildroot}%{_sysconfdir}/%{name}/
5a6625d
%{__install} apache/%{name}.wsgi %{buildroot}%{_datadir}/%{name}/%{name}.wsgi
be0bc1e
275f75d
%{__install} %{name}/tools/client.py %{buildroot}%{_bindir}/%{name}
275f75d
be0bc1e
be0bc1e
%clean
5a6625d
%{__rm} -rf %{buildroot}
be0bc1e
be0bc1e
be0bc1e
%files server
be0bc1e
%defattr(-,root,root,-)
be0bc1e
%doc README COPYING
5a6625d
%{python_sitelib}/%{name}/
5a6625d
%{_bindir}/start-%{name}
5a6625d
%{_bindir}/%{name}-*
5a6625d
%{_sysconfdir}/httpd/conf.d/bodhi.conf
0ab59ae
%dir %{_sysconfdir}/bodhi/
5a6625d
%attr(-,apache,root) %{_datadir}/%{name}
5a6625d
%attr(-,apache,root) %config(noreplace) %{_sysconfdir}/bodhi/*
5a6625d
%attr(-,apache,root) %{_localstatedir}/log/bodhi
3f997b2
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/
5a6625d
be0bc1e
be0bc1e
%files client
e6bfa01
%defattr(-,root,root,-)
be0bc1e
%{_bindir}/bodhi
c82c7c9
%{_mandir}/man1/bodhi.1.gz
be0bc1e
be0bc1e
be0bc1e
%changelog
5ea1ec1
* Sat Jul 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.5-4
5ea1ec1
- A little strange, the tarball changed on us....
5ea1ec1
d20bf47
* Tue Jul 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.5-3
d20bf47
- Disable Requirements that are necessary for operation of hte server.  This is
d20bf47
  a temporary change to get the package building on python-2.7.  Need to revert
d20bf47
  this once the TG stack is rebuilt
d20bf47
3d27f71
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.5-2
3d27f71
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3d27f71
fded571
* Tue Jun 29 2010 Luke Macken <lmacken@redhat.com> - 0.7.5-1
fded571
- 0.7.5 release
fded571
1c11efa
* Thu Mar 04 2010 Luke Macken <lmacken@redhat.com> - 0.7.4-1
1c11efa
- 0.7.4
1c11efa
0e09b55
* Thu Mar 04 2010 Luke Macken <lmacken@redhat.com> - 0.7.3-1
0e09b55
- 0.7.3
0e09b55
907b550
* Wed Mar 03 2010 Luke Macken <lmacken@redhat.com> - 0.7.2-1
907b550
- 0.7.2 bugfix release
907b550
907b550
* Tue Feb 16 2010 Luke Macken <lmacken@redhat.com> - 0.7.1-1
907b550
- Fix a regression in our metrics controller, and unvail a new
907b550
  metrics JSON API
907b550
cf5c02e
* Tue Feb 16 2010 Luke Macken <lmacken@redhat.com> - 0.7.0-2
cf5c02e
- Add the F13 updates-testing mash configuration
cf5c02e
c791d9b
* Mon Jan 18 2010 Luke Macken <lmacken@redhat.com> - 0.7.0-1
c791d9b
- 0.7.0 release, prepping for the F13 release
c791d9b
- Critical Path & No Frozen Rawhide proposals implemented
c791d9b
- Many other bugfixes, enhancements, and optimizations
c791d9b
c791d9b
* Fri Nov 06 2009 Luke Macken <lmacken@redhat.com> - 0.6.12-1
c791d9b
- 0.6.12, for F12
c791d9b
c791d9b
* Sat Sep 19 2009 Luke Macken <lmacken@redhat.com> - 0.6.11-1
c791d9b
- 0.6.11
c791d9b
c791d9b
* Fri Sep 18 2009 Luke Macken <lmacken@redhat.com> - 0.6.10-1
c791d9b
- 0.6.10
c791d9b
c791d9b
* Thu Sep 17 2009 Luke Macken <lmacken@redhat.com> - 0.6.9-2
c791d9b
- More CSRF tweaks
c791d9b
c791d9b
* Thu Sep 17 2009 Luke Macken <lmacken@redhat.com> - 0.6.9-1
c791d9b
- 0.6.9
c791d9b
c791d9b
* Mon Sep 14 2009 Luke Macken <lmacken@redhat.com> - 0.6.8-1
c791d9b
- 0.6.8
c791d9b
c791d9b
* Wed Sep 09 2009 Luke Macken <lmacken@redhat.com> - 0.6.7-1
c791d9b
- 0.6.7
c791d9b
c791d9b
* Wed Sep 09 2009 Luke Macken <lmacken@redhat.com> - 0.6.6-1
c791d9b
- 0.6.6
c791d9b
c791d9b
* Wed Sep 09 2009 Luke Macken <lmacken@redhat.com> - 0.6.5-1
c791d9b
- 0.6.5
c791d9b
c791d9b
* Fri Aug 14 2009 Luke Macken <lmacken@redhat.com> - 0.6.4-1
c791d9b
- 0.6.4
c791d9b
c791d9b
* Thu Aug 13 2009 Luke Macken <lmacken@redhat.com> - 0.6.3-1
c791d9b
- 0.6.3
c791d9b
c791d9b
* Fri Jul 10 2009 Luke Macken <lmacken@redhat.com> - 0.6.2-1
c791d9b
- 0.6.2
839a3ee
7cd6ea8
* Thu Jul 09 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-1
7cd6ea8
- 0.6.1
7cd6ea8
7cd6ea8
* Thu Jul 09 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-1
7cd6ea8
- 0.6.0 final
7cd6ea8
7cd6ea8
* Mon Jul 06 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.7.beta
7cd6ea8
- beta7
7cd6ea8
7cd6ea8
* Mon Jul 06 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.6.beta
7cd6ea8
- beta6
7cd6ea8
7cd6ea8
* Mon Jul 06 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.5.beta
7cd6ea8
- beta5, with EPEL mash configs
7cd6ea8
7cd6ea8
* Fri Jul 03 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.4.beta
7cd6ea8
- beta4
7cd6ea8
7cd6ea8
* Fri Jul 03 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.3.beta
7cd6ea8
- beta3
7cd6ea8
7cd6ea8
* Fri Jul 03 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.2.beta
7cd6ea8
- beta2
7cd6ea8
- Make our Bugzilla cookie file configurable
7cd6ea8
7cd6ea8
* Thu Jul 02 2009 Luke Macken <lmacken@redhat.com> - 0.6.0-0.1.beta
7cd6ea8
- 0.6.0 beta
7cd6ea8
f065c56
* Mon Jun 22 2009 Luke Macken <lmacken@redhat.com> - 0.5.27-01
f065c56
- Latest upstream release to bring in fixed mash config files.
f065c56
f065c56
* Fri Jun 12 2009 Luke Macken <lmacken@redhat.com> - 0.5.26-1
f065c56
- Latest upstream release with a variety of fixes and pkgdb-0.4 support.
f065c56
f065c56
* Tue May 12 2009 Luke Macken <lmacken@redhat.com> - 0.5.25-1
f065c56
- Latest upstream bugfix release to work around some TG 1.0.8
f065c56
  brokenness, and make our masher a bit more robust.
f065c56
f065c56
* Tue May 12 2009 Luke Macken <lmacken@redhat.com> - 0.5.24-1
f065c56
- 0.5.24 bugfix release
f065c56
f065c56
* Thu May 07 2009 Luke Macken <lmacken@redhat.com> - 0.5.23-1
f065c56
- Add mash configs for F11, with deltarpm support.
f065c56
f065c56
* Thu Apr 30 2009 Luke Macken <lmacken@redhat.com> - 0.5.22-1
f065c56
- Remove pagination patch, as Fedora Infrastructure is now TG 1.0.8
f065c56
f065c56
* Thu Apr 30 2009 Luke Macken <lmacken@redhat.com> - 0.5.21-1
f065c56
- Update to TG 1.0.8 API (fixes a @paginate issue)
f065c56
f065c56
* Mon Apr 06 2009 Luke Macken <lmacken@redhat.com> - 0.5.20-1
f065c56
- Fix a bug when sending mash requests through the ProxyClient
f065c56
- More Python2.4 workarounds
f065c56
f065c56
* Mon Apr 06 2009 Luke Macken <lmacken@redhat.com> - 0.5.19-3
f065c56
- Update to work with Python2.4
f065c56
f065c56
* Mon Apr 06 2009 Luke Macken <lmacken@redhat.com> - 0.5.19-2
f065c56
- Revision bump to bring it up to speed with the fedora infra package
f065c56
f065c56
* Sat Mar 21 2009 Luke Macken <lmacken@redhat.com> - 0.5.19-1
d6e53b3
- 0.5.19
f065c56
- Add a patch to get pagination working in TG 1.0.4.4
d6e53b3
cebf96a
* Sat Mar 14 2009 Luke Macken <lmacken@redhat.com> - 0.5.17-4
cebf96a
- Require httpd
cebf96a
ade9270
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.17-3
ade9270
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ade9270
f065c56
* Tue Feb 10 2009 Luke Macken <lmacken@redhat.com> - 0.5.18-1
f065c56
- Bugfix release, and to stop using deprecated python-fedora APIs.
f065c56
0ab59ae
* Mon Feb 2 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5.17-2
0ab59ae
- Own the %%{_sysconfdir}/bodhi directory.
0ab59ae
4ed5a6c
* Thu Jan 22 2009 Luke Macken <lmacken@redhat.com> - 0.5.17-1
4ed5a6c
- Latest upstream bugfix release.
4ed5a6c
89055bb
* Mon Jan 05 2009 Luke Macken <lmacken@redhat.com> - 0.5.16-1
89055bb
- Latest upstream bugfix release.
89055bb
89055bb
* Mon Dec 22 2008 Luke Macken <lmacken@redhat.com> - 0.5.15-1
89055bb
- Latest release, with more masher improvements.
89055bb
8f513b2
* Fri Dec 19 2008 Luke Macken <lmacken@redhat.com> - 0.5.14-1
8f513b2
- Latest upstream release, containing some masher improvements.
8f513b2
e6bfa01
* Wed Dec 10 2008 Luke Macken <lmacken@redhat.com> - 0.5.13-1
e6bfa01
- Latest upstream release to fix various metrics/rss issues
e6bfa01
e6bfa01
* Mon Nov 24 2008 Luke Macken <lmacken@redhat.com> - 0.5.12-1
e6bfa01
- Latest upstream release, to fix the 10k bug
e6bfa01
e6bfa01
* Fri Nov 21 2008 Luke Macken <lmacken@redhat.com> - 0.5.11-1
e6bfa01
- Various F10 release tweaks
e6bfa01
e6bfa01
* Fri Oct 24 2008 Luke Macken <lmacken@redhat.com> - 0.5.10-3
e6bfa01
- Latest upstream release
e6bfa01
e6bfa01
* Wed Oct 15 2008 Luke Macken <lmacken@redhat.com> - 0.5.9-2
e6bfa01
- Fix a trivial module import issue
e6bfa01
e6bfa01
* Tue Oct 14 2008 Luke Macken <lmacken@redhat.com> - 0.5.9-1
e6bfa01
- Fix a variety of bugs, including a race-condition when editing.
e6bfa01
e6bfa01
* Thu Oct 13 2008 Steve 'Ashcrow' Milner <smilner@redhat.com> - 0.5.8-2
e6bfa01
- Added default attributes to client files.
e6bfa01
e6bfa01
* Sun Oct 12 2008 Luke Macken <lmacken@redhat.com> - 0.5.8-1
e6bfa01
- Minor release to fix some new update creation bugs
e6bfa01
e6bfa01
* Thu Oct 09 2008 Luke Macken <lmacken@redhat.com> - 0.5.7-1
e6bfa01
- Latest release, containing some API improvements
e6bfa01
e6bfa01
* Tue Oct 07 2008 Luke Macken <lmacken@redhat.com> - 0.5.6-1
e6bfa01
- Latest upstream release.
6ac5d0b
6d37531
* Mon Oct 06 2008 Luke Macken <lmacken@redhat.com> - 0.5.5-1
6d37531
- Latest upstream release.
6d37531
6d37531
* Sat Oct 04 2008 Luke Macken <lmacken@redhat.com> - 0.5.4-2
6d37531
- Make our masher extension point less obtrusive.
6d37531
6d37531
* Tue Sep 16 2008 Luke Macken <lmacken@redhat.com> - 0.5.4-1
6d37531
- Latest upstream release, containing various bugfixes
6d37531
- Make our python-fedora requirement explicit (#461518)
6d37531
cc6f621
* Wed Sep 10 2008 Luke Macken <lmacken@redhat.com> - 0.5.3-1
cc6f621
- Latest upstream release
cc6f621
cc6f621
* Wed Sep 03 2008 Luke Macken <lmacken@redhat.com> - 0.5.2-2
cc6f621
- Add the masher deps to BuildRequires, since it now resides
cc6f621
  on the turbogears.extensions entry point and will be
cc6f621
  imported by pkg_resources at build time.
cc6f621
c8556ec
* Wed Sep 03 2008 Luke Macken <lmacken@redhat.com> - 0.5.2-1
c8556ec
- Latest upstream bugfix release
c8556ec
275f75d
* Fri Aug 29 2008 Luke Macken <lmacken@redhat.com> - 0.5.1-3
275f75d
- Fix some setuptools issues with our client subpackage
275f75d
3f997b2
* Mon Aug 25 2008 Luke Macken <lmacken@redhat.com> - 0.5.1-2
3f997b2
- Include the egg-info in the client subpackage.
3f997b2
ef95df2
* Fri Aug 22 2008 Luke Macken <lmacken@redhat.com> - 0.5.1-1
ef95df2
- Latest upstream release
ef95df2
ef95df2
* Sun Jul 06 2008 Luke Macken <lmacken@redhat.com> - 0.5.0-1
5a6625d
- Latest upstream release
5a6625d
5a6625d
* Thu Jun 12 2008 Todd Zullinger <tmz@pobox.com> - 0.4.10-5
5a6625d
- update URL to point to fedorahosted.org
5a6625d
5a6625d
* Fri Apr 04 2008 Luke Macken <lmacken@redhat.com> - 0.4.10-4
5a6625d
- Add python-tgcaptcha to our server requirements
897f5be
6dfcb46
* Tue Feb 26 2008 Luke Macken <lmacken@redhat.com> - 0.4.10-3
6dfcb46
- Add python-bugzilla to our server requirements
6dfcb46
4eed563
* Fri Jan 25 2008 Luke Macken <lmacken@redhat.com> - 0.4.10-2
4eed563
- Add python-elixir to BuildRequires to make the new TG happy
4eed563
f5901e8
* Fri Jan 25 2008 Luke Macken <lmacken@redhat.com> - 0.4.10-1
f5901e8
- 0.4.10
f5901e8
- Remove yum-utils requirement from bodhi-server
f5901e8
83fe465
* Sun Jan  6 2008 Luke Macken <lmacken@redhat.com> - 0.4.9-1
83fe465
- 0.4.9
83fe465
c82c7c9
* Sat Dec  7 2007 Luke Macken <lmacken@redhat.com> - 0.4.8-1
c82c7c9
- 0.4.8
c82c7c9
c82c7c9
* Wed Nov 28 2007 Luke Macken <lmacken@redhat.com> - 0.4.7-1
c82c7c9
- 0.4.7
c82c7c9
30a12e0
* Tue Nov 20 2007 Luke Macken <lmacken@redhat.com> - 0.4.6-1
30a12e0
- 0.4.6
30a12e0
59f40c9
* Sun Nov 18 2007 Luke Macken <lmacken@redhat.com> - 0.4.5-2
59f40c9
- Add python-genshi to BuildRequires
59f40c9
5ba4754
* Sat Nov 17 2007 Luke Macken <lmacken@redhat.com> - 0.4.5-1
5ba4754
- 0.4.5
5ba4754
4497be1
* Wed Nov 14 2007 Luke Macken <lmacken@redhat.com> - 0.4.4-1
4497be1
- 0.4.4
4497be1
99fa271
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.3-1
99fa271
- 0.4.3
99fa271
54891c8
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.2-1
54891c8
- 0.4.2
54891c8
005576e
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.1-1
005576e
- 0.4.1
005576e
92371b4
* Sun Nov 11 2007 Luke Macken <lmacken@redhat.com> - 0.4.0-1
92371b4
- Lots of bodhi-client features
92371b4
1edbde1
* Wed Nov  7 2007 Luke Macken <lmacken@redhat.com> - 0.3.3-1
1edbde1
- 0.3.3
1edbde1
be0bc1e
* Thu Oct 18 2007 Luke Macken <lmacken@redhat.com> - 0.3.2-2
be0bc1e
- Add TurboGears to BuildRequires
be0bc1e
- Make some scripts executable to silence rpmlint
be0bc1e
be0bc1e
* Sat Oct 16 2007 Luke Macken <lmacken@redhat.com> - 0.3.2-1
be0bc1e
- 0.3.2
be0bc1e
- Add COPYING file
be0bc1e
- s/python-json/python-simplejson/
be0bc1e
be0bc1e
* Sat Oct  6 2007 Luke Macken <lmacken@redhat.com> - 0.3.1-1
be0bc1e
- 0.3.1
be0bc1e
be0bc1e
* Wed Oct  3 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-5
be0bc1e
- Add python-fedora to bodhi-client Requires
be0bc1e
be0bc1e
* Mon Sep 17 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-4
be0bc1e
- Add python-json to bodhi-client Requires
be0bc1e
be0bc1e
* Sun Sep 16 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-3
be0bc1e
- Add cvs to bodhi-server Requires
be0bc1e
be0bc1e
* Thu Sep 15 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-2
be0bc1e
- Handle python-setuptools-devel changes in Fedora 8
be0bc1e
- Update license to GPLv2+
be0bc1e
be0bc1e
* Thu Sep 13 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-1
be0bc1e
- Split spec file into client/server subpackages