commit 3d92e64701d916fa8e5feb52a3f762555096fd57610b53b1ed7c270e6091ae68 Author: Matej Cepl Date: Sat Jan 23 22:21:07 2021 +0000 Accepting request 866266 from home:sebix new package requires Request#866265 OBS-URL: https://build.opensuse.org/request/show/866266 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pcodedmp?expand=0&rev=1 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/pcodedmp-1.2.6.tar.gz b/pcodedmp-1.2.6.tar.gz new file mode 100644 index 0000000..7decc31 --- /dev/null +++ b/pcodedmp-1.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:025f8c809a126f45a082ffa820893e6a8d990d9d7ddb68694b5a9f0a6dbcd955 +size 35549 diff --git a/python-pcodedmp.changes b/python-pcodedmp.changes new file mode 100644 index 0000000..375c486 --- /dev/null +++ b/python-pcodedmp.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Jan 23 18:38:33 UTC 2021 - Sebastian Wagner + +- initial package for version 1.2.6. diff --git a/python-pcodedmp.spec b/python-pcodedmp.spec new file mode 100644 index 0000000..18810b1 --- /dev/null +++ b/python-pcodedmp.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pcodedmp +# +# Copyright (c) 2021 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pcodedmp +Version: 1.2.6 +Release: 0 +Summary: A VBA p-code disassembler +License: GPL-3.0-only +URL: https://github.com/bontchev/pcodedmp +Source: https://files.pythonhosted.org/packages/source/p/pcodedmp/pcodedmp-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module oletools >= 0.54} +# /SECTION +BuildRequires: fdupes +Requires: python-oletools >= 0.54 +Suggests: python-win_unicode_console +BuildArch: noarch +%python_subpackages + +%description +Disassemble p-code of VBA code in OLE2 documents. + +Supports VBA5 (Office 97, MacOffice 98), VBA6 (Office 2000 to Office 2009) and VBA7 (Office 2010 and higher). + +%prep +%setup -q -n pcodedmp-%{version} +sed -i '1{/\/bin\/env python/d;}' pcodedmp/pcodedmp.py + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pcodedmp +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative pcodedmp + +%postun +%python_uninstall_alternative pcodedmp + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/pcodedmp +%{python_sitelib}/* + +%changelog