Accepting request 898729 from home:jengelh:forensics

- Update to snapshot 20210512 (381cbe88)

OBS-URL: https://build.opensuse.org/request/show/898729
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libolecf?expand=0&rev=19
This commit is contained in:
Greg Freemyer 2021-06-09 10:23:18 +00:00 committed by Git OBS Bridge
parent 7ba04031f9
commit 0abc0ad8cd
6 changed files with 142 additions and 48 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/libyal/libolecf</param>
<param name="revision">381cbe88af2b333f1a91176b24491c1e472920dc</param>
<!-- see configure.ac -->
<param name="versionformat">20210512</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

3
libolecf-20210512.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7819ba1dd8ce048663a0b090100b7c459dd5d11c10e08f51ed5ed514b306b733
size 181056

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e60b2ef31db4c28303e33c7b7ce461f07f18f5ea1463687a4d8e2665a3f9393e
size 1636179

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 13 23:01:44 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 20210512 (381cbe88)
* No changelog was provided
- Add system-libs.patch
-------------------------------------------------------------------
Wed Dec 30 02:54:48 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package libolecf
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,42 +17,39 @@
%bcond_without python2
Name: libolecf
%define lname libolecf1
%define timestamp 20201004
Version: 0~%timestamp
Name: libolecf
Version: 20210512
Release: 0
Summary: Library and tools to access the OLE 2 Compound File (OLECF) format
License: LGPL-3.0-or-later AND GFDL-1.3-or-later
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
Group: Productivity/File utilities
URL: https://github.com/libyal/libolecf/wiki
Source: https://github.com/libyal/libolecf/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
URL: https://github.com/libyal/libolecf
Source: %name-%version.tar.xz
Source2: OLE_Compound_File_format.pdf
#BuildRequires: pkg-config
BuildRequires: pkgconfig(libbfio)
BuildRequires: pkgconfig(libcdata) >= 20190112
BuildRequires: pkgconfig(libcerror) > 20160327
BuildRequires: pkgconfig(libcfile)
BuildRequires: pkgconfig(libclocale)
BuildRequires: pkgconfig(libcnotify)
BuildRequires: pkgconfig(libcpath)
BuildRequires: pkgconfig(libcsplit)
BuildRequires: pkgconfig(libcstring) >= 20150101
BuildRequires: pkgconfig(libcthreads) >= 20130723
Patch1: system-libs.patch
BuildRequires: c_compiler
BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libbfio) >= 20201229
BuildRequires: pkgconfig(libcdata) >= 20200509
BuildRequires: pkgconfig(libcerror) >= 20201121
BuildRequires: pkgconfig(libcfile) >= 20201229
BuildRequires: pkgconfig(libclocale) >= 20200913
BuildRequires: pkgconfig(libcnotify) >= 20200913
BuildRequires: pkgconfig(libcpath) >= 20200623
BuildRequires: pkgconfig(libcsplit) >= 20200703
BuildRequires: pkgconfig(libcthreads) >= 20200508
BuildRequires: pkgconfig(libfdatetime) >= 20180910
BuildRequires: pkgconfig(libfguid) >= 20180724
BuildRequires: pkgconfig(libfole) >= 20120426
BuildRequires: pkgconfig(libuna)
# using the below from factory causes python-plaso self-tests to fail
#BuildRequires: pkgconfig(libfdatetime) > 20180910
#BuildRequires: pkgconfig(libfvalue) > 20180817
# released, but not yet packaged. This is the only user in OBS.
#BuildRequires: pkgconfig(libwfps) > 20150104
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig(libfole) >= 20170502
BuildRequires: pkgconfig(libfvalue) >= 20210510
BuildRequires: pkgconfig(libfwps) >= 20191221
BuildRequires: pkgconfig(libuna) >= 20201204
%description
Library and tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
Library and tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
%package -n %lname
Summary: Library to access the OLE 2 Compound File (OLECF) format
@ -60,8 +57,7 @@ License: LGPL-3.0-or-later
Group: System/Libraries
%description -n %lname
Library to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
Library to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
%package tools
Summary: Tools to access the OLE 2 Compound File (OLECF) format
@ -70,12 +66,11 @@ Group: System/Filesystems
Requires: %lname = %version
%description tools
Tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
Tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
%package devel
Summary: Development files for %name
License: LGPL-3.0-or-later AND GFDL-1.3-or-later
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
Group: Development/Libraries/C and C++
Requires: %lname = %version
@ -108,10 +103,11 @@ BuildRequires: pkgconfig(python3)
Python bindings for libolecf, which can read MS IE cache files.
%prep
%setup -qn libolecf-%timestamp
%autosetup -p1
cp "%SOURCE2" .
%build
if [ ! -e configure ]; then ./autogen.sh; fi
%configure \
--disable-static \
--enable-wide-character-type \
@ -119,28 +115,24 @@ cp "%SOURCE2" .
--enable-python2 \
%endif
--enable-python3
make %{?_smp_mflags}
%make_build
%install
make install DESTDIR="%buildroot"
%make_install
find %buildroot -name '*.la' -delete
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%license COPYING*
%_libdir/libolecf.so.*
%files tools
%defattr(-,root,root)
%_bindir/olecf*
%_mandir/man1/olecf*.1*
%files devel
%defattr(-,root,root)
%doc OLE_Compound_File_format.pdf
%_includedir/libolecf.h
%_includedir/libolecf/
@ -150,15 +142,11 @@ find %buildroot -name '*.la' -delete
%if %{with python2}
%files -n python2-%name
%defattr(-,root,root)
%doc AUTHORS README
%license COPYING*
%python2_sitearch/pyolecf.so
%endif
%files -n python3-%name
%defattr(-,root,root)
%doc AUTHORS README
%license COPYING*
%python3_sitearch/pyolecf.so

85
system-libs.patch Normal file
View File

@ -0,0 +1,85 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2021-05-12 17:36:02.536572543 +0200
Some dirs are not present in snapshots directly generated from git
(nor are they marked as a submodule). Patch it out, since we have
them as system libs.
---
Makefile.am | 30 ------------------------------
configure.ac | 15 ---------------
2 files changed, 45 deletions(-)
Index: libolecf/Makefile.am
===================================================================
--- libolecf.orig/Makefile.am
+++ libolecf/Makefile.am
@@ -3,21 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
include \
common \
- libcerror \
- libcthreads \
- libcdata \
- libclocale \
- libcnotify \
- libcsplit \
- libuna \
- libcfile \
- libcpath \
- libbfio \
- libfdatetime \
- libfguid \
- libfole \
- libfvalue \
- libfwps \
libolecf \
olecftools \
pyolecf \
@@ -79,21 +64,6 @@ lib: library
library:
(cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfole && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfvalue && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfwps && $(MAKE) $(AM_MAKEFLAGS))
(cd $(srcdir)/libolecf && $(MAKE) $(AM_MAKEFLAGS))
(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
Index: libolecf/configure.ac
===================================================================
--- libolecf.orig/configure.ac
+++ libolecf/configure.ac
@@ -176,21 +176,6 @@ dnl Generate Makefiles
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([include/Makefile])
AC_CONFIG_FILES([common/Makefile])
-AC_CONFIG_FILES([libcerror/Makefile])
-AC_CONFIG_FILES([libcthreads/Makefile])
-AC_CONFIG_FILES([libcdata/Makefile])
-AC_CONFIG_FILES([libclocale/Makefile])
-AC_CONFIG_FILES([libcnotify/Makefile])
-AC_CONFIG_FILES([libcsplit/Makefile])
-AC_CONFIG_FILES([libuna/Makefile])
-AC_CONFIG_FILES([libcfile/Makefile])
-AC_CONFIG_FILES([libcpath/Makefile])
-AC_CONFIG_FILES([libbfio/Makefile])
-AC_CONFIG_FILES([libfdatetime/Makefile])
-AC_CONFIG_FILES([libfguid/Makefile])
-AC_CONFIG_FILES([libfole/Makefile])
-AC_CONFIG_FILES([libfvalue/Makefile])
-AC_CONFIG_FILES([libfwps/Makefile])
AC_CONFIG_FILES([libolecf/Makefile])
AC_CONFIG_FILES([pyolecf/Makefile])
AC_CONFIG_FILES([pyolecf-python2/Makefile])