Blame python-praw.spec

82c42d
%global srcname praw
2b02d7
Fabian Affolter e490e5
%if 0%{?fedora} > 12
Fabian Affolter e490e5
%global with_python3 1
Fabian Affolter e490e5
%else
Fabian Affolter e490e5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
Fabian Affolter e490e5
%endif
Fabian Affolter e490e5
82c42d
Name:           python-%{srcname}
Fabian Affolter b6275f
Version:        2.1.18
effc9b
Release:        1%{?dist}
2b02d7
Summary:        A python package that allows for simple access to reddit's API
2b02d7
2b02d7
License:        GPLv3+
2b02d7
URL:            https://github.com/praw-dev/praw/
82c42d
Source0:        https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Fabian Affolter 175f04
Patch0:         %{srcname}-2.1.17-update.patch
2b02d7
BuildArch:      noarch
82c42d
82c42d
BuildRequires:  python2-devel
82c42d
BuildRequires:  python-setuptools
82c42d
2b02d7
Requires:       python-six
2b02d7
2b02d7
%description
82c42d
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that
82c42d
allows for simple access to reddit's API.
2b02d7
Fabian Affolter e490e5
%if 0%{?with_python3}
Fabian Affolter e490e5
%package -n python3-%{srcname}
Fabian Affolter e490e5
Summary:        A python package that allows for simple access to reddit's API
Fabian Affolter e490e5
BuildArch:      noarch
Fabian Affolter e490e5
Fabian Affolter e490e5
BuildRequires:  python3-devel
Fabian Affolter e490e5
BuildRequires:  python3-setuptools
Fabian Affolter e490e5
Fabian Affolter e490e5
Requires:       python3-six
Fabian Affolter e490e5
Fabian Affolter e490e5
%description -n python3-%{srcname}
Fabian Affolter e490e5
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that
Fabian Affolter e490e5
allows for simple access to reddit's API.
Fabian Affolter e490e5
%endif
Fabian Affolter e490e5
2b02d7
%prep
82c42d
%setup -q -n %{srcname}-%{version}
069198
%patch0 -p0 -b .update
82c42d
rm -rf %{srcname}.egg-info
Fabian Affolter e490e5
%if 0%{?with_python3}
Fabian Affolter e490e5
cp -a . %{py3dir}
Fabian Affolter e490e5
%endif
2b02d7
2b02d7
%build
82c42d
%{__python2} setup.py build
Fabian Affolter e490e5
%if 0%{?with_python3}
Fabian Affolter e490e5
pushd %{py3dir}
Fabian Affolter e490e5
%{__python3} setup.py build
Fabian Affolter e490e5
popd
Fabian Affolter e490e5
%endif # with_python3
2b02d7
2b02d7
%install
Fabian Affolter e490e5
%{__python2} setup.py install --skip-build --root %{buildroot}
Fabian Affolter e490e5
%if 0%{?with_python3}
Fabian Affolter e490e5
pushd %{py3dir}
Fabian Affolter e490e5
%{__python3} setup.py install --skip-build --root %{buildroot}
Fabian Affolter e490e5
popd
Fabian Affolter e490e5
%endif # with_python3
2b02d7
2b02d7
%files
0e61dc
%doc CHANGES.rst README.rst COPYING
11e601
%{_bindir}/%{srcname}-multiprocess
Fabian Affolter e490e5
%{python2_sitelib}/*
Fabian Affolter e490e5
Fabian Affolter e490e5
%if 0%{?with_python3}
Fabian Affolter e490e5
%files -n python3-%{srcname}
Fabian Affolter e490e5
%doc CHANGES.rst README.rst COPYING
Fabian Affolter e490e5
%{_bindir}/%{srcname}-multiprocess
Fabian Affolter e490e5
%{python3_sitelib}/*
Fabian Affolter e490e5
%endif # with_python3
2b02d7
2b02d7
%changelog
Fabian Affolter 870b07
* Sun Sep 14 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.18-2
Fabian Affolter e490e5
- Add python3 subpackage (rhbz#1135689)
Fabian Affolter 870b07
Fabian Affolter 870b07
* Sat Aug 23 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.18-1
Fabian Affolter b6275f
- Update to latest upstream version 2.1.18
Fabian Affolter b6275f
effc9b
* Mon Jul 14 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.17-1
effc9b
- Disable update_checker (rhbz#1103097)
effc9b
- Update to latest upstream version 2.1.17
effc9b
e236af
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.16-2
e236af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e236af
82c42d
* Sat May 24 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.16-1
82c42d
- Spec file update
82c42d
- Update to latest upstream version 2.1.16
82c42d
256b8b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-5
256b8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
256b8b
8fe088
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-4
8fe088
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8fe088
2b02d7
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-3
2b02d7
- Fix more issues from review
2b02d7
2b02d7
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-2
2b02d7
- Fix few minor problems from review
2b02d7
2b02d7
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-1
2b02d7
- Initial packaging for Feora
2b02d7