]> git.pld-linux.org Git - packages/BitchX.git/blob - BitchX.spec
- spec adapterized,
[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.0c15
5 Release:        2       
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 Icon:           BitchX.xpm
16 URL:            http://www.bitchx.com/
17 BuildRequires:  ncurses-devel >= 5.0
18 BuildRoot:      /tmp/%{name}-%{version}-root
19
20 %define         _applnkdir      /usr/X11R6/share/applnk
21  
22 %description 
23 BitchX is a popular ANSI color ircII client by panasync. It incorporates
24 various features that would normally require a script. It's interface is
25 more colorful and cleaner than ircII.
26
27 %description -l pl 
28 BitchX jest popularnym klientem ircII. Jego interfejs jest bardziej
29 kolorowy i przejrzysty ni¿ interfejs standardowego kilienta ircII.
30
31 %prep
32 %setup -q -n %{name}
33 %patch0 -p1
34 %patch1 -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,/etc/irc} \
53         $RPM_BUILD_ROOT{%{_applnkdir}/Networking/IRC,/usr/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}/Networking/IRC
67 install doc/BitchX.png $RPM_BUILD_ROOT/usr/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}/Networking/IRC/*
87 /usr/X11R6/share/pixmaps/*
88 %{_mandir}/man1/*
This page took 0.046722 seconds and 4 git commands to generate.