%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %global hgcs 226a185088ef Name: transifex-client Version: 0.5 Release: 1%{?dist} Summary: Command line tool for Transifex translation management Group: Development/Languages License: GPLv2 URL: http://transifex.org # Source: https://bitbucket.org/indifex/%{name}/get/%{hgcs}.tar.bz2 Source: http://pypi.python.org/packages/source/t/transifex-client/transifex-client-0.5.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description The Transifex Command-line Client is a command line tool that enables you to easily manage your translations within a project without the need of an elaborate UI system. %prep %setup -q %build # Remove CFLAGS=... for noarch packages (unneeded) 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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/* %{_bindir}/* %changelog * Wed May 18 2011 Domingo Becker <domingobecker@gmail.com> - 0.5-1 - New upstream version. * Mon Feb 21 2011 Paul W. Frields <stickster@gmail.com> - 0.4.2-0.3.226a185088efhg - Add BR for python-setuptools * Sat Feb 19 2011 Domingo Becker <domingobecker@gmail.com> - 0.4.2-0.2.226a185088efhg - fixed some rpmlint warnings * Thu Feb 17 2011 Paul W. Frields <stickster@gmail.com> - 0.4.2-0.1.226a185088efhg - Initial packaging