93 lines
2.6 KiB
RPMSpec
93 lines
2.6 KiB
RPMSpec
Summary: Library that provides message digest functions from BSD systems
|
|
Name: libmd
|
|
Version: 1.1.0
|
|
Release: 2
|
|
# Breakdown in COPYING file of libmd release tarball
|
|
License: BSD-2-Clause AND BSD-3-Clause AND ISC AND Beerware
|
|
URL: https://www.hadrons.org/software/libmd/
|
|
Source0: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz
|
|
Source1: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz.asc
|
|
Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/4F3E74F436050C10F5696574B972BF3EA4AE57A3
|
|
BuildRequires: gnupg2
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
|
|
%description
|
|
The libmd library provides a few message digest ("hash") functions, as
|
|
found on various BSD systems, either on their libc or on a library with
|
|
the same name, and with a compatible API.
|
|
|
|
%package devel
|
|
Summary: Development files for the message digest library
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
The libmd-devel package includes header files and libraries necessary
|
|
for developing programs which use the message digest library.
|
|
|
|
%prep
|
|
# gpg -verify --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
workdir="$(mktemp --directory)"
|
|
workring="${workdir}/keyring.gpg"
|
|
gpg2 --homedir="${workdir}" --yes --output="${workring}" --dearmor '%{SOURCE2}'
|
|
gpgv2 --homedir="${workdir}" --keyring="${workring}" '%{SOURCE1}' '%{SOURCE0}'
|
|
rm --recursive --force ${workdir}
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
# Don't install any libtool .la files
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
|
|
|
|
%check
|
|
make check
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc ChangeLog README
|
|
%{_libdir}/%{name}.so.0*
|
|
%{_mandir}/man7/%{name}.7*
|
|
|
|
%files devel
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_includedir}/md2.h
|
|
%{_includedir}/md4.h
|
|
%{_includedir}/md5.h
|
|
%{_includedir}/ripemd.h
|
|
%{_includedir}/rmd160.h
|
|
%{_includedir}/sha.h
|
|
%{_includedir}/sha1.h
|
|
%{_includedir}/sha2.h
|
|
%{_includedir}/sha256.h
|
|
%{_includedir}/sha512.h
|
|
%{_mandir}/man3/MD2*.3*
|
|
%{_mandir}/man3/MD4*.3*
|
|
%{_mandir}/man3/MD5*.3*
|
|
%{_mandir}/man3/RMD160*.3*
|
|
%{_mandir}/man3/SHA1*.3*
|
|
%{_mandir}/man3/SHA256*.3*
|
|
%{_mandir}/man3/SHA384*.3*
|
|
%{_mandir}/man3/SHA512*.3*
|
|
%{_mandir}/man3/md2.3*
|
|
%{_mandir}/man3/md4.3*
|
|
%{_mandir}/man3/md5.3*
|
|
%{_mandir}/man3/rmd160.3*
|
|
%{_mandir}/man3/sha1.3*
|
|
%{_mandir}/man3/sha2.3*
|
|
|
|
%changelog
|
|
* Thu Dec 12 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.1.0-2
|
|
- Fix license desc remove public domain
|
|
|
|
* Wed Jan 10 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.1.0-1
|
|
- Init package
|