jwhois-vl.spec 4.8 KB

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