forked from pool/libuna
Accepting request 893368 from home:jengelh:forensics
- Update to snapshot 20210418 (2939fe8f) OBS-URL: https://build.opensuse.org/request/show/893368 OBS-URL: https://build.opensuse.org/package/show/security:forensics/libuna?expand=0&rev=14
This commit is contained in:
parent
5a33af4ca4
commit
e1a98b6821
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>mini</package>
|
||||
</multibuild>
|
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/libyal/libuna</param>
|
||||
<param name="revision">2939fe8f28cd47b04a6b6c8fbf15b1d7b6954f34</param>
|
||||
<!-- see configure.ac -->
|
||||
<param name="versionformat">20210418</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
libuna-20210418.tar.xz
Normal file
3
libuna-20210418.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff1481b0758c3ea58e21d6ca1f91963e84783a8c5af7039d0d82a2604d38ef53
|
||||
size 641432
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e054be66f86521f5930e1f764df73114035d585b9e32896261e02bbc3a34bb03
|
||||
size 1898257
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 12 17:47:11 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to snapshot 20210418 (2939fe8f)
|
||||
* No changelog was provided
|
||||
- Add system-libs.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 13 03:29:21 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
|
42
libuna.spec
42
libuna.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libuna
|
||||
#
|
||||
# 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
|
||||
@ -18,22 +18,25 @@
|
||||
|
||||
Name: libuna
|
||||
%define lname libuna1
|
||||
%define timestamp 20201204
|
||||
Version: 0~%timestamp
|
||||
Version: 20210418
|
||||
Release: 0
|
||||
Summary: Library to support Unicode and ASCII (byte string) conversions
|
||||
License: LGPL-3.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/libyal/libuna/wiki
|
||||
Source: https://github.com/libyal/libuna/releases/download/%timestamp/%{name}-alpha-%timestamp.tar.gz
|
||||
URL: https://github.com/libyal/libuna/
|
||||
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(libcdatetime)
|
||||
BuildRequires: pkgconfig(libcdatetime) >= 20200510
|
||||
BuildRequires: pkgconfig(libcerror) >= 20150101
|
||||
BuildRequires: pkgconfig(libcfile) >= 20120526
|
||||
BuildRequires: pkgconfig(libclocale) >= 20120425
|
||||
BuildRequires: pkgconfig(libcnotify) >= 20121224
|
||||
# Using versions from OBS fails, tested 1/8/2015
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if "@BUILD_FLAVOR@" != "mini"
|
||||
BuildRequires: pkgconfig(libcfile) >= 20201229
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libclocale) >= 20200913
|
||||
BuildRequires: pkgconfig(libcnotify) >= 20200913
|
||||
|
||||
%description
|
||||
libuna is a library to support Unicode and ASCII (byte string)
|
||||
@ -69,11 +72,16 @@ This subpackage contains libraries and header files for developing
|
||||
applications that want to make use of libuna.
|
||||
|
||||
%prep
|
||||
%setup -qn libuna-%timestamp
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --enable-wide-character-type --enable-python
|
||||
make %{?_smp_mflags}
|
||||
if [ ! -e configure ]; then ./autogen.sh; fi
|
||||
%configure \
|
||||
%if "@BUILD_FLAVOR@" == "mini"
|
||||
--disable-tools \
|
||||
%endif
|
||||
--disable-static --enable-wide-character-type
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@ -83,18 +91,16 @@ rm -f "%{buildroot}/%{_libdir}"/*.la
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog ABOUT-NLS
|
||||
%{_libdir}/libuna.so.1*
|
||||
|
||||
%if "@BUILD_FLAVOR@" != "mini"
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/una*
|
||||
%{_mandir}/man1/unaexport.1*
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/libuna*
|
||||
%{_libdir}/libuna.so
|
||||
%{_libdir}/pkgconfig/libuna.pc
|
||||
|
66
system-libs.patch
Normal file
66
system-libs.patch
Normal file
@ -0,0 +1,66 @@
|
||||
---
|
||||
Makefile.am | 12 +++++-------
|
||||
configure.ac | 7 ++-----
|
||||
manuals/Makefile.am | 4 +++-
|
||||
3 files changed, 10 insertions(+), 13 deletions(-)
|
||||
|
||||
Index: libuna-20210418/Makefile.am
|
||||
===================================================================
|
||||
--- libuna-20210418.orig/Makefile.am
|
||||
+++ libuna-20210418/Makefile.am
|
||||
@@ -3,13 +3,11 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
SUBDIRS = \
|
||||
include \
|
||||
common \
|
||||
- libcerror \
|
||||
- libuna \
|
||||
- libcdatetime \
|
||||
- libclocale \
|
||||
- libcnotify \
|
||||
- libcfile \
|
||||
- unatools \
|
||||
+ libuna
|
||||
+if MAKE_TOOLS
|
||||
+SUBDIRS += unatools
|
||||
+endif
|
||||
+SUBDIRS += \
|
||||
po \
|
||||
documents \
|
||||
manuals \
|
||||
Index: libuna-20210418/configure.ac
|
||||
===================================================================
|
||||
--- libuna-20210418.orig/configure.ac
|
||||
+++ libuna-20210418/configure.ac
|
||||
@@ -115,16 +115,13 @@ AC_SUBST(
|
||||
[SPEC_DATE],
|
||||
[`date +"%a %b %e %Y" 2> /dev/null`])
|
||||
|
||||
+AC_ARG_ENABLE([tools], [AS_HELP_STRING([--disable-tools], [Do not build tools])], [make_tools=0], [make_tools=1])
|
||||
+AM_CONDITIONAL([MAKE_TOOLS], [test "$make_tools" = 1])
|
||||
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([libuna/Makefile])
|
||||
-AC_CONFIG_FILES([libcdatetime/Makefile])
|
||||
-AC_CONFIG_FILES([libclocale/Makefile])
|
||||
-AC_CONFIG_FILES([libcnotify/Makefile])
|
||||
-AC_CONFIG_FILES([libcfile/Makefile])
|
||||
AC_CONFIG_FILES([unatools/Makefile])
|
||||
AC_CONFIG_FILES([po/Makefile.in])
|
||||
AC_CONFIG_FILES([po/Makevars])
|
||||
Index: libuna-20210418/manuals/Makefile.am
|
||||
===================================================================
|
||||
--- libuna-20210418.orig/manuals/Makefile.am
|
||||
+++ libuna-20210418/manuals/Makefile.am
|
||||
@@ -1,6 +1,8 @@
|
||||
man_MANS = \
|
||||
- unaexport.1 \
|
||||
libuna.3
|
||||
+if MAKE_TOOLS
|
||||
+man_MANS += unaexport.1
|
||||
+endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
unaexport.1 \
|
Loading…
Reference in New Issue
Block a user