15
0
forked from pool/python-evtx

Accepting request 654041 from devel:languages:python

Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/654041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evtx?expand=0&rev=4
This commit is contained in:
2018-12-13 18:43:55 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 4 12:47:47 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Thu Aug 24 13:38:32 UTC 2017 - jmatejek@suse.com

View File

@@ -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/
#
@@ -23,17 +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 devel}
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
@@ -56,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
@@ -64,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