%global with_python3 1 %global srcname facct %global descr %(cat < py2%{srcname}.lang grep '%{python3_sitelib}' %{srcname}.lang > py3%{srcname}.lang %check env PYTHONPATH=$PWD %{__python} %{srcname}/__init__.py -v %if 0%{?with_python3} pushd %{py3dir} env PYTHONPATH=$PWD %{__python3} %{srcname}/__init__.py -v popd %endif # with_python3 %files -f py2%{srcname}.lang %doc README.txt LICENSE.txt %{python_sitelib}/%{srcname}*.egg-info/ %dir %{python_sitelib}/%{srcname} %dir %{python_sitelib}/%{srcname}/locale %dir %{python_sitelib}/%{srcname}/locale/* %dir %{python_sitelib}/%{srcname}/locale/*/LC_MESSAGES %{python_sitelib}/%{srcname}/bench_infra/ %{python_sitelib}/%{srcname}/bill/ %{python_sitelib}/%{srcname}/data/ %{python_sitelib}/%{srcname}/db/ %{python_sitelib}/%{srcname}/*.py* %if 0%{?with_python3} %files -n python3-%{srcname} -f py3%{srcname}.lang %doc README.txt LICENSE.txt %{python3_sitelib}/%{srcname}*.egg-info/ %dir %{python3_sitelib}/%{srcname} %dir %{python3_sitelib}/%{srcname}/locale %dir %{python3_sitelib}/%{srcname}/locale/* %dir %{python3_sitelib}/%{srcname}/locale/*/LC_MESSAGES %{python3_sitelib}/%{srcname}/bench_infra/ %{python3_sitelib}/%{srcname}/bill/ %{python3_sitelib}/%{srcname}/data/ %{python3_sitelib}/%{srcname}/db/ %{python3_sitelib}/%{srcname}/__pycache__/ %{python3_sitelib}/%{srcname}/*.py* %endif # with_python3 %changelog * Tue Jul 23 2013 - Eric F. - 0.1.2-1 - Initial RPM release