forked from pool/python-evtx
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user