package created using the webbuild interface [release 0.4-1mamba;Tue Mar 03 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 18:46:30 +01:00
parent 346a5c9e51
commit b736793bd7
2 changed files with 86 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# udns
UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries.

84
udns.spec Normal file
View File

@ -0,0 +1,84 @@
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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.4-1mamba
- package created using the webbuild interface