From 206b14eb5f02aa04399132789b0382e641e0679db7697ba7f6e3cafa93c73615 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:26:08 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=7 --- python-evtx.changes | 5 +++++ python-evtx.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-evtx.changes b/python-evtx.changes index 18e3822..e278646 100644 --- a/python-evtx.changes +++ b/python-evtx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:47:47 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu Aug 24 13:38:32 UTC 2017 - jmatejek@suse.com diff --git a/python-evtx.spec b/python-evtx.spec index 7e35b90..aa91c91 100644 --- a/python-evtx.spec +++ b/python-evtx.spec @@ -1,7 +1,7 @@ # # spec file for package python-evtx # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,6 @@ License: Apache-2.0 Group: Development/Libraries/Python Url: https://github.com/williballenthin/%{name} Source: https://github.com/williballenthin/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes From 58f2de5cc665581b5b5fc42050b2757fa58398b50c16008dcbd271d5fd6dde4a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:13:03 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=8 --- python-evtx.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-evtx.spec b/python-evtx.spec index aa91c91..bb9c4b4 100644 --- a/python-evtx.spec +++ b/python-evtx.spec @@ -23,16 +23,14 @@ Release: 0 Summary: Windows Event Log files parser License: Apache-2.0 Group: Development/Libraries/Python -Url: https://github.com/williballenthin/%{name} +URL: https://github.com/williballenthin/%{name} Source: https://github.com/williballenthin/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildArch: noarch -%py_requires %endif %python_subpackages @@ -55,7 +53,7 @@ inspired by the work of Andreas Schuster and his Perl implementation %python_install mkdir -p %{buildroot}%{_bindir} for script in evtxdump.py evtxinfo.py; do - sed -i -e 's:^#!/usr/bin/env python:#!%{__python3}:' scripts/$script + sed -i -e 's:^#!%{_bindir}/env python:#!python3:' scripts/$script dos2unix scripts/$script install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script done @@ -63,8 +61,8 @@ done %fdupes %{buildroot} %files %{python_files} -%defattr(-,root,root) -%doc LICENSE.TXT README.md +%license LICENSE.TXT +%doc README.md %{python_sitelib}/* %python3_only %{_bindir}/evtxdump.py %python3_only %{_bindir}/evtxinfo.py