[packages/python-rauth] cleanup, fix url, add license

glen glen at pld-linux.org
Sun Jun 7 17:12:14 CEST 2015


commit 9558fe377c873f7fdd4e286bdae56a88cb52b1df
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jun 7 18:09:28 2015 +0300

    cleanup, fix url, add license

 python-rauth.spec | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/python-rauth.spec b/python-rauth.spec
index 1592300..9551f04 100644
--- a/python-rauth.spec
+++ b/python-rauth.spec
@@ -10,19 +10,18 @@ Summary:	OAuth 1.0/a, OAuth 2.0, and Ofly library
 Name:		python-%{module}
 Version:	0.7.1
 Release:	1
-License:	- (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
+License:	MIT
 Group:		Libraries/Python
 Source0:	https://github.com/litl/rauth/archive/%{version}.tar.gz
 # Source0-md5:	b7cb31e288ce24d0be788595e3685253
-URL:		https://github.com/litl/rauth/archive/0.7.1.tar.gz
+URL:		https://github.com/litl/rauth
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 %if %{with python2}
-BuildRequires:	python-devel
+BuildRequires:	python-modules
 BuildRequires:	python-setuptools >= 7.0
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel
 BuildRequires:	python3-modules
 BuildRequires:	python3-setuptools >= 7.0
 %endif
@@ -62,14 +61,10 @@ cp -a "$@" py3
 
 %build
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
 %endif
 
@@ -81,7 +76,6 @@ rm -rf _build/html/_sources
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %if %{with python2}
 %{__python} setup.py \
 	build --build-base build-2 \
@@ -108,10 +102,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS.md CHANGELOG README.md
 %{py_sitescriptdir}/%{module}
-%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-rauth.git/commitdiff/b051b9f50f9821e08c4bf5a979f08f83eebdbde1



More information about the pld-cvs-commit mailing list