%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: transifex Version: 0.2 Release: 0%{?dist} Summary: A system for distributed translation submissions Group: Applications/Internet License: GPLv2+ URL: https://fedorahosted.org/transifex Source0: transifex-%{version}.tar.gz Source1: transifex.logrotate BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-setuptools epydoc TurboGears Requires: TurboGears python-pygments cvs subversion mercurial git-core patch logrotate Requires(pre): %{_sbindir}/useradd %description Transifex is a web-system that facilitates the process of submitting translations in remote and disparate version control systems (VCS). %prep %setup -q %build make build mkdir docs make %install rm -rf $RPM_BUILD_ROOT #make DESTDIR=$RPM_BUILD_ROOT install # std place fedora-infrastructure deployes tg code mkdir -p $RPM_BUILD_ROOT/srv/tg/transifex/local-vcs cp -adv transifex start-transifex.py dev.cfg transifex.egg-info po $RPM_BUILD_ROOT/srv/tg/transifex install -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/workdir/local-vcs mkdir -p $RPM_BUILD_ROOT/srv/tg/%{name}/.ssh %clean rm -rf $RPM_BUILD_ROOT %pre %{_sbindir}/useradd -d /srv/tg/%{name} -r -s /sbin/nologin transifex 2> /dev/null || : %files %defattr(-,root,root,-) %doc README sample-prod.cfg AUTHORS INSTALL LICENSE docs %attr(0750,transifex,transifex) %dir /srv/tg/transifex %attr(0700,transifex,transifex) %dir /srv/tg/transifex/.ssh /srv/tg/transifex/* %{_sysconfdir}/logrotate.d/%{name} %attr(0755,transifex,root) %{_localstatedir}/lib/%{name} %changelog * Sun Feb 10 2008 Dimitris Glezos - 0.2-0%{?dist} - Overhaul of file uploads, now supporting non-UTF uploads - Admins are now members of 'l10n-admin' group * Mon Jan 14 2008 Dimitris Glezos - 0.1.1-0%{?dist} - Corrected a Unicode issue (non-ascii user names) * Sat Sep 29 2007 Mike McGrath - 0.1-5%{?dist} - Added logrotate and a few other pieces - Added transifex user and a few permissions changes * Thu Sep 27 2007 Mike McGrath - 0.1-3 - Added BR TurboGears - Added transifex to cp -adv - Added a mkdir * Sat Jun 23 2007 Dimitris Glezos - 0.1-1 - Initial creation