# # spec file for package python-pefile # # Copyright (c) 2015 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/ # Name: python-pefile Version: 1.2.10+139 Release: 0 Summary: A python module to work with PE (pertable executable) files License: BSD-3-Clause Group: Development/Libraries/Python Url: https://github.com/erocarrera/pefile Source0: https://github.com/erocarrera/pefile/archive/pefile-1.2.10-139.tar.gz Source1: http://reverse-engineering-scripts.googlecode.com/files/UserDB.TXT Patch1: force_version.patch BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif %description PEFILE is a python module that is often used in malware analysis. (Replace this with text from website.) %prep %setup -q -n pefile-pefile-1.2.10-139 %patch1 -p1 cp %{SOURCE1} . sed -i "s|\r||" COPYING UserDB.TXT %build python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} install -D -m 644 UserDB.TXT %{buildroot}%{_datadir}/python-pefile/UserDB.TXT %files %defattr(-,root,root) %doc COPYING README %{_datadir}/python-pefile/ %{python_sitelib}/* %changelog