From b05ede06f9f54b3cb91e8ea0a04f448581d8b325fe90eac21c70b4a041ef3d15 Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Wed, 9 Jun 2021 10:01:04 +0000 Subject: [PATCH] Accepting request 898687 from home:jengelh:forensics OBS-URL: https://build.opensuse.org/request/show/898687 OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfsxfs?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 14 +++++ libfsxfs-20210507.tar.xz | 3 + libfsxfs.changes | 6 ++ libfsxfs.spec | 123 +++++++++++++++++++++++++++++++++++++++ system-libs.patch | 89 ++++++++++++++++++++++++++++ 7 files changed, 259 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 libfsxfs-20210507.tar.xz create mode 100644 libfsxfs.changes create mode 100644 libfsxfs.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..802f4c9 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/libyal/libfsxfs + e4ac16fef81f880d4532d1cbcca2a00d5311bc88 + + 20210507 + + + *.tar + xz + + + diff --git a/libfsxfs-20210507.tar.xz b/libfsxfs-20210507.tar.xz new file mode 100644 index 0000000..daa8f3b --- /dev/null +++ b/libfsxfs-20210507.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b542a62b2f12e0a857caf1be0f88bb0d6a60499ded0f046568251a2f1abbae11 +size 167512 diff --git a/libfsxfs.changes b/libfsxfs.changes new file mode 100644 index 0000000..274c990 --- /dev/null +++ b/libfsxfs.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Sun May 16 10:54:01 UTC 2021 - Jan Engelhardt + +- Initial package for build.opensuse.org + (version 20210507/commit e4ac16fe) +- Add system-libs.patch diff --git a/libfsxfs.spec b/libfsxfs.spec new file mode 100644 index 0000000..74114c6 --- /dev/null +++ b/libfsxfs.spec @@ -0,0 +1,123 @@ +# +# spec file for package libfsxfs +# +# 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: libfsxfs +%define lname libfsxfs1 +Version: 20210507 +Release: 0 +Summary: Library and tools for accessing the SGI X File System (XFS) +License: LGPL-3.0-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/libyal/libfsxfs +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(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(libfcache) >= 20200708 +BuildRequires: pkgconfig(libfcrypto) >= 20200104 +BuildRequires: pkgconfig(libfdata) >= 20201129 +BuildRequires: pkgconfig(libfdatetime) >= 20180910 +BuildRequires: pkgconfig(libfguid) >= 20180724 +BuildRequires: pkgconfig(libhmac) >= 20200104 +BuildRequires: pkgconfig(libuna) >= 20201204 +BuildRequires: pkgconfig(python3) + +%description +libfsxfs is a library to access the SGI X File System (XFS). + +Part of the libyal family of libraries. + +%package -n %lname +Summary: Library for accessing the SGI X File System (XFS) +Group: System/Libraries + +%description -n %lname +libfsxfs is a library to access the SGI X File System (XFS). + +Part of the libyal family of libraries. + +%package devel +Summary: Development files for libfsxfs +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libfsxfs is a library to access the SGI X File System (XFS). + +This subpackage contains libraries and header files for developing +applications that want to make use of libfsxfs. + +%package tools +Summary: Utilities to inspect SGI X File Systems (XFS) +Group: Productivity/File utilities + +%description tools +This subpackage provides the utilities from libfsxfs, which allows for +reading SGI X File Systems (XFS). + +%package -n python3-%name +Summary: Python 3 bindings for libfsxfs +Group: Development/Languages/Python + +%description -n python3-%{name} +Python 3 binding for libfsxfs, which can access XFS filesystems. + +%prep +%autosetup -p1 + +%build +if [ ! -e configure ]; then ./autogen.sh; fi +%configure --disable-static --enable-wide-character-type --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/libfsxfs.so.* + +%files devel +%_includedir/* +%_libdir/*.so +%_libdir/pkgconfig/*.pc +%_mandir/man3/*.3* + +%files tools +%_bindir/fsxfs* +%_mandir/man1/fsxfs* + +%files -n python3-%name +%python3_sitearch/py*.so + +%changelog diff --git a/system-libs.patch b/system-libs.patch new file mode 100644 index 0000000..7400ea4 --- /dev/null +++ b/system-libs.patch @@ -0,0 +1,89 @@ +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 | 29 ----------------------------- + configure.ac | 15 --------------- + 2 files changed, 44 deletions(-) + +Index: libfsxfs/Makefile.am +=================================================================== +--- libfsxfs.orig/Makefile.am ++++ libfsxfs/Makefile.am +@@ -3,22 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 + SUBDIRS = \ + include \ + common \ +- libcerror \ +- libcthreads \ +- libcdata \ +- libclocale \ +- libcnotify \ +- libcsplit \ +- libuna \ +- libcfile \ +- libcpath \ +- libbfio \ +- libfcache \ +- libfdata \ +- libfdatetime \ +- libfguid \ + libfsxfs \ +- libhmac \ + fsxfstools \ + pyfsxfs \ + pyfsxfs-python2 \ +@@ -79,20 +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)/libfcache && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS)) +- (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS)) + (cd $(srcdir)/libfsxfs && $(MAKE) $(AM_MAKEFLAGS)) + (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)) + +Index: libfsxfs/configure.ac +=================================================================== +--- libfsxfs.orig/configure.ac ++++ libfsxfs/configure.ac +@@ -173,25 +173,10 @@ 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([libfcache/Makefile]) +-AC_CONFIG_FILES([libfdata/Makefile]) +-AC_CONFIG_FILES([libfdatetime/Makefile]) +-AC_CONFIG_FILES([libfguid/Makefile]) + AC_CONFIG_FILES([libfsxfs/Makefile]) + AC_CONFIG_FILES([pyfsxfs/Makefile]) + AC_CONFIG_FILES([pyfsxfs-python2/Makefile]) + AC_CONFIG_FILES([pyfsxfs-python3/Makefile]) +-AC_CONFIG_FILES([libhmac/Makefile]) + AC_CONFIG_FILES([fsxfstools/Makefile]) + AC_CONFIG_FILES([po/Makefile.in]) + AC_CONFIG_FILES([po/Makevars])