2013-04-19 08:01:44 +00:00
|
|
|
#
|
|
|
|
# spec file for package libwrc
|
|
|
|
#
|
2024-02-05 21:43:19 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-04-19 08:01: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-19 20:29:15 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-19 08:01:44 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libwrc
|
|
|
|
%define lname libwrc1
|
2024-04-21 10:48:05 +00:00
|
|
|
Version: 20240421
|
2013-04-19 08:01:44 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to support the Windows Resource Compiler format
|
2019-04-19 20:29:15 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 08:01:44 +00:00
|
|
|
Group: Productivity/File utilities
|
2021-06-09 10:21:44 +00:00
|
|
|
URL: https://github.com/libyal/libwrc
|
2024-04-21 10:48:05 +00:00
|
|
|
Source: https://github.com/libyal/%name/releases/download/%version/%name-experimental-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/%name/releases/download/%version/%name-experimental-%version.tar.gz.asc
|
2022-01-04 11:16:40 +00:00
|
|
|
Source9: %name.keyring
|
2024-04-21 10:48:05 +00:00
|
|
|
BuildRequires: %python_module devel
|
|
|
|
BuildRequires: %python_module setuptools
|
2021-06-09 10:21:44 +00:00
|
|
|
BuildRequires: c_compiler
|
|
|
|
BuildRequires: pkg-config
|
2022-01-21 21:59:42 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-04-21 10:48:05 +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
|
2021-06-09 10:21:44 +00:00
|
|
|
BuildRequires: pkgconfig(libexe) >= 20210424
|
2024-04-21 10:48:05 +00:00
|
|
|
BuildRequires: pkgconfig(libfcache) >= 20240414
|
|
|
|
BuildRequires: pkgconfig(libfdata) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfdatetime) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfvalue) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libfwnt) >= 20240415
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20240414
|
2021-06-09 10:21:44 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2022-01-21 21:59:42 +00:00
|
|
|
%python_subpackages
|
2022-11-27 11:51:48 +00:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-04-19 08:01:44 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libwrc is a library to support the Windows Resource Compiler format.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library to support the Windows Resource Compiler format
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libwrc is a library to support the Windows Resource Compiler format.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libwrc, a Windows Resouce Compiler format support library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2023-01-03 16:27:29 +00:00
|
|
|
Requires: libbfio-devel
|
2013-04-19 08:01:44 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libwrc is a library to support the Windows Resource Compiler format.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libwrc.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Utilities to inspect Windows Resource Compiler files
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This subpackage provides the utilities from libwrc, which allows for
|
|
|
|
reading Windows Resource Compiler files.
|
|
|
|
|
|
|
|
%prep
|
2021-06-09 10:21:44 +00:00
|
|
|
%autosetup -p1
|
2013-04-19 08:01:44 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-21 21:59:42 +00:00
|
|
|
%{python_expand #
|
2022-08-08 15:47:43 +00:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
2022-01-21 21:59:42 +00:00
|
|
|
%configure --disable-static --enable-wide-character-type \
|
2022-08-08 15:47:43 +00:00
|
|
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 11:51:48 +00:00
|
|
|
grep ' '' ''local' config.log && exit 1
|
2021-06-09 10:21:44 +00:00
|
|
|
%make_build
|
2022-01-21 21:59:42 +00:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
%make_build clean
|
|
|
|
}
|
2013-04-19 08:01:44 +00:00
|
|
|
|
|
|
|
%install
|
2022-11-04 10:05:57 +00:00
|
|
|
mv "%_builddir/rt"/* "%buildroot/"
|
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2013-04-19 08:01:44 +00:00
|
|
|
|
2024-04-21 10:48:05 +00:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2013-04-19 08:01:44 +00:00
|
|
|
|
|
|
|
%files -n %lname
|
2020-12-30 03:52:42 +00:00
|
|
|
%license COPYING*
|
2013-04-19 08:01:44 +00:00
|
|
|
%_libdir/libwrc.so.1*
|
|
|
|
|
2022-01-21 21:59:42 +00:00
|
|
|
%files -n %name-devel
|
2013-04-19 08:01:44 +00:00
|
|
|
%_includedir/libwrc*
|
|
|
|
%_libdir/libwrc.so
|
|
|
|
%_libdir/pkgconfig/libwrc.pc
|
|
|
|
%_mandir/man3/libwrc.3*
|
|
|
|
|
2022-01-21 21:59:42 +00:00
|
|
|
%files -n %name-tools
|
2013-04-19 08:01:44 +00:00
|
|
|
%_bindir/wrcinfo
|
|
|
|
%_mandir/man1/wrcinfo.1*
|
|
|
|
|
2022-01-21 21:59:42 +00:00
|
|
|
%files %python_files
|
|
|
|
%python_sitearch/*.so
|
2021-06-09 10:21:44 +00:00
|
|
|
|
2013-04-19 08:01:44 +00:00
|
|
|
%changelog
|