From f128c4f7ae405199d67b3a69d8a98a14a0a0f11c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:48:45 +0100 Subject: [PATCH] automatic port from devel-java [release 0.8-2mamba;Sun Dec 26 2010] --- README.md | 2 + libasyncns.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 libasyncns.spec diff --git a/README.md b/README.md index 7eac64c..d45a5ee 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libasyncns +A small and lightweight library that implements easy to use asynchronous wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + diff --git a/libasyncns.spec b/libasyncns.spec new file mode 100644 index 0000000..ea71f3a --- /dev/null +++ b/libasyncns.spec @@ -0,0 +1,103 @@ +Name: libasyncns +Version: 0.8 +Release: 2mamba +Summary: A library for executing name service queries asynchronously +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://0pointer.de/lennart/projects/libasyncns +Source: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: lynx +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +A small and lightweight library that implements easy to use asynchronous +wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + +This package contains libraries and headers files need for development. + +%package static +Group: Development/Libraries +Summary: Static libraries for %{name} +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description static +A small and lightweight library that implements easy to use asynchronous +wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + +This package contains static libraries need for development. + +%package docs +Group: Documentation +Summary: Documentation for %{name}. +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description docs +A small and lightweight library that implements easy to use asynchronous +wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + +Documentation for %{name}. + +%prep + +%setup -q + +%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}/libasyncns.so.* +%doc LICENSE README + +%files devel +%defattr(-,root,root) +%{_includedir}/asyncns.h +%{_libdir}/libasyncns.so +%{_libdir}/pkgconfig/libasyncns.pc + +%files static +%defattr(-,root,root) +%{_libdir}/libasyncns.*a + +%files docs +%defattr(-,root,root) +%dir %{_docdir}/libasyncns +%doc %{_docdir}/libasyncns/* + +%changelog +* Sun Dec 26 2010 Silvan Calarco 0.8-2mamba +- automatic port from devel-java + +* Wed Dec 08 2010 gil 0.8-1mamba +- update to 0.8 + +* Sun Nov 23 2008 gil 0.7-1mamba +- update to 0.7 + +* Thu Jul 31 2008 gil 0.4-1mamba +- package created by autospec