[lookup] initial import of approved package

Wes Hardaker hardaker at fedoraproject.org
Wed Nov 2 00:25:33 UTC 2011


commit e27396ec8669c32ff0852c26e3b65a0db0c15374
Author: Wes Hardaker <opensource at hardakers.net>
Date:   Tue Nov 1 17:25:28 2011 -0700

    initial import of approved package

 .gitignore                               |    1 +
 COPYING-from-dnssec-tools.txt            |   57 ++++++++++++++++++++
 lookup-1.11.p2-dont-double-install.patch |   10 ++++
 lookup.desktop                           |   13 +++++
 lookup.spec                              |   85 ++++++++++++++++++++++++++++++
 sources                                  |    1 +
 6 files changed, 167 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1007a47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lookup-1.11.p2.tar.gz
diff --git a/COPYING-from-dnssec-tools.txt b/COPYING-from-dnssec-tools.txt
new file mode 100644
index 0000000..6f6909f
--- /dev/null
+++ b/COPYING-from-dnssec-tools.txt
@@ -0,0 +1,57 @@
+Copyright (c) 2004-2011, SPARTA, Inc.
+All rights reserved.
+ 
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ 
+*  Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+ 
+*  Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ 
+*  Neither the name of SPARTA, Inc nor the names of its contributors may
+   be used to endorse or promote products derived from this software
+   without specific prior written permission.
+ 
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
+IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+Portions (timesub macro) use this license:
+Copyright (c) 1982, 1986, 1993
+     The Regents of the University of California.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+   may be used to endorse or promote products derived from this software
+   without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
diff --git a/lookup-1.11.p2-dont-double-install.patch b/lookup-1.11.p2-dont-double-install.patch
new file mode 100644
index 0000000..e6b26c7
--- /dev/null
+++ b/lookup-1.11.p2-dont-double-install.patch
@@ -0,0 +1,10 @@
+--- lookup-1.11.p2/src/src.pro.bak	2011-10-27 13:18:17.000000000 -0700
++++ lookup-1.11.p2/src/src.pro	2011-10-28 13:29:20.070232090 -0700
+@@ -30,7 +30,6 @@
+ # Default installation overwritten because qmake and debian both
+ # uses DESTDIR in different purposes
+ 
+-install.commands = -$(INSTALL_PROGRAM) $(TARGET) \"$(DESTDIR)\"$$MY_BIN_PATH$(QMAKE_TARGET)
+ install.depends = $(TARGET)
+ 
+ #
diff --git a/lookup.desktop b/lookup.desktop
new file mode 100644
index 0000000..7e14007
--- /dev/null
+++ b/lookup.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Name=Lookup
+Exec=lookup
+X-GNOME-FullName=DNS Lookup Utility
+Icon=lookup
+Comment=Lookup records in the DNS and validate their results
+StartupNotify=true
+Categories=Network;Utility;System;Qt;
+X-Desktop-File-Install-Version=0.16
diff --git a/lookup.spec b/lookup.spec
new file mode 100644
index 0000000..19610aa
--- /dev/null
+++ b/lookup.spec
@@ -0,0 +1,85 @@
+Summary: A graphical tool to search DNS for answers
+Name: lookup
+Version: 1.11.p2
+Release: 2%{?dist}
+License: BSD
+Group: Applications/Internet
+URL: http://www.dnssec-tools.org/
+Source0: https://www.dnssec-tools.org/download/%{name}-%{version}.tar.gz
+Source1: COPYING-from-dnssec-tools.txt
+Source2: lookup.desktop
+Patch0:  lookup-1.11.p2-dont-double-install.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: qt-devel
+BuildRequires: dnssec-tools-libs-devel >= 1.11
+BuildRequires: openssl-devel
+BuildRequires: desktop-file-utils
+
+%description
+The lookup utility allows you to query the DNS for answers.  It
+displays the results in a graphical tree structure, and checks the
+answers for validity and conformance with DNSSEC.  The results are
+color coded based on their DNSSEC status.
+
+%prep
+%setup -q 
+%patch0 -p1
+
+%build
+qmake-qt4 PREFIX=/usr
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+make install INSTALL_ROOT=%{buildroot}
+
+%{__rm} -f %{buildroot}%{_datadir}/pixmap/lookup.xpm
+%{__mkdir_p} %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/
+%{__install} -p -m 644 data/64x64/lookup.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/
+
+%{__rm} -f %{buildroot}%{_datadir}/applications/hildon/lookup.desktop
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
+
+%{__mkdir_p} %{buildroot}/%{_mandir}/man1
+%{__install} -p -D -m 644 man/lookup.1 %{buildroot}/%{_mandir}/man1/lookup.1
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%doc %{_mandir}/man1/*
+%{_bindir}/lookup
+%{_datadir}/icons/hicolor/*/apps/*.png
+%{_datadir}/applications/lookup.desktop
+
+%changelog
+* Fri Oct 28 2011 Wes Hardaker <wjhns174 at hardakers.net> - 1.11.p2-2
+- don't double-install the binary
+
+* Thu Oct 27 2011 Wes Hardaker <wjhns174 at hardakers.net> - 1.11.p2-1
+- updated to upstream version with man page and COPYING file
+
+* Fri Oct 21 2011 Wes Hardaker <wjhns174 at hardakers.net> - 1.11-3
+- don't require dnssec-tools-libs; it's auto-required
+
+* Fri Oct 21 2011 Wes Hardaker <wjhns174 at hardakers.net> - 1.11-2
+- added a patch to fix the validator-config.h file path
+
+* Fri Oct 21 2011 Wes Hardaker <wjhns174 at hardakers.net> - 1.11-1
+- Initial version for approval
+
+
diff --git a/sources b/sources
index e69de29..bcc7b54 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+49aab70889f9b7d146a44405278d9f1a  lookup-1.11.p2.tar.gz


More information about the scm-commits mailing list