54746db
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
mjk 5b6c2b6
fcf0d8d
%global do_tests 1
fcf0d8d
mjk 5b6c2b6
Name:           buildbot
4e9dbda
Version:        0.7.11p3
8f9ab0c
Release:        1%{?dist}
df4ee33
Summary:        Build/test automation system
mjk 5b6c2b6
mjk 5b6c2b6
Group:          Development/Tools
df4ee33
License:        GPLv2
8f02da6
URL:            http://buildbot.net
fcf0d8d
Source0:        http://pypi.python.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz
mjk 5b6c2b6
mjk 5b6c2b6
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
mjk 5b6c2b6
mjk 5b6c2b6
BuildRequires:  python-devel
mjk 5b6c2b6
54746db
# Needed for tests
fcf0d8d
%if %do_tests
54746db
BuildRequires:  python-twisted-core
54746db
BuildRequires:  python-twisted-web
54746db
BuildRequires:  python-twisted-mail
54746db
BuildRequires:  python-twisted-words
fcf0d8d
BuildRequires:  bazaar
54746db
BuildRequires:  bzr
54746db
BuildRequires:  cvs
fcf0d8d
%ifarch %{ix86} x86_64 ppc alpha
fcf0d8d
# darcs ExclusiveArchs
54746db
BuildRequires:  darcs
985fb45
%endif
54746db
BuildRequires:  git
54746db
BuildRequires:  mercurial
54746db
BuildRequires:  subversion
54746db
BuildRequires:  tla
fcf0d8d
%endif
54746db
df4ee33
Requires:       python-twisted-core
df4ee33
Requires:       python-twisted-web
df4ee33
Requires:       python-twisted-mail
df4ee33
Requires:       python-twisted-words
df4ee33
df4ee33
BuildArch:      noarch
mjk 5b6c2b6
55a3a46
mjk 5b6c2b6
%description
mjk 5b6c2b6
The BuildBot is a system to automate the compile/test cycle required by
mjk 5b6c2b6
most software projects to validate code changes. By automatically
mjk 5b6c2b6
rebuilding and testing the tree each time something has changed, build
mjk 5b6c2b6
problems are pinpointed quickly, before other developers are
mjk 5b6c2b6
inconvenienced by the failure.
mjk 5b6c2b6
mjk 5b6c2b6
%prep
mjk 5b6c2b6
%setup -q
mjk 5b6c2b6
55a3a46
mjk 5b6c2b6
%build
mjk 5b6c2b6
%{__python} setup.py build
mjk 5b6c2b6
fcf0d8d
%if %do_tests
54746db
%check
55a3a46
trial buildbot.test
fcf0d8d
%endif
54746db
mjk 5b6c2b6
%install
mjk 5b6c2b6
rm -rf %{buildroot}
mjk 5b6c2b6
mjk 5b6c2b6
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
mjk 5b6c2b6
mjk 5b6c2b6
mkdir -p %{buildroot}/%{_datadir}/%{name}/
mjk 5b6c2b6
cp -R contrib %{buildroot}/%{_datadir}/%{name}/
mjk 5b6c2b6
mjk 5b6c2b6
# clean up Windows contribs.
mjk 5b6c2b6
sed -i 's/\r//' %{buildroot}/%{_datadir}/%{name}/contrib/windows/*
mjk 5b6c2b6
chmod -x %{buildroot}/%{_datadir}/%{name}/contrib/windows/*
mjk 5b6c2b6
df4ee33
# Fix rpmlint error (non-executable-script)
df4ee33
chmod +x %{buildroot}%{python_sitelib}/buildbot/test/subdir/emit.py
df4ee33
mjk 5b6c2b6
%clean
mjk 5b6c2b6
rm -rf %{buildroot}
mjk 5b6c2b6
mjk 5b6c2b6
%files
mjk 5b6c2b6
%defattr(-,root,root,-)
54746db
%doc COPYING CREDITS NEWS README docs/
mjk 5b6c2b6
%{_bindir}/buildbot
0125e4c
%{python_sitelib}/*
mjk 5b6c2b6
%{_datadir}/%{name}
mjk 5b6c2b6
mjk 5b6c2b6
mjk 5b6c2b6
%changelog
4e9dbda
* Thu Aug 17 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 0.7.11p3-1
4e9dbda
- Update for another XSS vuln from upstream
4e9dbda
8f9ab0c
* Thu Aug 13 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 0.7.11p2-1
8f9ab0c
- Update for XSS vuln from upstream
8f9ab0c
88bbe3f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.11p1-2
88bbe3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
88bbe3f
3108a50
* Fri Jul 17 2009 Gianluca Sforna <giallu gmail com> - 0.7.11p1-1
fcf0d8d
- New upstream release
fcf0d8d
- Change Source0 URI
fcf0d8d
- Make tests optional
fcf0d8d
985fb45
* Tue Mar  3 2009 Gianluca Sforna <giallu gmail com> - 0.7.10p1-2
55a3a46
- New upstream release
985fb45
- darcs only avaliable on ix86 platforms 
55a3a46
54746db
* Thu Feb 26 2009 Gianluca Sforna <giallu gmail com> - 0.7.10-1
54746db
- New upstream release
54746db
- Drop upstreamed patch
54746db
- Add %%check section and needed BR
54746db
512ade3
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-4
512ade3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
512ade3
eb50585
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7.7-3
eb50585
- Rebuild for Python 2.6
eb50585
db2e279
* Thu Apr  3 2008 Gianluca Sforna <giallu gmail com> - 0.7.7-2
db2e279
- Fix upgrade path
db2e279
488e3a5
* Mon Mar 31 2008 Gianluca Sforna <giallu gmail com> - 0.7.7-1
488e3a5
- new upstream release
488e3a5
0125e4c
* Thu Jan  3 2008 Gianluca Sforna <giallu gmail com> - 0.7.6-2
0125e4c
- pick up new .egg file 
0125e4c
df4ee33
* Mon Oct 15 2007 Gianluca Sforna <giallu gmail com> - 0.7.6-1
df4ee33
- new upstream release
df4ee33
- refreshed Patch0
df4ee33
- requires clean up
df4ee33
- License tag update (GPLv2)
df4ee33
df4ee33
* Sat Mar 17 2007 Gianluca Sforna <giallu gmail com>
df4ee33
- Silence rpmlint
df4ee33
d31fee7
* Thu Mar 01 2007 Gianluca Sforna <giallu gmail com> - 0.7.5-1
8f02da6
- new upstream release
8f02da6
- minor spec tweaks
df4ee33
- Removed (unmantained and orphaned) python-cvstoys Require
8f02da6
mjk 5b6c2b6
* Sat Sep 09 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.7.4-2
mjk 5b6c2b6
- cleanup %%files
mjk 5b6c2b6
mjk 5b6c2b6
* Fri Sep 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.7.4-1
mjk 5b6c2b6
- Upstream update
mjk 5b6c2b6
- don't ghost pyo files
mjk 5b6c2b6
mjk 5b6c2b6
* Fri Jul 28 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.7.3-3
mjk 5b6c2b6
- move contribs to %%{_datadir}/%{name}
mjk 5b6c2b6
mjk 5b6c2b6
* Fri Jul 07 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.7.3-2
mjk 5b6c2b6
- fixes for review
mjk 5b6c2b6
- added patch to remove #! where its not needed (shutup rpmlint)
mjk 5b6c2b6
mjk 5b6c2b6
* Sun Jun 02 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.7.3-1
mjk 5b6c2b6
- Inital build for FE