[packages/python-social-auth: 1/2] new, version 0.2.19
glen
glen at pld-linux.org
Mon Jun 20 22:53:57 CEST 2016
commit 01b69abebd53f6c6eab27bf1e7896a53fc0bff44
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 20 23:51:03 2016 +0300
new, version 0.2.19
based on fedora package, 06c4816
python-social-auth.spec | 132 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 132 insertions(+)
---
diff --git a/python-social-auth.spec b/python-social-auth.spec
new file mode 100644
index 0000000..c97a6dc
--- /dev/null
+++ b/python-social-auth.spec
@@ -0,0 +1,132 @@
+#
+# Conditional build:
+%bcond_without doc # don't build doc
+%bcond_with tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module social-auth
+Summary: Social auth made simple
+Name: python-%{module}
+Version: 0.2.19
+Release: 1
+License: BSD
+Group: Development/Libraries
+Source0: https://pypi.python.org/packages/72/4c/5fb6c9157eb059e662beafbc73c84030741ea30eaaa643ca1cb8b58f1bdc/%{name}-%{version}.tar.gz
+# Source0-md5: 65b9c0b77ca2870b5dc586a0c65a0eba
+URL: http://psa.matiasaguirre.net/
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+Requires: python-modules
+Requires: python-oauthlib >= 0.3.8
+Requires: python-openid >= 2.2
+Requires: python-requests >= 1.1.0
+Requires: python-requests-oauthlib >= 0.3.0
+Requires: python-six >= 1.2.0
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python Social Auth is an easy to setup social
+authentication/registration mechanism with support for several
+frameworks and auth providers.
+
+Crafted using base code from django-social-auth, implements a common
+interface to define new authentication providers from third parties.
+And to bring support for more frameworks and ORMs.
+
+%package -n python3-%{module}
+Summary: Social auth made simple
+Group: Development/Libraries
+Requires: python3-oauthlib >= 0.3.8
+Requires: python3-openid >= 3.0.1
+Requires: python3-requests >= 1.1.0
+Requires: python3-requests-oauthlib >= 0.3.0
+Requires: python3-six >= 1.2.0
+Provides: %{name} = %{version}-%{release}
+
+%description -n python3-%{module}
+Python Social Auth is an easy to setup social
+authentication/registration mechanism with support for several
+frameworks and auth providers.
+
+Crafted using base code from django-social-auth, implements a common
+interface to define new authentication providers from third parties.
+And to bring support for more frameworks and ORMs.
+
+%package doc
+Summary: Documentation for Python Social Auth
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains the documentation for %{name}.
+
+%prep
+%setup -q
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+
+# rm tests (or subpackage?)
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/social/tests
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/social/apps/django_app/tests.py*
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/social/apps/django_app/me/tests.py*
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/social/apps/django_app/default/tests.py*
+%endif
+
+%if %{with python3}
+%py3_install
+
+# rm tests (or subpackage?)
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/tests
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/tests.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/__pycache__/tests.*.pyc
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/me/tests.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/me/__pycache__/tests.*.pyc
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/default/tests.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/social/apps/django_app/default/__pycache__/tests.*.pyc
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{py_sitescriptdir}/social
+%{py_sitescriptdir}/python_social_auth-%{version}-py2.*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{py3_sitescriptdir}/social
+%{py3_sitescriptdir}/python_social_auth-%{version}-py3.*.egg-info
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs examples
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-social-auth.git/commitdiff/2da27cdb401ede941c5efe3570b53df4409fabc6
More information about the pld-cvs-commit
mailing list