e3ea58b
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e3ea58b
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
e3ea58b
e3ea58b
Name:           bodhi
6a79abd
Version:        0.4.4
fda2a6e
Release:        1%{?dist}
e3ea58b
Summary:        A modular framework that facilitates publishing software updates
e3ea58b
Group:          Applications/Internet
e3ea58b
License:        GPLv2+
e3ea58b
URL:            https://hosted.fedoraproject.org/projects/bodhi
e3ea58b
Source0:        bodhi-%{version}.tar.bz2
e3ea58b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e3ea58b
BuildArch:      noarch
e3ea58b
e3ea58b
BuildRequires: python-setuptools-devel TurboGears
e3ea58b
e3ea58b
%description
fda2a6e
Bodhi is a modular framework that facilitates the process of publishing
e3ea58b
updates for a software distribution.
e3ea58b
fda2a6e
A modular piece of the Fedora Infrastructure stack
fda2a6e
* Utilizes the Koji Buildsystem for tracking RPMs
fda2a6e
* Creates the update repositories using Mash, which composes a repository based
fda2a6e
  on tagged builds in Koji. 
fda2a6e
e3ea58b
%package client
e3ea58b
Summary: Bodhi Client
e3ea58b
Group: Applications/Internet
fda2a6e
Requires: python-simplejson python-fedora koji yum
e3ea58b
e3ea58b
%description client 
e3ea58b
Client tools for interacting with bodhi
e3ea58b
e3ea58b
e3ea58b
%package server
e3ea58b
Summary: A modular framework that facilitates publishing software updates
e3ea58b
Group: Applications/Internet
e3ea58b
Requires: TurboGears createrepo python-TurboMail intltool mash cvs python-fedora
e3ea58b
# We need the --repofrompath option from yum-utils
e3ea58b
Requires: yum-utils >= 1.1.7
e3ea58b
e3ea58b
%description server
e3ea58b
Bodhi is a modular framework that facilitates the process of publishing
e3ea58b
updates for a software distribution.
e3ea58b
e3ea58b
%prep
e3ea58b
%setup -q
e3ea58b
rm -rf bodhi/tests bodhi/tools/test-bodhi.py
e3ea58b
e3ea58b
%build
e3ea58b
%{__python} setup.py build --install-conf=%{_sysconfdir} \
e3ea58b
        --install-data=%{_datadir}
e3ea58b
e3ea58b
%install
e3ea58b
rm -rf $RPM_BUILD_ROOT
e3ea58b
%{__python} setup.py install --skip-build --install-conf=%{_sysconfdir} \
e3ea58b
    --install-data=%{_datadir} --root %{buildroot}
fda2a6e
%{__install} -D bodhi/tools/bodhi_client.py $RPM_BUILD_ROOT/usr/bin/bodhi
fda2a6e
chmod +x $RPM_BUILD_ROOT/%{_datadir}/%{name}/bodhi/tools/{bodhi_client,init,dev_init,pickledb}.py
e3ea58b
e3ea58b
e3ea58b
%clean
e3ea58b
rm -rf $RPM_BUILD_ROOT
e3ea58b
e3ea58b
e3ea58b
%files server
e3ea58b
%defattr(-,root,root,-)
e3ea58b
%doc README COPYING
e3ea58b
%{_datadir}/%{name}
e3ea58b
%{_bindir}/start-bodhi
e3ea58b
%config(noreplace) %{_sysconfdir}/%{name}.cfg
e3ea58b
e3ea58b
%files client
e3ea58b
%doc COPYING README
e3ea58b
%{_bindir}/bodhi
e3ea58b
e3ea58b
e3ea58b
%changelog
6a79abd
* Wed Nov 14 2007 Luke Macken <lmacken@redhat.com> - 0.4.4-1
6a79abd
- 0.4.4
6a79abd
a39ac49
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.3-1
a39ac49
- 0.4.3
a39ac49
8fef150
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.2-1
8fef150
- 0.4.2
8fef150
b42ac48
* Mon Nov 12 2007 Luke Macken <lmacken@redhat.com> - 0.4.1-1
b42ac48
- 0.4.1
b42ac48
fda2a6e
* Sun Nov 11 2007 Luke Macken <lmacken@redhat.com> - 0.4.0-1
fda2a6e
- Lots of bodhi-client features
fda2a6e
fda2a6e
* Wed Nov  7 2007 Luke Macken <lmacken@redhat.com> - 0.3.3-1
fda2a6e
- 0.3.3
fda2a6e
e3ea58b
* Thu Oct 18 2007 Luke Macken <lmacken@redhat.com> - 0.3.2-2
e3ea58b
- Add TurboGears to BuildRequires
e3ea58b
- Make some scripts executable to silence rpmlint
e3ea58b
e3ea58b
* Sat Oct 16 2007 Luke Macken <lmacken@redhat.com> - 0.3.2-1
e3ea58b
- 0.3.2
e3ea58b
- Add COPYING file
e3ea58b
- s/python-json/python-simplejson/
e3ea58b
e3ea58b
* Sat Oct  6 2007 Luke Macken <lmacken@redhat.com> - 0.3.1-1
e3ea58b
- 0.3.1
e3ea58b
e3ea58b
* Wed Oct  3 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-5
e3ea58b
- Add python-fedora to bodhi-client Requires
e3ea58b
e3ea58b
* Mon Sep 17 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-4
e3ea58b
- Add python-json to bodhi-client Requires
e3ea58b
e3ea58b
* Sun Sep 16 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-3
e3ea58b
- Add cvs to bodhi-server Requires
e3ea58b
e3ea58b
* Thu Sep 15 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-2
e3ea58b
- Handle python-setuptools-devel changes in Fedora 8
e3ea58b
- Update license to GPLv2+
e3ea58b
e3ea58b
* Thu Sep 13 2007 Luke Macken <lmacken@redhat.com> - 0.2.0-1
e3ea58b
- Split spec file into client/server subpackages