[packages/python-flickrapi] new, version 2.2.1
glen
glen at pld-linux.org
Sat Nov 18 17:21:42 CET 2017
commit 73caf15ed933d96b636325f4fe701c7cf3cf773b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Nov 18 18:21:17 2017 +0200
new, version 2.2.1
based on fedora package, 7ccab7c
python-flickrapi.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
---
diff --git a/python-flickrapi.spec b/python-flickrapi.spec
new file mode 100644
index 0000000..0bd6de8
--- /dev/null
+++ b/python-flickrapi.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module flickrapi
+%define egg_name flickrapi
+%define pypi_name flickrapi
+Summary: Python module for interfacing with the Flickr API
+Name: python-%{pypi_name}
+Version: 2.2.1
+Release: 1
+License: Python
+Group: Libraries/Python
+URL: http://stuvel.eu/flickrapi
+Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Source0-md5: d901d6ccb4bb0e990e69d9f8762084a6
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+Requires: python-requests
+Requires: python-requests-oauthlib
+Requires: python-requests-toolbelt
+Requires: python-six
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Python module for interfacing with the Flickr API.
+
+%package -n python3-%{module}
+Summary: Python module for interfacing with the Flickr API
+Requires: python3-requests
+Requires: python3-requests-oauthlib
+Requires: python3-requests-toolbelt
+Requires: python3-six
+
+%description -n python3-%{module}
+A Python module for interfacing with the Flickr API.
+
+%prep
+%setup -q -n %{module}-%{version}
+rm -r %{module}.egg-info
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/*.txt
+%endif
+
+%if %{with python3}
+%py3_install
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/*.txt
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc UPGRADING.txt LICENSE.txt
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc UPGRADING.txt LICENSE.txt
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-flickrapi.git/commitdiff/73caf15ed933d96b636325f4fe701c7cf3cf773b
More information about the pld-cvs-commit
mailing list