jwhois-vl.spec 3.9 KB

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