2013-04-29 12:04:14 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libcaes
|
|
|
|
|
#
|
2024-01-15 00:44:03 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-04-29 12:04:14 +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-13 21:24:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-29 12:04:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-08-01 16:30:07 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
|
2013-04-29 12:04:14 +00:00
|
|
|
%define lname libcaes1
|
2023-08-01 16:30:07 +00:00
|
|
|
Name: libcaes
|
2024-04-13 22:27:33 +00:00
|
|
|
Version: 20240413
|
2013-04-29 12:04:14 +00:00
|
|
|
Release: 0
|
2021-06-07 22:14:25 +00:00
|
|
|
Summary: Library for AES encryption
|
2019-04-13 21:24:20 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-29 12:04:14 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-06-07 22:14:25 +00:00
|
|
|
URL: https://github.com/libyal/libcaes
|
2021-06-26 10:57:05 +00:00
|
|
|
Source: https://github.com/libyal/libcaes/releases/download/%version/libcaes-alpha-%version.tar.gz
|
2021-11-14 13:09:00 +00:00
|
|
|
Source2: https://github.com/libyal/libcaes/releases/download/%version/libcaes-alpha-%version.tar.gz.asc
|
2021-11-14 14:26:21 +00:00
|
|
|
Source3: %name.keyring
|
2024-04-13 22:27:33 +00:00
|
|
|
BuildRequires: %python_module devel
|
|
|
|
|
BuildRequires: %python_module setuptools
|
2021-06-07 22:14:25 +00:00
|
|
|
BuildRequires: c_compiler
|
2013-04-29 12:04:14 +00:00
|
|
|
BuildRequires: pkg-config
|
2022-01-20 23:21:05 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-04-13 22:27:33 +00:00
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20240413
|
2013-04-29 12:04:14 +00:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.0
|
2024-03-14 09:05:24 +00:00
|
|
|
%python_subpackages
|
2022-11-27 21:11:53 +00:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%description
|
2021-06-07 22:14:25 +00:00
|
|
|
libcaes is a library for AES encryption.
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%package -n %lname
|
2021-06-07 22:14:25 +00:00
|
|
|
Summary: Library for AES encryption
|
2013-04-29 12:04:14 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %lname
|
2021-06-07 22:14:25 +00:00
|
|
|
libcaes is a library for AES encryption.
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%package devel
|
2021-06-07 22:14:25 +00:00
|
|
|
Summary: Development files for libcaes, a AES encryption library
|
2013-04-29 12:04:14 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
|
|
%description devel
|
2021-06-07 22:14:25 +00:00
|
|
|
libcaes is a library for AES encryption.
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
|
applications that want to make use of libcaes.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-06-07 22:14:25 +00:00
|
|
|
%autosetup -p1
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-01-20 23:21:05 +00:00
|
|
|
%{python_expand #
|
2022-08-08 11:39:53 +00:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
|
|
|
|
%configure --disable-static --enable-python PYTHON_VERSION="%{$python_bin_suffix}" LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2024-03-14 08:46:11 +00:00
|
|
|
grep ' '' local' config.log && exit 1
|
2021-06-07 22:14:25 +00:00
|
|
|
%make_build
|
2022-01-20 23:21:05 +00:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
|
%make_build clean
|
|
|
|
|
}
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-01-20 23:21:05 +00:00
|
|
|
mv %_builddir/rt/* %buildroot/
|
2021-06-07 22:14:25 +00:00
|
|
|
find "%buildroot" -name "*.la" -print -delete
|
2013-04-29 12:04:14 +00:00
|
|
|
|
2024-03-14 09:05:24 +00:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2013-04-29 12:04:14 +00:00
|
|
|
|
|
|
|
|
%files -n %lname
|
2021-06-07 22:14:25 +00:00
|
|
|
%license COPYING*
|
2013-04-29 12:04:14 +00:00
|
|
|
%_libdir/libcaes.so.1*
|
|
|
|
|
|
2022-01-20 23:21:05 +00:00
|
|
|
%files -n %name-devel
|
2013-04-29 12:04:14 +00:00
|
|
|
%_includedir/libcaes*
|
|
|
|
|
%_libdir/libcaes.so
|
|
|
|
|
%_libdir/pkgconfig/libcaes.pc
|
|
|
|
|
%_mandir/man3/libcaes.3*
|
|
|
|
|
|
2022-01-20 23:21:05 +00:00
|
|
|
%files %python_files
|
|
|
|
|
%python_sitearch/*
|
2021-06-07 22:14:25 +00:00
|
|
|
|
2013-04-29 12:04:14 +00:00
|
|
|
%changelog
|