Name: udns Version: 0.4 Release: 1mamba Summary: A stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.corpit.ru/mjt/udns.html Source: http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries. %package -n lib%{name} Group: System/Libraries Summary: Shared libraries for %{name} %description -n lib%{name} This package contains shared libraries for %{name}. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q %build ./configure %make shared staticlib sharedlib %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -D -m0755 libudns.so.0 %{buildroot}%{_libdir}/libudns.so.0 install -D -m0755 libudns.a %{buildroot}%{_libdir}/libudns.a install -D -m0644 udns.h %{buildroot}%{_includedir}/udns.h ln -sf libudns.so.0 %{buildroot}%{_libdir}/libudns.so for p in dnsget_s rblcheck_s ex-rdns_s; do install -D -m0755 $p %{buildroot}%{_bindir}/${p/_s} done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/dnsget %{_bindir}/ex-rdns %{_bindir}/rblcheck %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libudns.so.* %doc COPYING.LGPL %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/udns.h %{_libdir}/libudns.a %{_libdir}/libudns.so %doc NEWS TODO %changelog * Tue Mar 03 2015 Silvan Calarco 0.4-1mamba - package created using the webbuild interface