31ff699
%global modname twiggy
31ff699
%global distname Twiggy
31ff699
31ff699
Name:               python-twiggy
31ff699
Version:            0.4.5
4190a63
Release:            3%{?dist}
31ff699
Summary:            A Pythonic logger
31ff699
31ff699
Group:              Development/Libraries
31ff699
License:            BSD
31ff699
URL:                http://pypi.python.org/pypi/Twiggy
31ff699
Source0:            http://pypi.python.org/packages/source/T/%{distname}/%{distname}-%{version}.tar.gz
31ff699
31ff699
BuildArch:          noarch
31ff699
31ff699
BuildRequires:      python2-devel
31ff699
BuildRequires:      python-sphinx
31ff699
31ff699
%description
31ff699
Twiggy is a Pythonic logger.
31ff699
31ff699
%prep
31ff699
%setup -q -n %{distname}-%{version}
31ff699
31ff699
# Remove bundled egg-info in case it exists
31ff699
rm -rf %{distname}.egg-info
31ff699
31ff699
%build
31ff699
%{__python2} setup.py build
31ff699
31ff699
%install
31ff699
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
31ff699
31ff699
# There are errors in the test suite.
31ff699
#%%check
31ff699
#./scripts/run-twiggy-tests.sh
31ff699
31ff699
%files
31ff699
%doc README.rst LICENSE VERSION
31ff699
%{python2_sitelib}/%{modname}/
31ff699
%{python2_sitelib}/%{distname}-%{version}*
31ff699
31ff699
%changelog
4190a63
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.5-3
4190a63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4190a63
31ff699
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.4.5-2
31ff699
- Modernize python rpm macros as per review feedback.
31ff699
31ff699
* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.4.5-1
31ff699
- initial package for Fedora