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