lbalhar / rpms / bodhi

Forked from rpms/bodhi 6 years ago
Clone
be0bc1e
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
be0bc1e
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
be0bc1e
be0bc1e
Name:           bodhi
cb59d44
Version:        0.5.1
631eabb
Release:        2%{?dist}
be0bc1e
Summary:        A modular framework that facilitates publishing software updates
be0bc1e
Group:          Applications/Internet
be0bc1e
License:        GPLv2+
b2dd04d
URL:            https://fedorahosted.org/bodhi
be0bc1e
Source0:        bodhi-%{version}.tar.bz2
b2dd04d
be0bc1e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
be0bc1e
BuildArch:      noarch
be0bc1e
b2dd04d
BuildRequires: python-setuptools-devel
b2dd04d
BuildRequires: python-devel
b2dd04d
BuildRequires: TurboGears
be0bc1e
be0bc1e
%description
b2dd04d
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
b2dd04d
be0bc1e
%package client
be0bc1e
Summary: Bodhi Client
be0bc1e
Group: Applications/Internet
92371b4
Requires: python-simplejson python-fedora koji yum
be0bc1e
b2dd04d
%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
b2dd04d
Requires: TurboGears
b2dd04d
Requires: python-TurboMail
b2dd04d
Requires: intltool
b2dd04d
Requires: mash
b2dd04d
Requires: cvs
b2dd04d
Requires: koji
b2dd04d
Requires: python-fedora
6dfcb46
Requires: python-bugzilla
b2dd04d
Requires: python-imaging
b2dd04d
Requires: python-crypto
b2dd04d
Requires: python-turboflot
b2dd04d
Requires: python-tgcaptcha
b2dd04d
Requires: python-decorator
b2dd04d
Requires: mod_wsgi
b2dd04d
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
be0bc1e
rm -rf bodhi/tests bodhi/tools/test-bodhi.py
be0bc1e
be0bc1e
%build
b2dd04d
%{__python} setup.py build --install-data=%{_datadir}
be0bc1e
be0bc1e
%install
b2dd04d
%{__rm} -rf %{buildroot}
b2dd04d
%{__python} setup.py install -O1 --skip-build \
be0bc1e
    --install-data=%{_datadir} --root %{buildroot}
b2dd04d
b2dd04d
%{__mkdir_p} %{buildroot}/var/lib/bodhi
b2dd04d
%{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf.d
b2dd04d
%{__mkdir_p} %{buildroot}%{_sysconfdir}/bodhi
b2dd04d
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
b2dd04d
%{__mkdir_p} -m 0755 %{buildroot}/%{_localstatedir}/log/bodhi
b2dd04d
b2dd04d
%{__install} -m 640 apache/%{name}.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
b2dd04d
%{__install} -m 640 %{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/
b2dd04d
%{__install} -m 640 %{name}/config/*mash* %{buildroot}%{_sysconfdir}/%{name}/
b2dd04d
%{__install} apache/%{name}.wsgi %{buildroot}%{_datadir}/%{name}/%{name}.wsgi
be0bc1e
be0bc1e
be0bc1e
%clean
b2dd04d
%{__rm} -rf %{buildroot}
be0bc1e
be0bc1e
be0bc1e
%files server
be0bc1e
%defattr(-,root,root,-)
be0bc1e
%doc README COPYING
b2dd04d
%{python_sitelib}/%{name}/
b2dd04d
%{_bindir}/start-%{name}
b2dd04d
%{_bindir}/%{name}-*
b2dd04d
%{_sysconfdir}/httpd/conf.d/bodhi.conf
b2dd04d
%attr(-,apache,root) %{_datadir}/%{name}
b2dd04d
%attr(-,apache,root) %config(noreplace) %{_sysconfdir}/bodhi/*
b2dd04d
%attr(-,apache,root) %{_localstatedir}/log/bodhi
631eabb
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/
631eabb
%{python_sitelib}/%{name}/__init__.py*
b2dd04d
be0bc1e
be0bc1e
%files client
be0bc1e
%doc COPYING README
be0bc1e
%{_bindir}/bodhi
c82c7c9
%{_mandir}/man1/bodhi.1.gz
631eabb
%{python_sitelib}/%{name}/tools
631eabb
%{python_sitelib}/%{name}/__init__.py*
631eabb
%{python_sitelib}/%{name}/release.py*
631eabb
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/
be0bc1e
be0bc1e
be0bc1e
%changelog
631eabb
* Mon Aug 25 2008 Luke Macken <lmacken@redhat.com> - 0.5.1-2
631eabb
- Include the egg-info in the client subpackage.
631eabb
cb59d44
* Fri Aug 22 2008 Luke Macken <lmacken@redhat.com> - 0.5.1-1
cb59d44
- Latest upstream release
cb59d44
cb59d44
* Sun Jul 06 2008 Luke Macken <lmacken@redhat.com> - 0.5.0-1
b2dd04d
- Latest upstream release
b2dd04d
b2dd04d
* Thu Jun 12 2008 Todd Zullinger <tmz@pobox.com> - 0.4.10-5
b2dd04d
- update URL to point to fedorahosted.org
b2dd04d
b2dd04d
* Fri Apr 04 2008 Luke Macken <lmacken@redhat.com> - 0.4.10-4
b2dd04d
- Add python-tgcaptcha to our server requirements
b236bc2
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