diff --git a/README.md b/README.md index d324d5b..fa925a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libb2 +C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp. + diff --git a/libb2.spec b/libb2.spec new file mode 100644 index 0000000..41bd255 --- /dev/null +++ b/libb2.spec @@ -0,0 +1,64 @@ +Name: libb2 +Version: 0.98.1 +Release: 1mamba +Summary: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/BLAKE2/libb2 +Source: https://github.com/BLAKE2/libb2.git/v%{version}/libb2-%{version}.tar.bz2 +License: Common\ Public\ Attribution\ License\ 1.0 +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 libb2' to get the list of build requirements. +## AUTOBUILDREQ-END + +%description +C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp. + +%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.sh + +%build +%configure +%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}/libb2.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/blake2.h +%{_libdir}/libb2.a +%{_libdir}/libb2.la +%{_libdir}/libb2.so +%{_libdir}/pkgconfig/libb2.pc +%doc README.md + +%changelog +* Wed Apr 07 2021 Silvan Calarco 0.98.1-1mamba +- package created using the webbuild interface