2013-04-19 10:00:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package libregf
|
|
|
|
#
|
2024-02-06 13:54:23 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-04-19 10:00:55 +02: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.
|
|
|
|
|
2019-04-18 00:43:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-19 10:00:55 +02:00
|
|
|
#
|
|
|
|
|
2023-10-29 11:20:59 +01:00
|
|
|
|
2023-08-01 18:35:19 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%define lname libregf1
|
2021-06-09 12:30:12 +02:00
|
|
|
Name: libregf
|
2024-04-21 12:50:11 +02:00
|
|
|
Version: 20240421
|
2013-04-19 10:00:55 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to access Windows REGF-type Registry files
|
2021-06-09 12:30:12 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2013-04-19 10:00:55 +02:00
|
|
|
Group: Productivity/File utilities
|
2021-06-09 12:30:12 +02:00
|
|
|
URL: https://github.com/libyal/libregf
|
2024-04-21 12:50:11 +02:00
|
|
|
Source: https://github.com/libyal/%name/releases/download/%version/%name-alpha-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/%name/releases/download/%version/%name-alpha-%version.tar.gz.asc
|
2021-11-14 15:27:06 +01:00
|
|
|
Source3: %name.keyring
|
|
|
|
Source11: Windows_NT_Registry_File_REGF_format.pdf
|
2024-04-21 12:50:11 +02:00
|
|
|
BuildRequires: %python_module devel
|
|
|
|
BuildRequires: %python_module setuptools
|
2021-06-09 12:30:12 +02:00
|
|
|
BuildRequires: c_compiler
|
|
|
|
BuildRequires: pkg-config
|
2022-01-24 12:56:47 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-05-02 11:20:54 +02:00
|
|
|
BuildRequires: pkgconfig(fuse) >= 2.6
|
2024-04-21 12:50:11 +02:00
|
|
|
BuildRequires: pkgconfig(libbfio) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20240413
|
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20240413
|
|
|
|
BuildRequires: pkgconfig(libfcache) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libfdata) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfdatetime) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfwnt) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfwsi) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20240414
|
2022-01-24 12:56:47 +01:00
|
|
|
%python_subpackages
|
2022-11-27 12:48:44 +01:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libregf is a library to access Windows Registry files of the REGF
|
|
|
|
type (a non-text representation).
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library to access Windows REGF-type Registry files
|
2019-04-18 00:43:23 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 10:00:55 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libregf is a library to access Windows Registry files of the REGF
|
|
|
|
type (a non-text representation).
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Utilities to inspect Windows REGF-type Registry files
|
2019-04-18 00:43:23 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 10:00:55 +02:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Several tools for inspecting Windows REGF-type Registry files.
|
|
|
|
Typically used for computer forensics.
|
2013-05-02 11:20:54 +02:00
|
|
|
|
2013-04-19 10:00:55 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for libregf, a Windows REGF-type Registry file parser
|
2021-06-09 12:30:12 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2013-04-19 10:00:55 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-03-03 17:50:39 +01:00
|
|
|
Requires: %lname = %version
|
2023-01-03 17:23:56 +01:00
|
|
|
Requires: libbfio-devel
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libregf is a library to access Windows Registry files of the REGF
|
|
|
|
type (a non-text representation).
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
2024-03-03 17:50:39 +01:00
|
|
|
applications that want to make use of %name.
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%prep
|
2021-06-09 12:30:12 +02:00
|
|
|
%autosetup -p1
|
2021-11-25 21:41:58 +01:00
|
|
|
cp %_sourcedir/*.pdf .
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%build
|
2022-01-24 12:56:47 +01:00
|
|
|
%{python_expand #
|
2022-08-08 17:48:05 +02:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
|
|
|
%configure --disable-static --enable-wide-character-type --enable-python \
|
|
|
|
PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 12:48:44 +01:00
|
|
|
grep ' '' ''local' config.log && exit 1
|
2021-06-09 12:30:12 +02:00
|
|
|
%make_build
|
2022-01-24 12:56:47 +01:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
%make_build clean
|
|
|
|
}
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%install
|
2022-01-24 12:56:47 +01:00
|
|
|
mv %_builddir/rt/* %buildroot/
|
2024-03-03 17:50:39 +01:00
|
|
|
find %buildroot -type f -name "*.la" -delete -print
|
2013-04-19 10:00:55 +02:00
|
|
|
|
2024-04-21 12:50:11 +02:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%files -n %lname
|
2020-12-31 03:17:57 +01:00
|
|
|
%license COPYING*
|
2024-03-03 17:50:39 +01:00
|
|
|
%_libdir/libregf.so.*
|
2013-04-19 10:00:55 +02:00
|
|
|
|
2022-01-24 12:56:47 +01:00
|
|
|
%files -n %name-tools
|
2024-03-03 17:50:39 +01:00
|
|
|
%_bindir/regf*
|
|
|
|
%_mandir/man1/regf*.1*
|
2013-04-19 10:00:55 +02:00
|
|
|
|
2022-01-24 12:56:47 +01:00
|
|
|
%files -n %name-devel
|
2013-04-19 10:00:55 +02:00
|
|
|
%doc Windows_NT_Registry_File*.pdf
|
2024-03-03 17:50:39 +01:00
|
|
|
%_includedir/libregf.h
|
|
|
|
%_includedir/libregf/
|
|
|
|
%_libdir/libregf.so
|
|
|
|
%_libdir/pkgconfig/libregf.pc
|
|
|
|
%_mandir/man3/libregf.3*
|
2013-04-19 10:00:55 +02:00
|
|
|
|
2022-01-24 12:56:47 +01:00
|
|
|
%files %python_files
|
2020-12-31 03:17:57 +01:00
|
|
|
%license COPYING*
|
2024-03-03 17:50:39 +01:00
|
|
|
%python_sitearch/pyregf.so
|
2013-04-19 10:00:55 +02:00
|
|
|
|
|
|
|
%changelog
|