[whois] 5.0.11 imported

Petr Pisar ppisar at fedoraproject.org
Mon Mar 7 10:25:03 UTC 2011


commit 1691f41644a8d188f7d65da7f621a94f31618841
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Mar 7 11:23:59 2011 +0100

    5.0.11 imported

 .gitignore |    1 +
 sources    |    1 +
 whois.spec |   87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5462fcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/whois_5.0.11.tar.gz
diff --git a/sources b/sources
index e69de29..fba173b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+942e2d90b0bcd7d22765c8e3344fe118  whois_5.0.11.tar.gz
diff --git a/whois.spec b/whois.spec
new file mode 100644
index 0000000..70c4d39
--- /dev/null
+++ b/whois.spec
@@ -0,0 +1,87 @@
+Name:       whois       
+Version:    5.0.11
+Release:    1%{?dist}
+Summary:    Improved WHOIS client
+
+Group:      Applications/Internet
+License:    GPLv2+
+URL:        http://www.linux.it/~md/software/
+Source0:    http://ftp.debian.org/debian/pool/main/w/%{name}/%{name}_%{version}.tar.gz
+
+BuildRequires:  gettext, libidn-devel, perl
+Requires(post): %{_sbindir}/update-alternatives
+Requires(postun): %{_sbindir}/update-alternatives
+
+
+%define genname whois
+%define alternative md
+%define cfgfile %{name}.conf
+
+%description
+Searches for an object in a RFC 3912 database.
+
+This version of the WHOIS client tries to guess the right server to ask for
+the specified object. If no guess can be made it will connect to
+whois.networksolutions.com for NIC handles or whois.arin.net for IPv4
+addresses and network names.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+# Enable NLS
+sed -i -e 's:#\(.*pos\):\1:' Makefile
+
+
+%build
+make CONFIG_FILE="%{_sysconfdir}/%{cfgfile}" HAVE_LIBIDN=1 HAVE_ICONV=1 \
+    CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
+
+
+%install
+# Omit mkpasswd
+make install-whois install-pos BASEDIR=$RPM_BUILD_ROOT 
+install -p -m644 -D %{cfgfile} $RPM_BUILD_ROOT%{_sysconfdir}/%{cfgfile}
+%find_lang %{name}
+
+# Rename to alternative names
+mv $RPM_BUILD_ROOT%{_bindir}/%{name}{,.%{alternative}}
+touch $RPM_BUILD_ROOT%{_bindir}/%{name}
+chmod 755 $RPM_BUILD_ROOT%{_bindir}/%{name}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/%{name}{,.%{alternative}}.1
+touch $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+
+
+%post
+%{_sbindir}/update-alternatives \
+    --install %{_bindir}/%{name} \
+        %{genname} %{_bindir}/%{name}.%{alternative} 30 \
+    --slave %{_mandir}/man1/%{name}.1.gz \
+        %{genname}-man %{_mandir}/man1/%{name}.%{alternative}.1.gz 
+
+%postun
+if [ $1 -eq 0 ] ; then
+    %{_sbindir}/update-alternatives --remove \
+        %{genname} %{_bindir}/%{name}.%{alternative}
+fi
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc COPYING README debian/changelog debian/copyright
+%config(noreplace) %{_sysconfdir}/%{cfgfile}
+%{_bindir}/%{name}.%{alternative}
+%ghost %verify(not md5 size mtime) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.%{alternative}.*
+%ghost %verify(not md5 size mtime) %{_mandir}/man1/%{name}.1.gz
+
+
+%changelog
+* Thu Mar 03 2011 Petr Pisar <ppisar at redhat.com> - 5.0.11-1
+- 5.0.11 bump
+
+* Mon Dec 06 2010 Petr Pisar <ppisar at redhat.com> - 5.0.10-1
+- 5.0.10 bump
+
+* Wed Sep 29 2010 Petr Pisar <ppisar at redhat.com> - 5.0.7-1
+- 5.0.7 imported
+


More information about the scm-commits mailing list