jwhois-vl.spec 3.1 KB

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