diff --git a/README.md b/README.md index 683d71b..15e8de5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libmd +Message Digest functions from BSD systems. + diff --git a/libmd.spec b/libmd.spec new file mode 100644 index 0000000..516752d --- /dev/null +++ b/libmd.spec @@ -0,0 +1,71 @@ +Name: libmd +Version: 1.0.4 +Release: 2mamba +Summary: Message Digest functions from BSD systems +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.hadrons.org/software/libmd/ +Source: https://github.com/guillemj/libmd.git/%{version}/libmd-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END + +%description +Message Digest functions from BSD systems. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +./autogen + +%build +%configure \ + --includedir=%{_includedir}/md + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libmd.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/md +%{_includedir}/md/*.h +%{_libdir}/libmd.a +%{_libdir}/libmd.la +%{_libdir}/libmd.so +%{_libdir}/pkgconfig/libmd.pc +%{_mandir}/man3/*.3* +%doc README + +%changelog +* Sun Apr 17 2022 Silvan Calarco 1.0.4-2mamba +- set includedir as %includedir/md + +* Fri Apr 15 2022 Silvan Calarco 1.0.4-1mamba +- package created using the webbuild interface