# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-praw
Version: 1.0.15
Release: 3%{?dist}
Summary: A python package that allows for simple access to reddit's API
License: GPLv3+
URL: https://github.com/praw-dev/praw/
Source0: https://github.com/praw-dev/praw/archive/praw-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
Requires: python-six
%description
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to reddit's API.
%prep
%setup -q -n praw-praw-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc README.md COPYING
# For noarch packages: sitelib
%{python_sitelib}/*
%changelog
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-3
- Fix more issues from review
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-2
- Fix few minor problems from review
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-1
- Initial packaging for Feora