Accepting request 948018 from security:forensics
- Edit specfile to do multipython builds. OBS-URL: https://build.opensuse.org/request/show/948018 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libevt?expand=0&rev=17
This commit is contained in:
commit
4ea1650803
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 21 18:25:58 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Edit specfile to do multipython builds.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 26 09:51:54 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
Sat Jun 26 09:51:54 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
39
libevt.spec
39
libevt.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libevt
|
# spec file for package libevt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,10 +27,12 @@ URL: https://github.com/libyal/libevt
|
|||||||
Source: %name-%version.tar.xz
|
Source: %name-%version.tar.xz
|
||||||
Source2: Windows_Event_Log_EVT.pdf
|
Source2: Windows_Event_Log_EVT.pdf
|
||||||
Patch1: system-libs.patch
|
Patch1: system-libs.patch
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: c_compiler
|
BuildRequires: c_compiler
|
||||||
BuildRequires: gettext-tools >= 0.18.1
|
BuildRequires: gettext-tools >= 0.18.1
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(libbfio) >= 20201229
|
BuildRequires: pkgconfig(libbfio) >= 20201229
|
||||||
BuildRequires: pkgconfig(libcdata) >= 20200509
|
BuildRequires: pkgconfig(libcdata) >= 20200509
|
||||||
BuildRequires: pkgconfig(libcdirectory) >= 20200702
|
BuildRequires: pkgconfig(libcdirectory) >= 20200702
|
||||||
@ -53,6 +55,7 @@ BuildRequires: pkgconfig(libregf) >= 20210419
|
|||||||
BuildRequires: pkgconfig(libuna) >= 20201204
|
BuildRequires: pkgconfig(libuna) >= 20201204
|
||||||
BuildRequires: pkgconfig(libwrc) >= 20210425
|
BuildRequires: pkgconfig(libwrc) >= 20210425
|
||||||
BuildRequires: pkgconfig(python3)
|
BuildRequires: pkgconfig(python3)
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libevt is a library and tools to access the Windows Event Log
|
libevt is a library and tools to access the Windows Event Log
|
||||||
@ -91,29 +94,25 @@ libevt is a library to access the Windows Event Log (EVT) format.
|
|||||||
This subpackage contains libraries and header files for developing
|
This subpackage contains libraries and header files for developing
|
||||||
applications that want to make use of %name.
|
applications that want to make use of %name.
|
||||||
|
|
||||||
%package -n python3-%name
|
|
||||||
Summary: Python bindings for libevt, a Windows event file parser
|
|
||||||
License: LGPL-3.0-or-later
|
|
||||||
Group: Development/Libraries/Python
|
|
||||||
|
|
||||||
%description -n python3-%name
|
|
||||||
Python bindings for libevt, which can read Windows event files.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
cp "%SOURCE2" .
|
cp "%SOURCE2" .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if [ ! -e configure ]; then ./autogen.sh; fi
|
autoreconf -fi
|
||||||
%configure \
|
# OOT builds are presently broken, so we have to install
|
||||||
--disable-static \
|
# within each python iteration now, not in %%install.
|
||||||
--enable-wide-character-type \
|
%{python_expand #
|
||||||
--enable-python3
|
%configure --disable-static --enable-wide-character-type \
|
||||||
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}"
|
||||||
%make_build
|
%make_build
|
||||||
|
%make_install DESTDIR="%_builddir/rt"
|
||||||
|
%make_build clean
|
||||||
|
}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
mv %_builddir/rt/* %buildroot/
|
||||||
find %buildroot -name '*.la' -delete
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
@ -122,11 +121,11 @@ find %buildroot -name '*.la' -delete
|
|||||||
%license COPYING*
|
%license COPYING*
|
||||||
%_libdir/libevt.so.*
|
%_libdir/libevt.so.*
|
||||||
|
|
||||||
%files tools
|
%files -n %name-tools
|
||||||
%_bindir/evt*
|
%_bindir/evt*
|
||||||
%_mandir/man1/evt*.1*
|
%_mandir/man1/evt*.1*
|
||||||
|
|
||||||
%files devel
|
%files -n %name-devel
|
||||||
%doc Windows_Event_Log*.pdf
|
%doc Windows_Event_Log*.pdf
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%_includedir/libevt.h
|
%_includedir/libevt.h
|
||||||
@ -135,8 +134,8 @@ find %buildroot -name '*.la' -delete
|
|||||||
%_libdir/pkgconfig/libevt.pc
|
%_libdir/pkgconfig/libevt.pc
|
||||||
%_mandir/man3/libevt.3*
|
%_mandir/man3/libevt.3*
|
||||||
|
|
||||||
%files -n python3-%name
|
%files %python_files
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%python3_sitearch/pyevt.so
|
%python_sitearch/pyevt.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user