Accepting request 898696 from home:jengelh:forensics

OBS-URL: https://build.opensuse.org/request/show/898696
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfwps?expand=0&rev=1
This commit is contained in:
Greg Freemyer 2021-06-09 10:05:39 +00:00 committed by Git OBS Bridge
commit 2d52177748
7 changed files with 219 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

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/libfwps</param>
<param name="revision">5d59f5bf3ea4997da51996d3a1ab0afd37b9552d</param>
<!-- see configure.ac -->
<param name="versionformat">20210421</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
libfwps-20210421.tar.xz Normal file
View File

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

6
libfwps.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Thu May 13 11:43:43 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Initial package for build.opensuse.org
(version 20210421/commit 5d59f5bf)
- Add system-libs.patch

105
libfwps.spec Normal file
View File

@ -0,0 +1,105 @@
#
# spec file for package libfwps
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libfwps
%define lname libfwps1
Version: 20210421
Release: 0
Summary: Library for Windows Property Store data types
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/libyal/libfwps
Source: %name-%version.tar.xz
Patch1: system-libs.patch
BuildRequires: c_compiler
BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libcdata) >= 20200509
BuildRequires: pkgconfig(libcerror) >= 20201121
BuildRequires: pkgconfig(libclocale) >= 20200913
BuildRequires: pkgconfig(libcnotify) >= 20200913
BuildRequires: pkgconfig(libcthreads) >= 20200508
BuildRequires: pkgconfig(libfdatetime) >= 20180910
BuildRequires: pkgconfig(libfguid) >= 20180724
BuildRequires: pkgconfig(libfole) >= 20170502
BuildRequires: pkgconfig(libuna) >= 20201204
BuildRequires: pkgconfig(python3)
%description
libfwps is a library for Windows Property Store data types.
Part of the libyal family of libraries.
%package -n %lname
Summary: Library for Windows Property Store data types
Group: System/Libraries
%description -n %lname
libfwps is a library for Windows Property Store data types.
Part of the libyal family of libraries.
%package devel
Summary: Development files for libfwps
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
libfwps is a library for Windows Property Store data types.
This subpackage contains libraries and header files for developing
applications that want to make use of libfwps.
%package -n python3-%{name}
Summary: Python 3 bindings for libfwps
License: LGPL-3.0-or-later
Group: Development/Languages/Python
%description -n python3-%{name}
Python 3 bindings for libfwps, which can read Windows Property Store data types.
%prep
%autosetup -p1
%build
if [ ! -e configure ]; then ./autogen.sh; fi
%configure --disable-static --enable-python3
%make_build
%install
%make_install
find "%buildroot" -type f -name "*.la" -delete -print
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%license COPYING*
%_libdir/libfwps.so.*
%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*.pc
%_mandir/man3/*.3*
%files -n python3-%name
%python3_sitearch/*.so
%changelog

67
system-libs.patch Normal file
View File

@ -0,0 +1,67 @@
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 | 18 ------------------
configure.ac | 9 ---------
2 files changed, 27 deletions(-)
Index: libfwps/Makefile.am
===================================================================
--- libfwps.orig/Makefile.am
+++ libfwps/Makefile.am
@@ -3,15 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
include \
common \
- libcerror \
- libcthreads \
- libcdata \
- libclocale \
- libcnotify \
- libuna \
- libfdatetime \
- libfguid \
- libfole \
libfwps \
pyfwps \
pyfwps-python2 \
@@ -71,15 +62,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)/libuna && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS))
- (cd $(srcdir)/libfole && $(MAKE) $(AM_MAKEFLAGS))
(cd $(srcdir)/libfwps && $(MAKE) $(AM_MAKEFLAGS))
(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
Index: libfwps/configure.ac
===================================================================
--- libfwps.orig/configure.ac
+++ libfwps/configure.ac
@@ -139,15 +139,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([libuna/Makefile])
-AC_CONFIG_FILES([libfdatetime/Makefile])
-AC_CONFIG_FILES([libfguid/Makefile])
-AC_CONFIG_FILES([libfole/Makefile])
AC_CONFIG_FILES([libfwps/Makefile])
AC_CONFIG_FILES([pyfwps/Makefile])
AC_CONFIG_FILES([pyfwps-python2/Makefile])