- Edit specfile to do multipython builds.

OBS-URL: https://build.opensuse.org/package/show/security:forensics/libwrc?expand=0&rev=15
This commit is contained in:
Jan Engelhardt 2022-01-21 21:59:42 +00:00 committed by Git OBS Bridge
parent 4744be94f3
commit 6fea2c3217
2 changed files with 22 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 21 18:25:58 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Edit specfile to do multipython builds.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 4 10:33:23 UTC 2022 - Jan Engelhardt <jengelh@inai.de> Tue Jan 4 10:33:23 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,10 +28,12 @@ Source: https://github.com/libyal/libwrc/releases/download/%version/libw
Source2: https://github.com/libyal/libwrc/releases/download/%version/libwrc-experimental-%version.tar.gz.asc Source2: https://github.com/libyal/libwrc/releases/download/%version/libwrc-experimental-%version.tar.gz.asc
Source9: %name.keyring Source9: %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(libbfio) >= 20201229 BuildRequires: pkgconfig(libbfio) >= 20201229
BuildRequires: pkgconfig(libcdata) >= 20210625 BuildRequires: pkgconfig(libcdata) >= 20210625
BuildRequires: pkgconfig(libcerror) >= 20220101 BuildRequires: pkgconfig(libcerror) >= 20220101
@ -51,6 +53,7 @@ BuildRequires: pkgconfig(libfwevt) >= 20211219
BuildRequires: pkgconfig(libfwnt) >= 20210906 BuildRequires: pkgconfig(libfwnt) >= 20210906
BuildRequires: pkgconfig(libuna) >= 20220102 BuildRequires: pkgconfig(libuna) >= 20220102
BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python3)
%python_subpackages
%description %description
libwrc is a library to support the Windows Resource Compiler format. libwrc is a library to support the Windows Resource Compiler format.
@ -81,24 +84,24 @@ Group: Productivity/File utilities
This subpackage provides the utilities from libwrc, which allows for This subpackage provides the utilities from libwrc, which allows for
reading Windows Resource Compiler files. reading Windows Resource Compiler files.
%package -n python3-%name
Summary: Python 3 bindings for libwrc
Group: Development/Languages/Python
%description -n python3-%name
Python 3 bindings for libwrc
%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/%_libdir" -type f -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
@ -107,17 +110,17 @@ find "%buildroot/%_libdir" -type f -name "*.la" -delete
%license COPYING* %license COPYING*
%_libdir/libwrc.so.1* %_libdir/libwrc.so.1*
%files devel %files -n %name-devel
%_includedir/libwrc* %_includedir/libwrc*
%_libdir/libwrc.so %_libdir/libwrc.so
%_libdir/pkgconfig/libwrc.pc %_libdir/pkgconfig/libwrc.pc
%_mandir/man3/libwrc.3* %_mandir/man3/libwrc.3*
%files tools %files -n %name-tools
%_bindir/wrcinfo %_bindir/wrcinfo
%_mandir/man1/wrcinfo.1* %_mandir/man1/wrcinfo.1*
%files -n python3-%name %files %python_files
%python3_sitearch/*.so %python_sitearch/*.so
%changelog %changelog