[packages/python-xdis] new, version 1.1.3

glen glen at pld-linux.org
Mon Jul 4 11:48:14 CEST 2016


commit a7f7dcb11ca6161b6049313ff750213c1b3aa493
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 4 12:46:47 2016 +0300

    new, version 1.1.3
    
    Created with pyp2rpm-3.1.2

 python-xdis.spec | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)
---
diff --git a/python-xdis.spec b/python-xdis.spec
new file mode 100644
index 0000000..336e1b6
--- /dev/null
+++ b/python-xdis.spec
@@ -0,0 +1,114 @@
+#
+# Conditional build:
+%bcond_without	doc	# don't build doc
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module		xdis
+%define 	egg_name	xdis
+%define		pypi_name	xdis
+Summary:	Python cross-version byte-code disassembler and marshal routines
+Name:		python-%{module}
+Version:	1.1.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/x/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	4a20c8bb6e9a4acc01b93fa70b818bcc
+URL:		https://github.com/rocky/python-xdis/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-nose >= 1.0
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-nose >= 1.0
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-setuptools
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Python dis module allows you to disassemble byte from the same
+version of Python that you are running on. But what about bytecode
+from different versions?
+
+That's what this package is for. It can marshal load Python bytecodes
+from different versions of Python. The command-line routine
+pydisssemble will show disassembly output using Python 3.5 disassembly
+conventions
+
+It accepts bytecodes from Python version 2.3 to 3.5 or so. The code
+requires Python 2.5 or later and has been tested on Python running
+versions 2.6, 2.7, pypy-5.0.1, 3.2, 3.3, 3.4 and 3.5.
+
+%package -n python3-%{pypi_name}
+Summary:	Python cross-version byte-code disassembler and marshal routines
+Group:		Libraries/Python
+Requires:	python3-setuptools
+
+%description -n python3-%{pypi_name}
+The Python dis module allows you to disassemble byte from the same
+version of Python that you are running on. But what about bytecode
+from different versions?
+
+That's what this package is for. It can marshal load Python bytecodes
+from different versions of Python. The command-line routine
+pydisssemble will show disassembly output using Python 3.5 disassembly
+conventions
+
+It accepts bytecodes from Python version 2.3 to 3.5 or so. The code
+requires Python 2.5 or later and has been tested on Python running
+versions 2.6, 2.7, pypy-5.0.1, 3.2, 3.3, 3.4 and 3.5.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r %{module}.egg-info
+
+%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
+mv $RPM_BUILD_ROOT%{_bindir}/pydisasm{,-2}
+%endif
+
+%if %{with python3}
+%py3_install
+mv $RPM_BUILD_ROOT%{_bindir}/pydisasm{,-3}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_bindir}/pydisasm-2
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_bindir}/pydisasm-3
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-xdis.git/commitdiff/a7f7dcb11ca6161b6049313ff750213c1b3aa493



More information about the pld-cvs-commit mailing list