jwhois-vl.spec 4.5 KB

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