From 6d38496a356a592000fb6b15ce3c14889580878d Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Sat, 12 Dec 2015 01:12:06 -0700 Subject: initial import (v1.1.1) --- .gitignore | 1 + python-nfsn.spec | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 python-nfsn.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9197634 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-nfsn-1.1.1.tar.gz diff --git a/python-nfsn.spec b/python-nfsn.spec new file mode 100644 index 0000000..7332c69 --- /dev/null +++ b/python-nfsn.spec @@ -0,0 +1,92 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + +%define srcname python-nfsn + +Name: python-nfsn +Version: 1.1.1 +Release: 1%{?dist} +Summary: Interact with NearlyFreeSpeech's API +License: CC0 +URL: https://github.com/ktdreyer/python-nfsn +Source0: http://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: pytest +BuildRequires: python2-devel +BuildRequires: python-beanbag +BuildRequires: python-httpretty +BuildRequires: python-requests +%if 0%{?with_python3} +BuildRequires: python3-pytest +BuildRequires: python3-devel +BuildRequires: python3-beanbag +BuildRequires: python3-httpretty +BuildRequires: python3-requests +%endif # with_python3 + +%description +A modern Python library for accessing NearlyFreeSpeech.net's API. + +%package -n python2-nfsn +Summary: %{summary} +Requires: python2-beanbag +%{?python_provide:%python_provide python2-nfsn} + +%description -n python2-nfsn +A modern Python library for accessing NearlyFreeSpeech.net's API. + +%if 0%{?with_python3} +%package -n python3-nfsn +Summary: %{summary} +Requires: python3 +Requires: python3-beanbag + +%description -n python3-nfsn +A modern Python library for accessing NearlyFreeSpeech.net's API. +%endif # with_python3 + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%{py2_build} + +%if 0%{?with_python3} +%{py3_build} +%endif # with_python3 + +%install +%py2_install + +%if 0%{?with_python3} +rm %{buildroot}%{_bindir}/pynfsn +%py3_install +%endif # with_python3 + +%check +%{__python2} setup.py test + +%if 0%{?with_python3} +%{__python3} setup.py test +%endif # with_python3 + +%files -n python2-nfsn +%doc README.rst +%license COPYING +%{python2_sitelib}/* +%if ! 0%{?with_python3} +%{_bindir}/pynfsn +%endif + +%if 0%{?with_python3} +%files -n python3-nfsn +%doc README.rst +%license COPYING +%{python3_sitelib}/* +%{_bindir}/pynfsn +%endif # with_python3 + +%changelog +* Sat Dec 12 2015 Ken Dreyer - 1.1.1-1 +- initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b10f328 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +3774bb4831e2c9a64d4b779dfb0c9884 python-nfsn-1.1.1.tar.gz -- cgit