jwhois-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Summary: Internet whois/nicname client.
  2. Summary(ja): whois クライアント
  3. Name: jwhois
  4. Version: 4.0
  5. Release: 2%{?_dist_release}
  6. URL: http://www.gnu.org/software/jwhois/
  7. Source: ftp://ftp.gnu.org/gnu/jwhois/jwhois-%{version}.tar.gz
  8. Source1: ftp://ftp.gnu.org/gnu/jwhois/jwhois-%{version}.tar.gz.sig
  9. # newest jwhois.conf can be obtained from:
  10. # http://savannah.gnu.org/cgi-bin/viewcvs/jwhois/jwhois/example/jwhois.conf
  11. Source10: jwhois.conf
  12. Patch0: jwhois-4.0-connect.patch
  13. Patch1: jwhois-4.0-ipv6match.patch
  14. License: GPL
  15. Group: Applications/Internet
  16. Buildroot: %{_tmppath}/%{name}-%{version}-root
  17. Obsoletes: fwhois, whois
  18. Requires(post): /sbin/install-info
  19. Requires(preun): /sbin/install-info
  20. %description
  21. A whois client that accepts both traditional and finger-style queries.
  22. %prep
  23. %setup -q
  24. %patch0 -p1 -b .connect
  25. %patch1 -p1 -b .ipv6match
  26. %build
  27. %configure --without-cache
  28. make
  29. %install
  30. [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
  31. %makeinstall
  32. # Force compression of the info page so that the %%post knows its name.
  33. #gzip $RPM_BUILD_ROOT/%{_infodir}/*.info*
  34. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  35. %find_lang jwhois
  36. # Make "whois" jwhois.
  37. ln -sf jwhois $RPM_BUILD_ROOT/%{_bindir}/whois
  38. echo .so man1/jwhois.1 > $RPM_BUILD_ROOT/%{_mandir}/man1/whois.1
  39. # install newest jwhois.conf
  40. install -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/etc/jwhois.conf
  41. %files -f %{name}.lang
  42. %defattr(-,root,root)
  43. %doc COPYING NEWS README TODO
  44. %{_bindir}/*
  45. %{_mandir}/man1/*
  46. %{_mandir}/*/man1/jwhois.1*
  47. %{_infodir}/jwhois.info.gz
  48. %config(noreplace) %{_sysconfdir}/jwhois.conf
  49. %post
  50. /sbin/install-info %{_infodir}/jwhois.info.gz %{_infodir}/dir
  51. %preun
  52. if [ $1 = 0 ]; then
  53. /sbin/install-info --delete %{_infodir}/jwhois.info.gz %{_infodir}/dir
  54. fi
  55. %clean
  56. [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
  57. %changelog
  58. * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0-2
  59. - spec in UTF-8
  60. * Mon Apr 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-1
  61. - update jwhois.conf from cvs head
  62. - add patch[01] from fedora development
  63. - Fix matching of cidr-ipv6 network addressed (patch1)
  64. - Fix connections to IPv4 servers (patch0)
  65. * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0-0vl1
  66. - new upstream release
  67. - added Japanese summary
  68. * Sun Nov 13 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.2.3-0vl1
  69. - upstream release
  70. - update jwhois.conf (Source10)
  71. * Thu Jan 23 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.0-4vl2
  72. - added Source10 (in sync with .org transition)
  73. * Thu Jan 23 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.0-4vl1
  74. - based on 3.2.0-4 from Rawhide and built for Vine Linux
  75. * Thu Dec 12 2002 Karsten Hopp <karsten@redhat.de>
  76. - Requires(post,preun) doesn't seem to work properly
  77. * Wed Nov 20 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  78. - require install-info
  79. * Thu Nov 14 2002 Nalin Dahyabhai <nalin@redhat.com> 3.2.0-2
  80. - don't bail out of %%install if make install doesn't create an info top node
  81. * Mon Sep 30 2002 Nalin Dahyabhai <nalin@redhat.com> 3.2.0-1
  82. - initial package