[packages/ldns] - add -tools subpackage with example tools - rel 2

adwol adwol at pld-linux.org
Fri Jul 20 16:28:49 CEST 2018


commit ac1def3339098fad3f2588eefa607529141ba27e
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Fri Jul 20 16:27:00 2018 +0200

    - add -tools subpackage with example tools
    - rel 2

 ldns.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 83 insertions(+), 1 deletion(-)
---
diff --git a/ldns.spec b/ldns.spec
index 449cad2..97be78e 100644
--- a/ldns.spec
+++ b/ldns.spec
@@ -9,7 +9,7 @@ Summary:	ldns - a library with the aim to simplify DNS programing in C
 Summary(pl.UTF-8):	ldns - biblioteka mająca na celu uproszczenie programowania DNS w C
 Name:		ldns
 Version:	1.7.0
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries
 Source0:	http://www.nlnetlabs.nl/downloads/ldns/%{name}-%{version}.tar.gz
@@ -98,6 +98,21 @@ specifically designed to be used with DNSSEC.
 drill to narzędzie do pobierania dowolnych informacji z DNS. Jest
 zaprojektowane szczególnie z myślą o użyciu z DNSSEC.
 
+%package tools
+Summary:	Example tools for ldns.
+Summary(pl.UTF-8):	Przykładowe narzędzie wykorzystujące ldns.
+Group:		Applications/Network
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+These tools are examples of ldns usage. They are not meant for
+production systems and will not be supported as such.
+
+%description tools -l pl.UTF-8
+Te narzędzia są przykładami użycia biblioteki ldns.
+Nie są przeznaczone do produkcyjnego użycia i jako takie
+nie będa wspierane.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -116,6 +131,15 @@ zaprojektowane szczególnie z myślą o użyciu z DNSSEC.
 %{__make}
 %{__make} doc
 
+cd examples
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%configure
+%{__make}
+cd ..
+
 # change symlinks into .so redirects
 cd doc/man/man3
 for f in `find . -type l`; do
@@ -140,6 +164,11 @@ rm -rf $RPM_BUILD_ROOT
 %py_postclean
 %endif
 
+cd examples
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+cd ..
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -180,3 +209,56 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/drill
 %{_mandir}/man1/drill.1*
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ldns-chaos
+%attr(755,root,root) %{_bindir}/ldns-compare-zones
+%attr(755,root,root) %{_bindir}/ldns-dane
+%attr(755,root,root) %{_bindir}/ldns-dpa
+%attr(755,root,root) %{_bindir}/ldns-gen-zone
+%attr(755,root,root) %{_bindir}/ldns-key2ds
+%attr(755,root,root) %{_bindir}/ldns-keyfetcher
+%attr(755,root,root) %{_bindir}/ldns-keygen
+%attr(755,root,root) %{_bindir}/ldns-mx
+%attr(755,root,root) %{_bindir}/ldns-notify
+%attr(755,root,root) %{_bindir}/ldns-nsec3-hash
+%attr(755,root,root) %{_bindir}/ldns-read-zone
+%attr(755,root,root) %{_bindir}/ldns-resolver
+%attr(755,root,root) %{_bindir}/ldns-revoke
+%attr(755,root,root) %{_bindir}/ldns-rrsig
+%attr(755,root,root) %{_bindir}/ldns-signzone
+%attr(755,root,root) %{_bindir}/ldns-test-edns
+%attr(755,root,root) %{_bindir}/ldns-testns
+%attr(755,root,root) %{_bindir}/ldns-update
+%attr(755,root,root) %{_bindir}/ldns-verify-zone
+%attr(755,root,root) %{_bindir}/ldns-version
+%attr(755,root,root) %{_bindir}/ldns-walk
+%attr(755,root,root) %{_bindir}/ldns-zcat
+%attr(755,root,root) %{_bindir}/ldns-zsplit
+%attr(755,root,root) %{_bindir}/ldnsd
+%{_mandir}/man1/ldns-chaos.1*
+%{_mandir}/man1/ldns-compare-zones.1*
+%{_mandir}/man1/ldns-dane.1*
+%{_mandir}/man1/ldns-dpa.1*
+%{_mandir}/man1/ldns-gen-zone.1*
+%{_mandir}/man1/ldns-key2ds.1*
+%{_mandir}/man1/ldns-keyfetcher.1*
+%{_mandir}/man1/ldns-keygen.1*
+%{_mandir}/man1/ldns-mx.1*
+%{_mandir}/man1/ldns-notify.1*
+%{_mandir}/man1/ldns-nsec3-hash.1*
+%{_mandir}/man1/ldns-read-zone.1*
+%{_mandir}/man1/ldns-resolver.1*
+%{_mandir}/man1/ldns-revoke.1*
+%{_mandir}/man1/ldns-rrsig.1*
+%{_mandir}/man1/ldns-signzone.1*
+%{_mandir}/man1/ldns-test-edns.1*
+%{_mandir}/man1/ldns-testns.1*
+%{_mandir}/man1/ldns-update.1*
+%{_mandir}/man1/ldns-verify-zone.1*
+%{_mandir}/man1/ldns-version.1*
+%{_mandir}/man1/ldns-walk.1*
+%{_mandir}/man1/ldns-zcat.1*
+%{_mandir}/man1/ldns-zsplit.1*
+%{_mandir}/man1/ldnsd.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ldns.git/commitdiff/ac1def3339098fad3f2588eefa607529141ba27e



More information about the pld-cvs-commit mailing list