]> git.pld-linux.org Git - packages/BitchX.git/blob - BitchX.spec
- release 4
[packages/BitchX.git] / BitchX.spec
1 Summary:        Improved color IRC client with built-in scripts
2 Summary(pl):    Ulepszony, kolorowy klient IRC z wbudowanymi skryptami
3 Name:           BitchX
4 Version:        1.0c16
5 Release:        4
6 License:        GPL
7 Group:          Applications/Networking
8 Group(pl):      Aplikacje/Sieciowe
9 Source0:        ftp://ftp.bitchx.com/pub/BitchX/source/%{name}-%{version}.tar.gz
10 Source1:        BitchX-config.h
11 Source2:        ircII.servers
12 Source3:        BitchX.desktop
13 Patch0:         BitchX-configure.patch
14 Patch1:         BitchX-pld.patch
15 Patch2:         BitchX-iso2.patch
16 Icon:           BitchX.xpm
17 URL:            http://www.bitchx.com/
18 BuildRequires:  ncurses-devel >= 5.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description 
22 BitchX is a popular ANSI color ircII client by panasync. It
23 incorporates various features that would normally require a script.
24 It's interface is more colorful and cleaner than ircII.
25
26 %description -l pl 
27 BitchX jest popularnym klientem ircII. Jego interfejs jest bardziej
28 kolorowy i przejrzysty ni¿ interfejs standardowego kilienta ircII.
29
30 %prep
31 %setup -q -n %{name}
32 %patch0 -p1
33 %patch1 -p1
34 %patch2 -p1
35
36 %build
37 cp -f %{SOURCE1} include/config.h
38
39 autoconf
40
41 CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -w -I%{_includedir}/ncurses" LDFLAGS="-s"
42 export CFLAGS LDFLAGS
43 %configure \
44         --enable-ipv6
45
46 %{__make} all 
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT%{_datadir}/BitchX/{script,translation,help} \
52 $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/irc} \
53         $RPM_BUILD_ROOT{%{_applnkdir}/Network/IRC,%{_prefix}/X11R6/share/pixmaps}
54
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/irc
56 gzip -d doc/BitchX.1.gz
57 install doc/BitchX.1 $RPM_BUILD_ROOT%{_mandir}/man1
58 rm -f doc/{bitchx.1.gz,BitchX{.1,-macros.tar.gz}}
59
60 install source/BitchX $RPM_BUILD_ROOT%{_bindir}
61 install source/wserv $RPM_BUILD_ROOT%{_bindir}/wserv-bx
62 install source/scr-bx $RPM_BUILD_ROOT%{_bindir}
63
64 install BitchX.help $RPM_BUILD_ROOT%{_datadir}/BitchX
65
66 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Network/IRC
67 install doc/BitchX.png $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
68
69 cp -a bitchx-docs/* $RPM_BUILD_ROOT%{_datadir}/BitchX/help
70 cp -a translation $RPM_BUILD_ROOT%{_datadir}/BitchX
71 rm -rf $RPM_BUILD_ROOT%{_datadir}/BitchX/help/CVS
72
73 gzip -9nf doc/{functions,README.hooks,BitchX{-format,.faq,.doc,.bot}} \
74         BitchX.quit BitchX.reasons \
75         $RPM_BUILD_ROOT%{_mandir}/man1/*
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc doc/*.gz BitchX* 
83 %attr(755,root,root) %{_bindir}/*
84 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/irc/*
85 %{_datadir}/BitchX
86 %{_applnkdir}/Network/IRC/*
87 %{_prefix}/X11R6/share/pixmaps/*
88 %{_mandir}/man1/*
This page took 0.09446 seconds and 3 git commands to generate.