jwhois-vl.spec 4.6 KB

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