%{!?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.4.2 Release: 0.2.%{hgcs}hg%{?dist} Summary: Command line tool for Transifex translation management Group: Development/Languages License: GPLv2 URL: http://transifex.org # To retrieve, use: https://bitbucket.org/indifex/% {name}/get/% {hgcs}.tar.bz2 #Source0: transifex-client-% {hgcs}.tar.bz2 Source: https://bitbucket.org/indifex/%{name}/get/%{hgcs}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %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 -n %{name} %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 * Sat Feb 19 2011 Domingo Becker - 0.4.2-0.2.226a185088efhg - fixed some rpmlint warnings * Thu Feb 17 2011 Paul W. Frields - 0.4.2-0.1.226a185088efhg - Initial packaging