Name: python-cvstoys Version: 1.0.10 Release: 0.fdr.1 Summary: Collection of python tools for CVS. Group: Applications/Internet License: BSD URL: http://purl.net/net/CVSToys Source: http://www.twistedmatrix.com/users/acapnotic/wares/code/CVSToys/CVSToys-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python >= 2.2 BuildRequires: python-devel >= 2.2 Requires: python >= 2.2 Requires: Twisted Provides: CVSToys = %{version}-%{release} %{!?python_sitearch: %define python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description CVSToys is a collection of companion tools for the Concurrent Versions System, better known as CVS. The biggest best and only toy we've got is Fresh CVS, a commit monitoring daemon which can keep a mirror of the repository or checked-out working copy up to date, and send out notifications by e-mail, on the web as HTML or RSS, or to a chat service such as IRC. %prep %setup -q -n CVSToys-%{version} #find doc -type f -name "*.tex" | xargs rm #ln -sf index.xhtml doc/index.html #find doc -type f | xargs chmod 644 %build CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT find $RPM_BUILD_ROOT%{python_sitearch}/cvstoys -type d \ | sed "s|^$RPM_BUILD_ROOT|%dir |" > %{name}-%{version}.files find $RPM_BUILD_ROOT%{python_sitearch}/cvstoys -type f ! -name "*.pyo" \ | sed "s|^$RPM_BUILD_ROOT||" >> %{name}-%{version}.files find $RPM_BUILD_ROOT%{python_sitearch}/cvstoys -type f -name "*.pyo" \ | sed "s|^$RPM_BUILD_ROOT|%ghost |" >> %{name}-%{version}.files %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}.files %defattr(-,root,root,-) %doc ChangeLog NEWS README %{_bindir}/* %changelog * Mon Feb 21 2005 Thomas Vander Stichele - 1.0.10-0.fdr.1