- Enable multipython builds. (This reenables Python2 on Leap 15.)
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libsmraw?expand=0&rev=27
This commit is contained in:
parent
9005db59f4
commit
613e0fd752
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 24 10:41:51 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Enable multipython builds. (This reenables Python2 on Leap 15.)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Nov 14 12:33:53 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
Sun Nov 14 12:33:53 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libsmraw
|
# spec file for package libsmraw
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 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
|
||||||
@ -28,10 +28,12 @@ Source: https://github.com/libyal/libsmraw/releases/download/%version/li
|
|||||||
Source2: https://github.com/libyal/libsmraw/releases/download/%version/libsmraw-alpha-%version.tar.gz.asc
|
Source2: https://github.com/libyal/libsmraw/releases/download/%version/libsmraw-alpha-%version.tar.gz.asc
|
||||||
Source3: %name.keyring
|
Source3: %name.keyring
|
||||||
Patch1: system-libs.patch
|
Patch1: system-libs.patch
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: c_compiler
|
BuildRequires: c_compiler
|
||||||
BuildRequires: gettext-tools >= 0.18.1
|
BuildRequires: gettext-tools >= 0.18.1
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(fuse) >= 2.6
|
BuildRequires: pkgconfig(fuse) >= 2.6
|
||||||
BuildRequires: pkgconfig(libbfio) >= 20201229
|
BuildRequires: pkgconfig(libbfio) >= 20201229
|
||||||
BuildRequires: pkgconfig(libcdata) >= 20200509
|
BuildRequires: pkgconfig(libcdata) >= 20200509
|
||||||
@ -48,7 +50,7 @@ BuildRequires: pkgconfig(libfvalue) >= 20210510
|
|||||||
BuildRequires: pkgconfig(libhmac) >= 20200104
|
BuildRequires: pkgconfig(libhmac) >= 20200104
|
||||||
BuildRequires: pkgconfig(libuna) >= 20210801
|
BuildRequires: pkgconfig(libuna) >= 20210801
|
||||||
BuildRequires: pkgconfig(openssl) >= 1.0
|
BuildRequires: pkgconfig(openssl) >= 1.0
|
||||||
BuildRequires: pkgconfig(python3)
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libsmraw is a library to access the storage media RAW format.
|
libsmraw is a library to access the storage media RAW format.
|
||||||
@ -81,27 +83,24 @@ Group: Productivity/File utilities
|
|||||||
This subpackage contains the utility programs from libsmraw to
|
This subpackage contains the utility programs from libsmraw to
|
||||||
acquire, export, query and verify storage media (split) RAW files.
|
acquire, export, query and verify storage media (split) RAW files.
|
||||||
|
|
||||||
%package -n python3-%name
|
|
||||||
Summary: Python 3 bindings for libsmraw
|
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %lname = %version
|
|
||||||
Requires: python3
|
|
||||||
|
|
||||||
%description -n python3-%name
|
|
||||||
Python 3 bindings for libsmraw, which provides functionality to work
|
|
||||||
with (split) RAW files.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%configure --disable-static --enable-wide-character-type --enable-python3
|
# OOT builds are presently broken, so we have to install
|
||||||
|
# within each python iteration now, not in %%install.
|
||||||
|
%{python_expand #
|
||||||
|
%configure --disable-static --enable-wide-character-type \
|
||||||
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}"
|
||||||
%make_build
|
%make_build
|
||||||
|
%make_install DESTDIR="%_builddir/rt"
|
||||||
|
%make_build clean
|
||||||
|
}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
mv %_builddir/rt/* %buildroot/
|
||||||
find "%buildroot" -name "*.la" -delete
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
@ -110,21 +109,21 @@ find "%buildroot" -name "*.la" -delete
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%_libdir/libsmraw.so.1*
|
%_libdir/libsmraw.so.1*
|
||||||
|
|
||||||
%files devel
|
%files -n %name-devel
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%_includedir/libsmraw*
|
%_includedir/libsmraw*
|
||||||
%_libdir/libsmraw.so
|
%_libdir/libsmraw.so
|
||||||
%_libdir/pkgconfig/libsmraw.pc
|
%_libdir/pkgconfig/libsmraw.pc
|
||||||
%_mandir/man3/libsmraw.3*
|
%_mandir/man3/libsmraw.3*
|
||||||
|
|
||||||
%files tools
|
%files -n %name-tools
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%_bindir/smrawverify
|
%_bindir/smrawverify
|
||||||
%_bindir/smrawmount
|
%_bindir/smrawmount
|
||||||
%_mandir/man1/smrawmount.1*
|
%_mandir/man1/smrawmount.1*
|
||||||
|
|
||||||
%files -n python3-%name
|
%files %python_files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%python3_sitearch/pysmraw.so
|
%python_sitearch/pysmraw.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user