# # spec file for package libmd # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define sover 0 Name: libmd Version: 0.0.0 Release: 0 Summary: Provides message digest functions from BSD systems License: BSD-2-Clause or BSD-3-Clause or ISC or SUSE-Public-Domain Group: Development/Languages/C and C++ Url: https://www.hadrons.org/software/libmd/ Source0: https://archive.hadrons.org/software/libmd/libmd-%{version}.tar.xz Source1: https://archive.hadrons.org/software/libmd/libmd-%{version}.tar.xz.asc Source2: %{name}.keyring BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libmd library provides various message digest ("hash") functions, as found on various BSDs on a library with the same name and with a compatible API. %package -n %{name}%{sover} Summary: Provides message digest functions from BSD systems Group: System/Libraries %description -n %{name}%{sover} The libmd library provides various message digest ("hash") functions, as found on various BSDs on a library with the same name and with a compatible API. %package devel Summary: Provides message digest functions from BSD systems Group: Development/Languages/C and C++ Requires: %{name} = %{version} %description devel The libmd library provides various message digest ("hash") functions, as found on various BSDs on a library with the same name and with a compatible API. %prep %setup -q %build %configure \ --disable-static \ --disable-silent-rules make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %check make %{?_smp_mflags} check %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} %defattr(-,root,root) %doc COPYING %{_libdir}/%{name}.so.%{sover}* %files devel %defattr(-,root,root) %doc ChangeLog COPYING README %{_includedir}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/libmd.pc %{_mandir}/man3/*.3%{ext_man} %changelog