SHA256
1
0
forked from pool/libcsplit

Accepting request 898058 from home:jengelh:forensics

- Update to snapshot 20210411 (9ece23ab)

OBS-URL: https://build.opensuse.org/request/show/898058
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libcsplit?expand=0&rev=9
This commit is contained in:
Greg Freemyer 2021-06-07 21:41:29 +00:00 committed by Git OBS Bridge
parent d51a4a9911
commit 94e1a8d1fb
6 changed files with 89 additions and 26 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/libcsplit</param>
<param name="revision">9ece23ab25febd2d0510b87e07ba7816b833aca7</param>
<!-- see configure.ac -->
<param name="versionformat">20210411</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>

View File

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

View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 12 17:26:33 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 20210411 (9ece23ab)
* No changelog was provided
- Add system-libs.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 29 22:35:01 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com> Tue Dec 29 22:35:01 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libcsplit # spec file for package libcsplit
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2021 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
@ -12,35 +12,37 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: libcsplit Name: libcsplit
%define lname libcsplit1 %define lname libcsplit1
%define timestamp 20200703 Version: 20210411
Version: 0~%timestamp
Release: 0 Release: 0
Summary: Library for cross-platform C split string functions Summary: Library for C split string functions
License: LGPL-3.0+ License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: https://github.com/libyal/libcsplit/wiki URL: https://github.com/libyal/libcsplit
Source: https://github.com/libyal/libcsplit/releases/download/%timestamp/%{name}-beta-%timestamp.tar.gz Source: %name-%version.tar.xz
#BuildRequires: pkg-config Patch1: system-libs.patch
BuildRequires: pkgconfig(libcerror) >= 20130904 BuildRequires: c_compiler
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libcerror) >= 20201121
%description %description
A library for cross-platform C split string functions. A library for C split string functions.
This package is part of the libyal library collection and is used by other libraries in the collection This package is part of the libyal library collection and is used by other libraries in the collection
%package -n %lname %package -n %lname
Summary: Library for cross-platform C split string functions Summary: Library for C split string functions
Group: System/Libraries Group: System/Libraries
%description -n %lname %description -n %lname
Library for cross-platform C split string functions. Library for C split string functions.
Part of the libyal family of libraries. Part of the libyal family of libraries.
@ -56,22 +58,23 @@ Also see:
libcthreads; threads functions libcthreads; threads functions
%package devel %package devel
Summary: Development files for libcsplit, a cross-platform C split string library Summary: Development files for libcsplit, a C split string library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %{version} Requires: %lname = %{version}
%description devel %description devel
A library for cross-platform C split string functions. A library for C split string functions.
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 libcsplit. applications that want to make use of libcsplit.
%prep %prep
%setup -qn libcsplit-%timestamp %autosetup -p1
%build %build
if [ ! -e configure ]; then ./autogen.sh; fi
%configure --disable-static --enable-wide-character-type %configure --disable-static --enable-wide-character-type
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
@ -81,14 +84,10 @@ rm -f "%{buildroot}/%{_libdir}"/*.la
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files -n %lname %files -n %lname
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%license COPYING* %license COPYING*
%{_libdir}/libcsplit.so.1* %{_libdir}/libcsplit.so.1*
%files devel %files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%license COPYING* %license COPYING*
%{_includedir}/libcsplit* %{_includedir}/libcsplit*
%{_libdir}/libcsplit.so %{_libdir}/libcsplit.so

43
system-libs.patch Normal file
View File

@ -0,0 +1,43 @@
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 | 2 --
configure.ac | 1 -
2 files changed, 3 deletions(-)
Index: libcsplit-20210411/Makefile.am
===================================================================
--- libcsplit-20210411.orig/Makefile.am
+++ libcsplit-20210411/Makefile.am
@@ -3,7 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
include \
common \
- libcerror \
libcsplit \
po \
manuals \
@@ -53,7 +52,6 @@ lib: library
library:
cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)
- cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)
cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
Index: libcsplit-20210411/configure.ac
===================================================================
--- libcsplit-20210411.orig/configure.ac
+++ libcsplit-20210411/configure.ac
@@ -94,7 +94,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([libcsplit/Makefile])
AC_CONFIG_FILES([po/Makefile.in])
AC_CONFIG_FILES([po/Makevars])