[packages/python-mygpoclient] new, version 1.7

glen glen at pld-linux.org
Mon Sep 12 07:33:51 CEST 2016


commit 5de26395f1e4b8cafa60c84fe84488e2fffbf4be
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Sep 12 08:32:06 2016 +0300

    new, version 1.7
    
    based on fedora package, 5fe19d8

 python-mygpoclient.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/python-mygpoclient.spec b/python-mygpoclient.spec
new file mode 100644
index 0000000..ebf4eed
--- /dev/null
+++ b/python-mygpoclient.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+
+%define		module		mygpoclient
+%define		egg_name	mygpoclient
+Summary:	Python module to connect to the my.gpodder.org webservice
+Name:		python-%{module}
+Version:	1.7
+Release:	1
+License:	GPL v3+
+Group:		Libraries/Python
+Source0:	http://thpinfo.com/2010/mygpoclient/mygpoclient-%{version}.tar.gz
+# Source0-md5:	fc4e237c40eba0733a362949d304974c
+URL:		http://thpinfo.com/2010/mygpoclient/
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%if %{with tests}
+BuildRequires:	python-coverage
+BuildRequires:	python-minimock
+BuildRequires:	python-nose
+BuildRequires:	python-simplejson
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+client-library to connect the my.gpodder.org webservice.
+
+%prep
+%setup -q -n mygpoclient-%{version}
+
+# Leave out http-tests as they currently fail occasionally (reported upstream)
+rm mygpoclient/http_test.py
+
+%build
+%py_build
+
+%if %{with tests}
+nosetests-%{py_ver} --cover-erase --with-coverage --with-doctest --cover-package=mygpoclient
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%py_install
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/mygpoclient/*test.py*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README AUTHORS
+%attr(755,root,root) %{_bindir}/bpsync
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mygpoclient.git/commitdiff/5de26395f1e4b8cafa60c84fe84488e2fffbf4be



More information about the pld-cvs-commit mailing list