diff --git a/libasyncns-0.8.tar.gz b/libasyncns-0.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8ab72ad3be2edde675735e6732c2781a344e0896 Binary files /dev/null and b/libasyncns-0.8.tar.gz differ diff --git a/libasyncns.spec b/libasyncns.spec new file mode 100644 index 0000000000000000000000000000000000000000..f88bdd5c5a883195f134763639fceb973587ec0e --- /dev/null +++ b/libasyncns.spec @@ -0,0 +1,51 @@ +%define anolis_release 1 +Name: libasyncns +Version: 0.8 +Release: %{anolis_release}%{?dist} +Summary: Asynchronous Name Service Library +Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz +License: LGPLv2+ +Url: http://0pointer.de/lennart/projects/libasyncns/ + +BuildRequires: gcc +BuildRequires: make +%description +A small and lightweight library that implements easy to use asynchronous +wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + +%package devel +Summary: Development Files for libasyncns Client Development +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Development Files for libasyncns Client Development + +%ldconfig_scriptlets + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \; +rm -rf $RPM_BUILD_ROOT/usr/share/doc/libasyncns/ + +%files +%doc README LICENSE +%{_libdir}/libasyncns.so.* + +%files devel +%{_includedir}/asyncns.h +%{_libdir}/libasyncns.so +%{_libdir}/pkgconfig/libasyncns.pc + +%changelog +* Sat Apr 02 2022 mgb01105731 - 0.8-1 +- Init form upstream version 0.8 +