2013-04-24 15:56:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package libhmac
|
|
|
|
#
|
2022-04-25 10:14:22 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-04-24 15:56:12 +02: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.
|
|
|
|
|
2020-12-30 04:49:15 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-24 15:56:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libhmac
|
|
|
|
%define lname libhmac1
|
2022-04-25 10:14:22 +02:00
|
|
|
Version: 20220425
|
2013-04-24 15:56:12 +02:00
|
|
|
Release: 0
|
2014-08-14 14:58:17 +02:00
|
|
|
Summary: Library to support various HMACs
|
2020-12-30 04:49:15 +01:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-24 15:56:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-06-09 11:40:04 +02:00
|
|
|
URL: https://github.com/libyal/libhmac
|
2022-04-25 10:14:22 +02:00
|
|
|
Source: https://github.com/libyal/libhmac/releases/download/%version/libhmac-alpha-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/libhmac/releases/download/%version/libhmac-alpha-%version.tar.gz.asc
|
2021-06-09 11:40:04 +02:00
|
|
|
Patch1: system-libs.patch
|
|
|
|
BuildRequires: c_compiler
|
|
|
|
BuildRequires: gettext-tools >= 0.18.1
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2022-04-25 10:14:22 +02:00
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20220101
|
2022-08-29 11:42:12 +02:00
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20220106
|
2022-04-25 10:14:22 +02:00
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20220107
|
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20220108
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20220108
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20220109
|
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20220102
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20220102
|
2021-06-09 11:40:04 +02:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.0
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%description
|
2014-08-14 14:58:17 +02:00
|
|
|
A library and tools to support various Hash-based Message Authentication Codes (HMAC).
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%package -n %lname
|
2014-08-14 14:58:17 +02:00
|
|
|
Summary: Library to support various HMACs
|
2013-04-24 15:56:12 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2014-08-14 14:58:17 +02:00
|
|
|
A library to support various Hash-based Message Authentication Codes (HMAC).
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%package devel
|
2014-08-14 14:58:17 +02:00
|
|
|
Summary: Development files for libhmac
|
2013-04-24 15:56:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-04-25 10:20:03 +02:00
|
|
|
Requires: %lname = %version
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%description devel
|
2014-08-14 14:58:17 +02:00
|
|
|
Development files for libhmac, a library to support various Hash-based Message Authentication Codes (HMAC).
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
2022-04-25 10:20:03 +02:00
|
|
|
applications that want to make use of %name.
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%package tools
|
2014-08-14 14:58:17 +02:00
|
|
|
Summary: Utilities for HMACs
|
2013-04-24 15:56:12 +02:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
2013-08-06 07:01:06 +02:00
|
|
|
Use hmacsum to calculate a Hash-based Message Authentication Code (HMAC) of the data in a file.
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%prep
|
2021-06-09 11:40:04 +02:00
|
|
|
%autosetup -p1
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%build
|
2022-04-25 10:20:03 +02:00
|
|
|
autoreconf -fi
|
2022-08-08 17:47:00 +02:00
|
|
|
# see libcdata for version-sc
|
|
|
|
echo "V_%version { global: *; };" >v.sym
|
|
|
|
%configure --disable-static --enable-wide-character-type \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2021-06-09 11:40:04 +02:00
|
|
|
%make_build
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2022-04-25 10:20:03 +02:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2020-12-30 04:49:15 +01:00
|
|
|
%license COPYING*
|
2022-04-25 10:20:03 +02:00
|
|
|
%_libdir/libhmac.so.1*
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%files devel
|
2022-04-25 10:20:03 +02:00
|
|
|
%_includedir/libhmac*
|
|
|
|
%_libdir/libhmac.so
|
|
|
|
%_libdir/pkgconfig/libhmac.pc
|
|
|
|
%_mandir/man3/libhmac.3*
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%files tools
|
2022-04-25 10:20:03 +02:00
|
|
|
%_bindir/hmacsum
|
|
|
|
%_mandir/man1/hmacsum.1*
|
2013-04-24 15:56:12 +02:00
|
|
|
|
|
|
|
%changelog
|