[packages/python-uncompyle6] up to 2.4.0, run tests
glen
glen at pld-linux.org
Mon Jul 4 12:03:22 CEST 2016
commit 7dc1b643056b84a28a333ab58771c16ce4341fa2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jul 4 13:01:43 2016 +0300
up to 2.4.0, run tests
python-uncompyle6.spec | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/python-uncompyle6.spec b/python-uncompyle6.spec
index fcdd3b2..d9c6882 100644
--- a/python-uncompyle6.spec
+++ b/python-uncompyle6.spec
@@ -1,11 +1,18 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module uncompyle6
+%define egg_name uncompyle6
+%define pypi_name uncompyle6
Summary: A Python decompiler, disassembler and cross-version bytecode library
-Name: python-uncompyle6
-Version: 2.3.4
+Name: python-%{pypi_name}
+Version: 2.4.0
Release: 1
License: MIT
Group: Applications
Source0: https://github.com/rocky/python-uncompyle6/archive/release-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: bb547a9ba2f1b6b6bf1b894b46107cea
+# Source0-md5: 056bdea13e4159fc9283d43d3dc3743c
URL: https://github.com/rocky/python-uncompyle6/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
@@ -24,6 +31,10 @@ and has been tested on Python running versions 2.6, 2.7, 3.3, 3.4 and
%build
%py_build
+%if %{with tests}
+%{__make} PYTHONPATH=$(pwd) check
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
%py_install
@@ -36,5 +47,5 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/pydisassemble
%attr(755,root,root) %{_bindir}/uncompyle6
-%{py_sitescriptdir}/uncompyle6
-%{py_sitescriptdir}/uncompyle6-%{version}-py*.egg-info
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-uncompyle6.git/commitdiff/7dc1b643056b84a28a333ab58771c16ce4341fa2
More information about the pld-cvs-commit
mailing list