From a02980511bf34a32d6a606d4d33f30fd71161561cfcf8d7bde71dfb5d2ee7f6f Mon Sep 17 00:00:00 2001 From: Tomas Cech Date: Mon, 26 Jun 2017 07:40:25 +0000 Subject: [PATCH] Accepting request 506100 from home:mimi_vx python-ptrace to singlespec OBS-URL: https://build.opensuse.org/request/show/506100 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-ptrace-0.9.2.tar.gz | 3 ++ python-python-ptrace.changes | 11 +++++ python-python-ptrace.spec | 82 ++++++++++++++++++++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-ptrace-0.9.2.tar.gz create mode 100644 python-python-ptrace.changes create mode 100644 python-python-ptrace.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-ptrace-0.9.2.tar.gz b/python-ptrace-0.9.2.tar.gz new file mode 100644 index 0000000..2537546 --- /dev/null +++ b/python-ptrace-0.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4f6cac3a71d9e99e7ae96c4286899c7d45c7b9f01dbb6cef179a187b8432d3e +size 102376 diff --git a/python-python-ptrace.changes b/python-python-ptrace.changes new file mode 100644 index 0000000..a138051 --- /dev/null +++ b/python-python-ptrace.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun Jun 25 09:00:13 UTC 2017 - mimi.vx@gmail.com + +- update to 0.9.2 +- move to singlespec +* Fix strace.py when tracing multiple processes: use the correct process. + +------------------------------------------------------------------- +Thu Oct 27 10:05:42 UTC 2016 - mimi.vx@gmail.com + +- initial packaging diff --git a/python-python-ptrace.spec b/python-python-ptrace.spec new file mode 100644 index 0000000..99d7e46 --- /dev/null +++ b/python-python-ptrace.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-python-ptrace +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define pkg_name python-ptrace +Name: python-%{pkg_name} +Version: 0.9.2 +Release: 0 +Summary: Python binding of ptrace +License: GPL-2.0 +Group: Development/Languages/Python +Url: http://python-ptrace.readthedocs.io/ +Source: https://github.com/haypo/%{pkg_name}/archive/%{pkg_name}-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternative +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%description +python-ptrace is a debugger using ptrace (Linux, BSD and Darwin system call to +trace processes) written in Python. + +%prep +%setup -q -n %{pkg_name}-%{pkg_name}-%{version} +sed -i 's/\x0D$//' doc/*.rst +chmod 0644 examples/*.py + +%build +%python_build +%{python_expand $python setup_cptrace.py build} + +%install +%python_install +%{python_expand $python setup_cptrace.py install -O1 --skip-build --root %{buildroot}} +%python_clone -a %{buildroot}%{_bindir}/gdb.py +%python_clone -a %{buildroot}%{_bindir}/strace.py +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand $python runtests.py} + +%post +%python_install_alternative strace.py +%python_install_alternative gdb.py + +%postun +%python_uninstall_alternative strace.py +%python_uninstall_alternative gdb.py + +%files %{python_files} +%defattr(-,root,root,-) +%doc COPYING +%doc README.rst +%doc doc/* examples +%python_alternative %{_bindir}/gdb.py +%python_alternative %{_bindir}/strace.py +%{python_sitelib}/ptrace/ +%{python_sitelib}/python_ptrace-*-py*.egg-info +%{python_sitearch}/cptrace*.so +%{python_sitearch}/cptrace-*-py*.egg-info + +%changelog