]> git.pld-linux.org Git - packages/python-uncompyle6.git/commitdiff
up to 2.4.0, run tests
authorElan Ruusamäe <glen@delfi.ee>
Mon, 4 Jul 2016 10:01:43 +0000 (13:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 4 Jul 2016 10:02:19 +0000 (13:02 +0300)
python-uncompyle6.spec

index fcdd3b2b9b3ebd509a1345cae54130339c36207e..d9c688290018e25581708223188c243e289a18d9 100644 (file)
@@ -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
This page took 0.153906 seconds and 4 git commands to generate.