%global srcname google-apputils %global _docdir_fmt %{name} Name: python2-%{srcname} Version: 0.4.2 Release: 9%{?dist} Summary: Google Application Utilities for Python License: ASL 2.0 URL: https://github.com/google/%{srcname} Source0: https://pypi.python.org/packages/source/g/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-dateutil BuildRequires: python-gflags BuildRequires: pytz # For tests BuildRequires: python-mox Requires: python-dateutil Requires: python-gflags Requires: pytz %description This project is a small collection of utilities for building Python applications. It includes some of the same set of utilities used to build and run internal Python apps at Google. Features: * Simple application startup integrated with python-gflags. * Subcommands for command-line applications. * Option to drop into pdb on uncaught exceptions. * Helper functions for dealing with files. * High-level profiling tools. * Timezone-aware wrappers for datetime.datetime classes. * Improved TestCase with the same methods as unittest2, plus helpful flags for test startup. * google_test setuptools command for running tests. * Helper module for creating application stubs. %prep %setup -qc mv %{srcname}-%{version} python2 # Strip shbang find -name \*.py | xargs sed -i '/^#!\/usr\/bin\/.*python/d' # setup cannot handle pytz versioning sed -i -e 's/pytz>.*"/pytz"/' python2/setup.py %build pushd python2 %{__python2} setup.py build popd %install pushd python2 %{__python2} setup.py install --skip-build --root %{buildroot} popd %check pushd python2 %{__python2} setup.py test popd # python-mox doesn't work with python3 #pushd python3 #%{__python3} setup.py test #popd %files %license python2/LICENSE %doc python2/README %{python2_sitelib}/* %changelog * Sat Mar 02 2019 Ruslan Pisarev 0.4.2-9 - Rebuilt for Centos 7 without python3 * Thu Jul 27 2017 Fedora Release Engineering - 0.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 0.4.2-7 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.4.2-6 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Apr 21 2015 Orion Poplawski - 0.4.2-2 - Use _docdir_fmt macro - Fix changelog - Strip shbang from python library files * Mon Apr 6 2015 Orion Poplawski - 0.4.2-1 - Initial package