source: projects/specs/trunk/j/jwhois/jwhois-vl.spec @ 521

Revision 521, 3.0 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

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