3 %bcond_without static_libs # don't build static libraries
4 %bcond_without python # Python modules
6 Summary: ldns - a library with the aim to simplify DNS programing in C
7 Summary(pl.UTF-8): ldns - biblioteka mająca na celu uproszczenie programowania DNS w C
13 Source0: http://www.nlnetlabs.nl/downloads/ldns/%{name}-%{version}.tar.gz
14 # Source0-md5: 9ab2b402127cf24dffefaacbb727cad7
15 URL: http://www.nlnetlabs.nl/ldns/
16 BuildRequires: autoconf >= 2.56
17 BuildRequires: automake
18 BuildRequires: doxygen
19 BuildRequires: libtool
20 BuildRequires: openssl-devel >= 1.0.0
22 BuildRequires: python-devel >= 1:2.4.0
23 BuildRequires: rpmbuild(macros) >= 1.219
24 BuildRequires: swig-python
26 Requires: openssl >= 1.0.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 ldns is a library with the aim to simplify DNS programing in C. It is
31 heavily based upon the Net::DNS module from perl.
33 %description -l pl.UTF-8
34 ldns jest biblioteka mającą na celu uproszczenie programowania
35 związanego z usługą DNS w C. Jest w dużym stopniu oparta na module
39 Summary: Header files for ldns library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ldns
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: openssl-devel >= 1.0.0
46 Header files for ldns library.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki ldns.
52 Summary: Static ldns library
53 Summary(pl.UTF-8): Statyczna biblioteka ldns
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
60 %description static -l pl.UTF-8
61 Statyczna biblioteka ldns.
63 %package -n python-ldns
64 Summary: Python interface do ldns library
65 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki ldns
66 Group: Libraries/Python
67 Requires: %{name} = %{version}-%{release}
69 %description -n python-ldns
70 Python interface do ldns library.
72 %description -n python-ldns -l pl.UTF-8
73 Pythonowy interfejs do biblioteki ldns.
76 Summary: drill - tool to get all sorts of information out of the DNS(SEC)
77 Summary(pl.UTF-8): drill - narzędzie do pobierania dowolnych informacji z DNS(SEC)
78 Group: Applications/Network
79 Requires: %{name} = %{version}-%{release}
82 drill is a tool to get all sorts of information out of the DNS. It is
83 specifically designed to be used with DNSSEC.
85 %description -n drill -l pl.UTF-8
86 drill to narzędzie do pobierania dowolnych informacji z DNS. Jest
87 zaprojektowane szczególnie z myślą o użyciu z DNSSEC.
98 --enable-static%{!?with_static_libs:=no} \
100 %{?with_python:--with-pyldns}
104 # change symlinks into .so redirects
106 for f in `find . -type l`; do
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
119 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_ldns.la
120 %if %{with static_libs}
121 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_ldns.a
123 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
124 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
135 %defattr(644,root,root,755)
136 %doc Changelog LICENSE README
137 %attr(755,root,root) %{_libdir}/libldns.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libldns.so.1
141 %defattr(644,root,root,755)
142 %doc doc/{*.html,dns-lib-implementations,function_manpages,ldns_manpages,CodingStyle}
143 %attr(755,root,root) %{_bindir}/ldns-config
144 %attr(755,root,root) %{_libdir}/libldns.so
145 %{_libdir}/libldns.la
146 %{_includedir}/%{name}
147 %{_mandir}/man1/ldns-config.1*
148 %{_mandir}/man3/ldns_*.3*
150 %if %{with static_libs}
152 %defattr(644,root,root,755)
157 %files -n python-ldns
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{py_sitedir}/_ldns.so*
160 %{py_sitedir}/ldns.py[co]
161 %{py_sitedir}/ldnsx.py[co]
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/drill
167 %{_mandir}/man1/drill.1*