90 lines
2.4 KiB
RPMSpec
90 lines
2.4 KiB
RPMSpec
Name: udns
|
|
Version: 0.6
|
|
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}
|
|
|
|
%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
|
|
* Fri Jul 26 2024 Automatic Build System <autodist@openmamba.org> 0.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Mar 10 2024 Automatic Build System <autodist@openmamba.org> 0.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-1mamba
|
|
- package created using the webbuild interface
|