Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 2698f406e78a0cfb8f03ca2ba6a46ae1 > files > 2

libkeccak-1.2-3.mga9.src.rpm

%define major 1
%define libname	%mklibname keccak %{major}
%define devname	%mklibname keccak -d

%bcond_without check

Name:		libkeccak
Summary:	Keccak-family hashing library
Version:	1.2
Release:	%mkrel 3
License:	ISC
Group:		System/Libraries
Url:		https://github.com/maandree/libkeccak
Source0:	https://github.com/maandree/libkeccak/archive/%{version}/libkeccak-%{version}.tar.gz
%if %{with check}
BuildRequires:	valgrind
%endif

%description
libkeccak is a bit-oriented lanewise implementation of
the Keccak-family with support for extend output size,
state marshalling, algorithm tuning with implicit parameters,
secure erasure of sensitive data, and HMAC.

%package -n %{libname}
Summary:	Keccak-family hashing library
Group:		System/Libraries

%description -n %{libname}
libkeccak is a bit-oriented lanewise implementation of
the Keccak-family with support for extend output size,
state marshalling, algorithm tuning with implicit parameters,
secure erasure of sensitive data, and HMAC.

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%prep
%setup -q

# fix libdir
sed -i -e 's,$(PREFIX)/lib,%{_libdir},g' Makefile

%build
%make_build CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%make_install PREFIX=%{_prefix}

# we don't want these
find %{buildroot} -name "*.a" -delete

%if %{with check}
%check
make check
%endif

%files -n %{libname}
%license %{_licensedir}/%{name}/LICENSE
%{_libdir}/libkeccak.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/libkeccak*.h
%{_libdir}/libkeccak.so
%{_mandir}/man?/libkeccak*


%changelog
* Thu Mar 31 2022 umeabot <umeabot> 1.2-3.mga9
+ Revision: 1837626
- Mageia 9 Mass Rebuild

* Fri Feb 14 2020 umeabot <umeabot> 1.2-2.mga8
+ Revision: 1523094
- Mageia 8 Mass Rebuild

* Tue Feb 19 2019 wally <wally> 1.2-1.mga7
+ Revision: 1368556
- imported package libkeccak