From 35fc463a1446f5108ebeb6185e2f9ecd3f1d612081a613746c63715996360a44 Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Wed, 9 Jun 2021 10:08:05 +0000 Subject: [PATCH] Accepting request 898679 from home:jengelh:forensics OBS-URL: https://build.opensuse.org/request/show/898679 OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfplist?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _service | 14 ++++++ libfplist-20210502.tar.xz | 3 ++ libfplist.changes | 6 +++ libfplist.spec | 102 ++++++++++++++++++++++++++++++++++++++ system-libs.patch | 61 +++++++++++++++++++++++ 7 files changed, 210 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 libfplist-20210502.tar.xz create mode 100644 libfplist.changes create mode 100644 libfplist.spec create mode 100644 system-libs.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c5ed4e2 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/libyal/libfplist + e29196674e2152935af6d454e09021855c159435 + + 20210502 + + + *.tar + xz + + + diff --git a/libfplist-20210502.tar.xz b/libfplist-20210502.tar.xz new file mode 100644 index 0000000..e69bc6d --- /dev/null +++ b/libfplist-20210502.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20562ef94d3a36d205e12531d624aa7bc8e1181b39f2e47d2970a03147f76efc +size 84296 diff --git a/libfplist.changes b/libfplist.changes new file mode 100644 index 0000000..076d79a --- /dev/null +++ b/libfplist.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Fri May 14 22:54:08 UTC 2021 - Jan Engelhardt + +- Initial package for build.opensuse.org + (version 20210502/commit e2919667) +- Add system-libs.patch diff --git a/libfplist.spec b/libfplist.spec new file mode 100644 index 0000000..bbcb3d1 --- /dev/null +++ b/libfplist.spec @@ -0,0 +1,102 @@ +# +# spec file for package libfplist +# +# 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: libfplist +%define lname libfplist1 +Version: 20210502 +Release: 0 +Summary: Library for plist formats +License: LGPL-3.0-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/libyal/libfplist +Source: %name-%version.tar.xz +Patch1: system-libs.patch +BuildRequires: bison +BuildRequires: c_compiler +BuildRequires: flex +BuildRequires: gettext-tools >= 0.18.1 +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: pkgconfig(libcdata) >= 20200509 +BuildRequires: pkgconfig(libcerror) >= 20201121 +BuildRequires: pkgconfig(libcnotify) >= 20200913 +BuildRequires: pkgconfig(libcthreads) >= 20200508 +BuildRequires: pkgconfig(libfguid) >= 20180724 +BuildRequires: pkgconfig(libfvalue) >= 20210510 +BuildRequires: pkgconfig(libuna) >= 20201204 + +%description +libfplist is a library for plist formats. + +Part of the libyal family of libraries. + +%package -n %lname +Summary: Library for plist formats +Group: System/Libraries + +%description -n %lname +libfplist is a library for plist formats. + +Part of the libyal family of libraries. + +Read-only supported formats: + + * XML plist format + +Unsupported formats: + + * ASCII plist format + * Binary plist format + +%package devel +Summary: Development files for libfplist +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libfplist is a library for plist formats. + +This subpackage contains libraries and header files for developing +applications that want to make use of libfplist. + +%prep +%autosetup -p1 + +%build +if [ ! -e configure ]; then ./autogen.sh; fi +%configure --disable-static +%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/libfplist.so.* + +%files devel +%_includedir/* +%_libdir/*.so +%_libdir/pkgconfig/*.pc +%_mandir/man3/*.3* + +%changelog diff --git a/system-libs.patch b/system-libs.patch new file mode 100644 index 0000000..0141843 --- /dev/null +++ b/system-libs.patch @@ -0,0 +1,61 @@ +From: Jan Engelhardt +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 | 14 -------------- + configure.ac | 7 ------- + 2 files changed, 21 deletions(-) + +Index: libfplist/Makefile.am +=================================================================== +--- libfplist.orig/Makefile.am ++++ libfplist/Makefile.am +@@ -3,13 +3,6 @@ ACLOCAL_AMFLAGS = -I m4 + SUBDIRS = \ + include \ + common \ +- libcerror \ +- libcthreads \ +- libcdata \ +- libcnotify \ +- libuna \ +- libfguid \ +- libfvalue \ + libfplist \ + po \ + manuals \ +@@ -60,13 +53,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)/libcnotify && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libfvalue && $(MAKE) $(AM_MAKEFLAGS)) + (cd $(srcdir)/libfplist && $(MAKE) $(AM_MAKEFLAGS)) + (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)) + +Index: libfplist/configure.ac +=================================================================== +--- libfplist.orig/configure.ac ++++ libfplist/configure.ac +@@ -117,13 +117,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([libcnotify/Makefile]) +-AC_CONFIG_FILES([libuna/Makefile]) +-AC_CONFIG_FILES([libfguid/Makefile]) +-AC_CONFIG_FILES([libfvalue/Makefile]) + AC_CONFIG_FILES([libfplist/Makefile]) + AC_CONFIG_FILES([po/Makefile.in]) + AC_CONFIG_FILES([po/Makevars])