2013-05-02 09:21:44 +00:00
|
|
|
#
|
|
|
|
# spec file for package libsmraw
|
|
|
|
#
|
2024-02-06 12:56:02 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-05-02 09:21:44 +00: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-17 22:44:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-05-02 09:21:44 +00:00
|
|
|
#
|
|
|
|
|
2023-11-27 09:44:00 +00:00
|
|
|
|
2023-08-01 18:41:12 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
Name: libsmraw
|
|
|
|
%define lname libsmraw1
|
2024-05-06 07:29:26 +00:00
|
|
|
Version: 20240506
|
2013-05-02 09:21:44 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library and tools to access the (split) RAW image format
|
2019-04-17 22:44:46 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-05-02 09:21:44 +00:00
|
|
|
Group: Productivity/File utilities
|
2021-06-09 10:22:23 +00:00
|
|
|
URL: https://github.com/libyal/libsmraw
|
2024-05-06 07:29:26 +00:00
|
|
|
Source: https://github.com/libyal/libsmraw/releases/download/%version/%name-alpha-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/libsmraw/releases/download/%version/%name-alpha-%version.tar.gz.asc
|
2021-11-14 14:27:09 +00:00
|
|
|
Source3: %name.keyring
|
2024-05-06 07:29:26 +00:00
|
|
|
BuildRequires: %python_module devel
|
|
|
|
BuildRequires: %python_module setuptools
|
2021-06-09 10:22:23 +00:00
|
|
|
BuildRequires: c_compiler
|
2013-05-02 09:21:44 +00:00
|
|
|
BuildRequires: pkg-config
|
2022-01-24 12:42:57 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-05-02 09:21:44 +00:00
|
|
|
BuildRequires: pkgconfig(fuse) >= 2.6
|
2024-05-06 07:29:26 +00: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(libfvalue) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libhmac) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20240414
|
2015-01-09 21:28:24 +00:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.0
|
2022-01-24 12:42:57 +00:00
|
|
|
%python_subpackages
|
2022-11-27 10:49:50 +00:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libsmraw is a library to access the storage media RAW format.
|
|
|
|
The library supports both RAW and split RAW.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library and tools to access the (split) RAW image format
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libsmraw is a library to access the storage media RAW format.
|
|
|
|
The library supports both RAW and split RAW.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libsmraw, a (split) RAW image file library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2023-01-03 16:25:01 +00:00
|
|
|
Requires: libbfio-devel
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libsmraw is a library to access the storage media RAW format.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libsmraw.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Utilities for reading and writing storage media (split) RAW files
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This subpackage contains the utility programs from libsmraw to
|
|
|
|
acquire, export, query and verify storage media (split) RAW files.
|
|
|
|
|
|
|
|
%prep
|
2021-06-09 10:22:23 +00:00
|
|
|
%autosetup -p1
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-24 12:42:57 +00:00
|
|
|
%{python_expand #
|
2022-08-09 08:09:55 +00:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
2022-01-24 12:42:57 +00:00
|
|
|
%configure --disable-static --enable-wide-character-type \
|
2022-08-09 08:09:55 +00:00
|
|
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 10:49:50 +00:00
|
|
|
grep ' '' ''local' config.log && exit 1
|
2021-06-09 10:22:23 +00:00
|
|
|
%make_build
|
2022-01-24 12:42:57 +00:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
%make_build clean
|
|
|
|
}
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
%install
|
2022-01-24 12:42:57 +00:00
|
|
|
mv %_builddir/rt/* %buildroot/
|
2024-05-06 07:29:26 +00:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2013-05-02 09:21:44 +00:00
|
|
|
|
2024-05-06 07:29:26 +00:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2013-05-02 09:21:44 +00:00
|
|
|
|
|
|
|
%files -n %lname
|
2019-04-17 22:44:46 +00:00
|
|
|
%license COPYING
|
2013-05-02 09:21:44 +00:00
|
|
|
%_libdir/libsmraw.so.1*
|
|
|
|
|
2022-01-24 12:42:57 +00:00
|
|
|
%files -n %name-devel
|
2019-04-17 22:44:46 +00:00
|
|
|
%license COPYING
|
2013-05-02 09:21:44 +00:00
|
|
|
%_includedir/libsmraw*
|
|
|
|
%_libdir/libsmraw.so
|
|
|
|
%_libdir/pkgconfig/libsmraw.pc
|
|
|
|
%_mandir/man3/libsmraw.3*
|
|
|
|
|
2022-01-24 12:42:57 +00:00
|
|
|
%files -n %name-tools
|
2019-04-17 22:44:46 +00:00
|
|
|
%license COPYING
|
2014-08-14 12:58:18 +00:00
|
|
|
%_bindir/smrawverify
|
2013-05-02 09:21:44 +00:00
|
|
|
%_bindir/smrawmount
|
|
|
|
%_mandir/man1/smrawmount.1*
|
|
|
|
|
2022-01-24 12:42:57 +00:00
|
|
|
%files %python_files
|
2019-04-17 22:44:46 +00:00
|
|
|
%license COPYING
|
2022-01-24 12:42:57 +00:00
|
|
|
%python_sitearch/pysmraw.so
|
2017-10-11 22:47:16 +00:00
|
|
|
|
2013-05-02 09:21:44 +00:00
|
|
|
%changelog
|