Blob Blame History Raw
%global modname twiggy
%global distname Twiggy

Name:               python-twiggy
Version:            0.4.5
Release:            2%{?dist}
Summary:            A Pythonic logger

Group:              Development/Libraries
License:            BSD
URL:                http://pypi.python.org/pypi/Twiggy
Source0:            http://pypi.python.org/packages/source/T/%{distname}/%{distname}-%{version}.tar.gz

BuildArch:          noarch

BuildRequires:      python2-devel
BuildRequires:      python-sphinx

%description
Twiggy is a Pythonic logger.

%prep
%setup -q -n %{distname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{distname}.egg-info

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}

# There are errors in the test suite.
#%%check
#./scripts/run-twiggy-tests.sh

%files
%doc README.rst LICENSE VERSION
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{distname}-%{version}*

%changelog
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.4.5-2
- Modernize python rpm macros as per review feedback.

* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.4.5-1
- initial package for Fedora