Hello community,

here is the log from the commit of package python-evtx for openSUSE:Factory 
checked in at 2017-12-08 12:56:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-evtx (Old)
 and      /work/SRC/openSUSE:Factory/.python-evtx.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-evtx"

Fri Dec  8 12:56:56 2017 rev:3 rq:548187 version:0.5.3b

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-evtx/python-evtx.changes  2017-05-16 
14:44:20.933926960 +0200
+++ /work/SRC/openSUSE:Factory/.python-evtx.new/python-evtx.changes     
2017-12-08 12:56:59.406547390 +0100
@@ -1,0 +2,5 @@
+Thu Aug 24 13:38:32 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-evtx.spec ++++++
--- /var/tmp/diff_new_pack.yQ9W28/_old  2017-12-08 12:57:01.158484118 +0100
+++ /var/tmp/diff_new_pack.yQ9W28/_new  2017-12-08 12:57:01.162483974 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-evtx
 #
-# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-evtx
 Version:        0.5.3b
 Release:        0
@@ -24,15 +25,17 @@
 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-devel
-BuildRequires:  python-setuptools
+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}
-%py_requires
-%if 0%{?suse_version} > 1110
 BuildArch:      noarch
+%py_requires
 %endif
-%endif
+%python_subpackages
 
 %description
 python-evtx is a pure Python parser for recent Windows Event Log files (those
@@ -47,21 +50,24 @@
 %setup -q
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 mkdir -p %{buildroot}%{_bindir}
 for script in evtxdump.py evtxinfo.py; do
-  sed -i -e 's:^#!/bin/python:#!/usr/bin/python:' scripts/$script
+  sed -i -e 's:^#!/usr/bin/env python:#!%{__python3}:' scripts/$script
+  dos2unix scripts/$script
   install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script
 done
 
-%files
+%fdupes %{buildroot}
+
+%files %{python_files}
 %defattr(-,root,root)
 %doc LICENSE.TXT README.md
 %{python_sitelib}/*
-%{_bindir}/evtxdump.py
-%{_bindir}/evtxinfo.py
+%python3_only %{_bindir}/evtxdump.py
+%python3_only %{_bindir}/evtxinfo.py
 
 %changelog


Reply via email to