[521] | 1 | Summary: Internet whois/nicname client. |
---|
| 2 | Summary(ja): whois クライアント |
---|
| 3 | Name: jwhois |
---|
| 4 | Version: 4.0 |
---|
[10810] | 5 | Release: 7%{?_dist_release} |
---|
[3755] | 6 | |
---|
| 7 | License: GPLv3 |
---|
| 8 | Group: Applications/Internet |
---|
[521] | 9 | URL: http://www.gnu.org/software/jwhois/ |
---|
[3755] | 10 | |
---|
[521] | 11 | Source: ftp://ftp.gnu.org/gnu/jwhois/jwhois-%{version}.tar.gz |
---|
| 12 | Source1: ftp://ftp.gnu.org/gnu/jwhois/jwhois-%{version}.tar.gz.sig |
---|
| 13 | |
---|
| 14 | # newest jwhois.conf can be obtained from: |
---|
[10810] | 15 | # https://github.com/jodrell/jwhois/tree/master/example |
---|
| 16 | # revision: cdad436 (28 Jun 2014) |
---|
| 17 | Source10: jwhois.conf |
---|
| 18 | # # http://savannah.gnu.org/cgi-bin/viewcvs/jwhois/jwhois/example/jwhois.conf |
---|
| 19 | # # revision: 1.143 |
---|
| 20 | # Source10: jwhois-r1.143.conf |
---|
[521] | 21 | |
---|
| 22 | Patch0: jwhois-4.0-connect.patch |
---|
| 23 | Patch1: jwhois-4.0-ipv6match.patch |
---|
[9674] | 24 | Patch2: jwhois-4.0-fclose.patch |
---|
| 25 | Patch3: jwhois-4.0-select.patch |
---|
[10810] | 26 | # Patch4: jwhois-4.0-conf-update.patch |
---|
[9674] | 27 | Patch5: jwhois-4.0-multi-homed.patch |
---|
| 28 | Patch6: jwhois-4.0-libidn2.patch |
---|
| 29 | Patch7: jwhois-4.0-idna.patch |
---|
| 30 | Patch8: jwhois-4.0-idnfail.patch |
---|
[10810] | 31 | Patch9: jwhois-4.0-conf-update-newgTLD.patch |
---|
[521] | 32 | |
---|
| 33 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
[3755] | 34 | BuildRequires: libidn-devel |
---|
[521] | 35 | Obsoletes: fwhois, whois |
---|
| 36 | Requires(post): /sbin/install-info |
---|
| 37 | Requires(preun): /sbin/install-info |
---|
| 38 | |
---|
[7285] | 39 | Vendor: Project Vine |
---|
| 40 | Distribution: Vine Linux |
---|
| 41 | |
---|
[521] | 42 | %description |
---|
| 43 | A whois client that accepts both traditional and finger-style queries. |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %prep |
---|
| 47 | %setup -q |
---|
[10810] | 48 | %{__cp} %{SOURCE10} example/ |
---|
| 49 | |
---|
[521] | 50 | %patch0 -p1 -b .connect |
---|
| 51 | %patch1 -p1 -b .ipv6match |
---|
[9674] | 52 | %patch2 -p1 -b .fclose |
---|
| 53 | %patch3 -p1 -b .select |
---|
[10810] | 54 | # %patch4 -p1 -b .conf-update |
---|
[9674] | 55 | %patch5 -p1 -b .multi-homed |
---|
| 56 | %patch6 -p1 -b .libidn2 |
---|
| 57 | %patch7 -p1 -b .idna |
---|
| 58 | %patch8 -p1 -b .idnfail |
---|
[10810] | 59 | # add several new gTLD |
---|
| 60 | # http://fukumoto-tech.serveblog.net/wiki/index.php?%BF%B7gTLD%A4%CEwhois%20%A5%B5%A1%BC%A5%D0%C5%D0%CF%BF%C6%E2%CD%C6%A4%CB%A4%C4%A4%A4%A4%C6 |
---|
| 61 | %patch9 -b .conf-update-newgTLD |
---|
[521] | 62 | |
---|
[9674] | 63 | iconv -f iso-8859-1 -t utf-8 < doc/sv/jwhois.1 > doc/sv/jwhois.1_ |
---|
| 64 | mv doc/sv/jwhois.1_ doc/sv/jwhois.1 |
---|
| 65 | |
---|
[521] | 66 | %build |
---|
| 67 | %configure --without-cache |
---|
[10810] | 68 | make %{?_smp_mflags} |
---|
[521] | 69 | |
---|
| 70 | %install |
---|
| 71 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
| 72 | %makeinstall |
---|
| 73 | |
---|
| 74 | # Force compression of the info page so that the %%post knows its name. |
---|
| 75 | #gzip $RPM_BUILD_ROOT/%{_infodir}/*.info* |
---|
| 76 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
---|
| 77 | %find_lang jwhois |
---|
| 78 | |
---|
| 79 | # Make "whois" jwhois. |
---|
| 80 | ln -sf jwhois $RPM_BUILD_ROOT/%{_bindir}/whois |
---|
| 81 | echo .so man1/jwhois.1 > $RPM_BUILD_ROOT/%{_mandir}/man1/whois.1 |
---|
| 82 | |
---|
| 83 | # install newest jwhois.conf |
---|
[10810] | 84 | # install -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/etc/jwhois.conf |
---|
[521] | 85 | |
---|
| 86 | |
---|
| 87 | %files -f %{name}.lang |
---|
| 88 | %defattr(-,root,root) |
---|
| 89 | %doc COPYING NEWS README TODO |
---|
| 90 | %{_bindir}/* |
---|
| 91 | %{_mandir}/man1/* |
---|
| 92 | %{_mandir}/*/man1/jwhois.1* |
---|
| 93 | %{_infodir}/jwhois.info.gz |
---|
| 94 | %config(noreplace) %{_sysconfdir}/jwhois.conf |
---|
| 95 | |
---|
| 96 | %post |
---|
| 97 | /sbin/install-info %{_infodir}/jwhois.info.gz %{_infodir}/dir |
---|
| 98 | |
---|
| 99 | %preun |
---|
| 100 | if [ $1 = 0 ]; then |
---|
| 101 | /sbin/install-info --delete %{_infodir}/jwhois.info.gz %{_infodir}/dir |
---|
| 102 | fi |
---|
| 103 | |
---|
| 104 | %clean |
---|
| 105 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | %changelog |
---|
[10810] | 109 | * Sat Nov 12 2016 Toshiaki Ara <ara_t@384.jp> 4.0-7 |
---|
| 110 | - update jwhois.conf from GitHub head |
---|
| 111 | - add several new gTLD |
---|
| 112 | |
---|
| 113 | * Sun Feb 28 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.0-6 |
---|
| 114 | - rebuilt current env |
---|
| 115 | - use smp flage in make section |
---|
| 116 | |
---|
[9674] | 117 | * Thu Jul 9 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0-5 |
---|
| 118 | - import patches from rawhide. |
---|
| 119 | |
---|
[7285] | 120 | * Fri Jan 4 2013 IWAI, Masaharu <iwai@alib.jp> 4.0-4 |
---|
| 121 | - update jwhois.conf (Source10) from cvs head (revision: 1.143) |
---|
| 122 | - add Vendor and Distribution tags |
---|
| 123 | |
---|
[3755] | 124 | * Sun May 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0-3 |
---|
| 125 | - rebuilt with current VineSeed |
---|
| 126 | |
---|
[521] | 127 | * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0-2 |
---|
| 128 | - spec in UTF-8 |
---|
| 129 | |
---|
| 130 | * Mon Apr 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-1 |
---|
| 131 | - update jwhois.conf from cvs head |
---|
| 132 | - add patch[01] from fedora development |
---|
| 133 | - Fix matching of cidr-ipv6 network addressed (patch1) |
---|
| 134 | - Fix connections to IPv4 servers (patch0) |
---|
| 135 | |
---|
| 136 | * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0-0vl1 |
---|
| 137 | - new upstream release |
---|
| 138 | - added Japanese summary |
---|
| 139 | |
---|
| 140 | * Sun Nov 13 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.2.3-0vl1 |
---|
| 141 | - upstream release |
---|
| 142 | - update jwhois.conf (Source10) |
---|
| 143 | |
---|
| 144 | * Thu Jan 23 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.0-4vl2 |
---|
| 145 | - added Source10 (in sync with .org transition) |
---|
| 146 | |
---|
| 147 | * Thu Jan 23 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.0-4vl1 |
---|
| 148 | - based on 3.2.0-4 from Rawhide and built for Vine Linux |
---|
| 149 | |
---|
| 150 | * Thu Dec 12 2002 Karsten Hopp <karsten@redhat.de> |
---|
| 151 | - Requires(post,preun) doesn't seem to work properly |
---|
| 152 | |
---|
| 153 | * Wed Nov 20 2002 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 154 | - require install-info |
---|
| 155 | |
---|
| 156 | * Thu Nov 14 2002 Nalin Dahyabhai <nalin@redhat.com> 3.2.0-2 |
---|
| 157 | - don't bail out of %%install if make install doesn't create an info top node |
---|
| 158 | |
---|
| 159 | * Mon Sep 30 2002 Nalin Dahyabhai <nalin@redhat.com> 3.2.0-1 |
---|
| 160 | - initial package |
---|