commit 698730844b390b55f71ec8e5189c15148325f31a Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:54:54 2019 -0400 Package init diff --git a/libasyncns-0.8.tar.gz b/libasyncns-0.8.tar.gz new file mode 100644 index 0000000..8ab72ad 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 0000000..1852e4e --- /dev/null +++ b/libasyncns.spec @@ -0,0 +1,58 @@ +Name: libasyncns +Version: 0.8 +Release: 16 +Summary: A C library for Linux/Unix for executing name service queries +License: LGPLv2+ +Url: http://0pointer.de/lennart/projects/libasyncns/ +Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz + +BuildRequires: gcc + +%description +libasyncns is a C library for Linux/Unix for executing name service queries asynchronously. +It is an asynchronous wrapper around getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) +from libc and libresolv. + +%package devel +Summary: Development Files and Header files for %{name} +Requires: %{name} = %{version}-%{release} pkgconfig + +%description devel +This %{name}-devel package contains libraries and header files for developing +applications that want to make use of %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure +%make_build + +%install +%make_install +%delete_la + +%ldconfig_scriptlets + +%files +%defattr(-,root,root) +%doc LICENSE +%{_libdir}/libasyncns.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/asyncns.h +%{_libdir}/pkgconfig/libasyncns.pc +%{_libdir}/libasyncns.so +%{_libdir}/*.a + + +%files help +%doc README +%{_docdir}/libasyncns/* + +%changelog +* Mon Sep 2 2019 openEuler Buildteam - 0.8-16 +- Package init