2012-02-16 16:17:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package libewf
|
|
|
|
#
|
2023-01-03 17:12:33 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-02-16 16:17:45 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-26 14:28:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-16 16:17:45 +01:00
|
|
|
#
|
|
|
|
|
2023-08-03 19:38:36 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%define lname libewf3
|
2014-08-25 11:03:20 +02:00
|
|
|
Name: libewf
|
2023-02-14 02:24:12 +01:00
|
|
|
Version: 20230212
|
2012-02-16 16:17:45 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for the Expert Witness Compression Format (EWF)
|
2021-06-09 12:43:05 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2013-08-05 20:46:42 +02:00
|
|
|
Group: Productivity/File utilities
|
2023-02-14 02:24:12 +01:00
|
|
|
URL: https://github.com/libyal/libewf
|
|
|
|
Source: https://github.com/libyal/libewf/releases/download/%version/libewf-experimental-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/libewf/releases/download/%version/libewf-experimental-%version.tar.gz.asc
|
|
|
|
Source3: %name.keyring
|
|
|
|
Source20: http://downloads.sf.net/libewf/mount_ewf-20090113.py
|
|
|
|
Source21: Expert_Witness_Compression_Format_EWF.pdf
|
|
|
|
Source23: Expert_Witness_Compression_Format_2_EWF2.pdf
|
2013-08-05 20:46:42 +02:00
|
|
|
Patch1: remove_date_time_macros.patch
|
2021-06-09 12:43:05 +02:00
|
|
|
Patch2: system-libs.patch
|
2023-03-26 12:13:29 +02:00
|
|
|
Patch3: 20230324.diff
|
2022-01-22 01:59:06 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2013-08-05 20:46:42 +02:00
|
|
|
BuildRequires: bison
|
2021-06-09 12:43:05 +02:00
|
|
|
BuildRequires: c_compiler
|
2013-08-05 20:46:42 +02:00
|
|
|
BuildRequires: flex
|
2021-06-09 12:43:05 +02:00
|
|
|
BuildRequires: gettext-tools >= 0.18.1
|
2020-01-26 14:28:34 +01:00
|
|
|
BuildRequires: libtool
|
2021-06-09 12:43:05 +02:00
|
|
|
BuildRequires: pkg-config
|
2022-01-22 01:59:06 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-02-14 02:24:12 +01:00
|
|
|
BuildRequires: timezone
|
2013-08-05 20:46:42 +02:00
|
|
|
BuildRequires: pkgconfig(bzip2) >= 1.0
|
|
|
|
BuildRequires: pkgconfig(fuse) >= 2.6
|
2023-02-14 02:24:12 +01:00
|
|
|
BuildRequires: pkgconfig(libbfio) >= 20221025
|
|
|
|
BuildRequires: pkgconfig(libcaes) >= 20221127
|
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20230108
|
|
|
|
BuildRequires: pkgconfig(libcdatetime) >= 20230115
|
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20220101
|
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20220106
|
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20221218
|
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20220108
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20220108
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20220109
|
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20220102
|
|
|
|
BuildRequires: pkgconfig(libfcache) >= 20230115
|
|
|
|
BuildRequires: pkgconfig(libfdata) >= 20220111
|
|
|
|
BuildRequires: pkgconfig(libfdatetime) >= 20220112
|
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20220113
|
|
|
|
BuildRequires: pkgconfig(libfvalue) >= 20220120
|
|
|
|
BuildRequires: pkgconfig(libhmac) >= 20230205
|
|
|
|
BuildRequires: pkgconfig(libodraw) >= 20210503
|
|
|
|
BuildRequires: pkgconfig(libsmdev) >= 20221028
|
|
|
|
BuildRequires: pkgconfig(libsmraw) >= 20221028
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20220611
|
2015-01-30 15:05:37 +01:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.0.0
|
|
|
|
BuildRequires: pkgconfig(uuid) >= 2.20
|
|
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.5
|
2022-01-22 01:59:06 +01:00
|
|
|
%python_subpackages
|
2012-02-16 16:17:45 +01:00
|
|
|
|
|
|
|
%description
|
2013-08-05 20:46:42 +02:00
|
|
|
libewf is a library for support of the Expert Witness Compression
|
|
|
|
Format (EWF). It supports both the SMART format (EWF-S01) and the
|
|
|
|
EnCase format (EWF-E01). libewf allows you to read and write media
|
|
|
|
information within the EWF files. libewf allows to read files created
|
|
|
|
by EnCase 1 to 6, linen and FTK Imager.
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%package -n %lname
|
2012-02-16 16:17:45 +01:00
|
|
|
Summary: Library to support the Expert Witness Compression Format
|
2020-01-26 14:28:34 +01:00
|
|
|
License: LGPL-3.0-or-later
|
2012-02-16 16:17:45 +01:00
|
|
|
Group: System/Libraries
|
2023-02-14 02:24:12 +01:00
|
|
|
Requires: timezone
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%description -n %lname
|
2013-08-05 20:46:42 +02:00
|
|
|
libewf is a library for support of the Expert Witness Compression
|
|
|
|
Format (EWF). It supports both the SMART format (EWF-S01) and the
|
|
|
|
EnCase format (EWF-E01). libewf allows you to read and write media
|
|
|
|
information within the EWF files. libewf allows to read files created
|
|
|
|
by EnCase 1 to 6, linen and FTK Imager.
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2013-08-05 20:46:42 +02:00
|
|
|
%package tools
|
2012-02-16 16:17:45 +01:00
|
|
|
Summary: Utilities for the Expert Witness Compression Format (EWF)
|
2020-01-26 14:28:34 +01:00
|
|
|
License: LGPL-3.0-or-later
|
2012-02-16 16:17:45 +01:00
|
|
|
Group: System/Filesystems
|
2013-08-05 20:46:42 +02:00
|
|
|
Requires: fuse
|
2020-12-17 17:39:55 +01:00
|
|
|
Requires: python3-fuse >= 0.2
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2013-08-05 20:46:42 +02:00
|
|
|
%description tools
|
2012-02-16 16:17:45 +01:00
|
|
|
Several tools for reading and writing EWF files.
|
|
|
|
It contains tools to acquire, verify and export EWF files.
|
|
|
|
|
2013-08-05 20:46:42 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for libewf, an Expert Witness Compression Format library
|
2021-06-09 12:43:05 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2012-02-16 16:17:45 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-01-03 17:12:33 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: libbfio-devel
|
2013-08-05 20:46:42 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libewf is a library for support of the Expert Witness Compression
|
|
|
|
Format (EWF). It supports both the SMART format (EWF-S01) and the
|
|
|
|
EnCase format (EWF-E01). libewf allows you to read and write media
|
|
|
|
information within the EWF files. libewf allows to read files created
|
|
|
|
by EnCase 1 to 6, linen and FTK Imager.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
2023-02-14 02:24:12 +01:00
|
|
|
applications that want to make use of %name.
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2012-02-16 16:17:45 +01:00
|
|
|
%prep
|
2023-02-14 02:24:12 +01:00
|
|
|
%autosetup -p1 -n libewf-%version
|
2023-01-03 17:12:33 +01:00
|
|
|
cp -av %_sourcedir/*.pdf .
|
2012-02-16 16:17:45 +01:00
|
|
|
|
|
|
|
%build
|
2013-08-05 20:46:42 +02:00
|
|
|
#export CFLAGS="%optflags -fno-strict-aliasing"
|
2022-01-22 01:59:06 +01:00
|
|
|
autoreconf -fi
|
|
|
|
# OOT builds are presently broken, so we have to install
|
|
|
|
# within each python iteration now, not in %%install.
|
|
|
|
%{python_expand #
|
2022-08-09 09:58:43 +02:00
|
|
|
# see libcdata for version-sc
|
|
|
|
echo "V_%version { global: *; };" >v.sym
|
2020-01-26 14:28:34 +01:00
|
|
|
%configure --disable-static --disable-rpath \
|
2022-01-22 01:59:06 +01:00
|
|
|
--enable-wide-character-type \
|
2022-08-09 09:58:43 +02:00
|
|
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2023-02-14 02:24:12 +01:00
|
|
|
echo "$python" >lastpython
|
2021-06-09 12:43:05 +02:00
|
|
|
%make_build
|
2022-01-22 01:59:06 +01:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
%make_build clean
|
|
|
|
}
|
2012-02-16 16:17:45 +01:00
|
|
|
|
|
|
|
%install
|
2023-03-26 12:13:29 +02:00
|
|
|
mv "%_builddir/rt"/* "%buildroot/"
|
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2023-02-14 02:24:12 +01:00
|
|
|
install -Dpm0755 %_sourcedir/mount*py "%buildroot/%_sbindir/mount.ewf"
|
|
|
|
ln -s mount.ewf "%buildroot%_sbindir/umount.ewf"
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2020-01-26 14:28:34 +01:00
|
|
|
%check
|
2023-02-14 02:24:12 +01:00
|
|
|
export PYTHON="$(cat lastpython)"
|
|
|
|
# The testsuite has a symbol overload for malloc,
|
|
|
|
# and that no longer works when using version-script
|
|
|
|
make check || :
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%files -n %lname
|
2021-06-09 12:43:05 +02:00
|
|
|
%license COPYING*
|
2023-02-14 02:24:12 +01:00
|
|
|
%_libdir/libewf.so.*
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2022-01-22 01:59:06 +01:00
|
|
|
%files -n %name-tools
|
2023-02-14 02:24:12 +01:00
|
|
|
%_bindir/ewfacquire
|
|
|
|
%_bindir/ewfacquirestream
|
|
|
|
%_bindir/ewfexport
|
|
|
|
%_bindir/ewfinfo
|
|
|
|
%_bindir/ewfmount
|
|
|
|
%_bindir/ewfrecover
|
|
|
|
%_bindir/ewfverify
|
2013-08-05 20:46:42 +02:00
|
|
|
### experimental file ###
|
2023-02-14 02:24:12 +01:00
|
|
|
%_bindir/ewfdebug
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2023-02-14 02:24:12 +01:00
|
|
|
%_mandir/man1/ewf*.1*
|
|
|
|
%_sbindir/*mount.ewf
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2022-01-22 01:59:06 +01:00
|
|
|
%files -n %name-devel
|
2021-06-09 12:43:05 +02:00
|
|
|
%license COPYING*
|
2013-08-05 20:46:42 +02:00
|
|
|
%doc *.pdf
|
2023-02-14 02:24:12 +01:00
|
|
|
%_includedir/libewf.h
|
|
|
|
%_includedir/libewf/
|
|
|
|
%_libdir/libewf.so
|
|
|
|
%_libdir/pkgconfig/libewf.pc
|
|
|
|
%_mandir/man3/libewf.3*
|
2013-08-05 20:46:42 +02:00
|
|
|
|
2022-01-22 01:59:06 +01:00
|
|
|
%files %python_files
|
2021-06-09 12:43:05 +02:00
|
|
|
%license COPYING*
|
2023-02-14 02:24:12 +01:00
|
|
|
%python_sitearch/*.so
|
2017-10-12 00:41:37 +02:00
|
|
|
|
2012-02-16 16:17:45 +01:00
|
|
|
%changelog
|