15
0

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
This commit is contained in:
2021-01-23 22:21:07 +00:00
committed by Git OBS Bridge
commit 3d92e64701
5 changed files with 98 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pcodedmp-1.2.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:025f8c809a126f45a082ffa820893e6a8d990d9d7ddb68694b5a9f0a6dbcd955
size 35549

4
python-pcodedmp.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Jan 23 18:38:33 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- initial package for version 1.2.6.

67
python-pcodedmp.spec Normal file
View File

@@ -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