OBS-URL: https://build.opensuse.org/package/show/network/udns?expand=0&rev=11
89 lines
2.6 KiB
RPMSpec
89 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package udns
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: udns
|
|
Version: 0.6
|
|
Release: 0
|
|
Summary: DNS resolver tools
|
|
License: LGPL-2.1-or-later
|
|
Group: Productivity/Networking/DNS/Utilities
|
|
URL: https://www.corpit.ru/mjt/udns.html
|
|
Source: https://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz
|
|
|
|
%description
|
|
UDNS is a stub DNS resolver library with ability to perform both
|
|
synchronous and asynchronous DNS queries.
|
|
|
|
%package -n libudns0
|
|
Summary: DNS resolver library
|
|
Group: System/Libraries
|
|
|
|
%description -n libudns0
|
|
UDNS is a stub DNS resolver library with ability to perform both
|
|
synchronous and asynchronous DNS queries.
|
|
|
|
%package devel
|
|
Summary: Development files for libudns
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libudns0 = %{version}
|
|
|
|
%description devel
|
|
UDNS is a stub DNS resolver library with ability to perform both
|
|
synchronous and asynchronous DNS queries.
|
|
|
|
This package contains header files and documentation needed for writing
|
|
or compiling programs that use UDNS.
|
|
|
|
%prep
|
|
%autosetup -p0
|
|
|
|
%build
|
|
# not an autotools configure
|
|
./configure --enable-ipv6
|
|
make %{?_smp_mflags} shared
|
|
|
|
%install
|
|
mkdir -p %{buildroot}{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man{1,3}}
|
|
install -m755 libudns.so.0 %{buildroot}%{_libdir}
|
|
ln -s libudns.so.0 %{buildroot}%{_libdir}/libudns.so
|
|
install -m644 udns.h %{buildroot}%{_includedir}
|
|
for f in *_s; do install -m 755 $f %{buildroot}%{_bindir}/${f%%_s}; done
|
|
for f in *.[13]; do install -m644 $f %{buildroot}%{_mandir}/man${f#*.}; done
|
|
|
|
%post -n libudns0 -p /sbin/ldconfig
|
|
%postun -n libudns0 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc NEWS NOTES TODO
|
|
%license COPYING.LGPL
|
|
%{_bindir}/dnsget
|
|
%{_bindir}/rblcheck
|
|
%{_bindir}/ex-rdns
|
|
%{_mandir}/man1/dnsget.1%{?ext_man}
|
|
%{_mandir}/man1/rblcheck.1%{?ext_man}
|
|
|
|
%files -n libudns0
|
|
%{_libdir}/libudns.so.0
|
|
|
|
%files devel
|
|
%{_libdir}/libudns.so
|
|
%{_includedir}/udns.h
|
|
%{_mandir}/man3/udns.3%{?ext_man}
|
|
|
|
%changelog
|