]> git.pld-linux.org Git - packages/BitchX.git/blob - BitchX.spec
559e8c58777d78fb4f0e1d48351734cd06ee89fa
[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.0c17
5 Release:        5
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:        %{name}-config.h
11 Source2:        ircII.servers
12 Source3:        %{name}.desktop
13 Source4:        %{name}-bxglobal.script
14 Patch0:         %{name}-configure.patch
15 Patch1:         %{name}-pld.patch
16 Patch2:         %{name}-plugindir.patch
17 Icon:           BitchX.xpm
18 URL:            http://www.bitchx.com/
19 BuildRequires:  ncurses-devel >= 5.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description 
23 BitchX is a popular ANSI color ircII client by panasync. It
24 incorporates various features that would normally require a script.
25 It's interface is 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 find . -type d -name 'CVS'| xargs rm -rf
34 %patch0 -p1
35 %patch1 -p1
36 %patch2 -p1
37
38 %build
39 cp -f %{SOURCE1} include/config.h
40
41 autoconf
42
43 CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -w -I%{_includedir}/ncurses"
44 export CFLAGS
45 %configure \
46         --enable-ipv6 \
47         --with-plugins \
48         --with-plugindir=%{_libdir}/BitchX
49
50 %{__make} 
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}/X11R6/share/pixmaps,%{_libdir}/BitchX,%{_applnkdir}/Network/IRC,%{_sysconfdir}/irc,%{_datadir}/BitchX/{script,translation,help},%{_mandir}/man1}
56
57 install source/{BitchX,scr-bx,wserv} \
58                         $RPM_BUILD_ROOT%{_bindir}
59
60 install doc/BitchX.png  $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
61
62 install BitchX.{ircnames,quit,reasons,help} \
63                         $RPM_BUILD_ROOT%{_datadir}/BitchX
64
65 install script/{bxtcl.tcl,example-.bitchxrc,file.tcl,fserve+vfs.tar.gz,menu.bx,query.bx} \
66                         $RPM_BUILD_ROOT%{_datadir}/BitchX/script
67
68 install %{SOURCE2}      $RPM_BUILD_ROOT%{_sysconfdir}/irc/ircII.servers
69 install %{SOURCE3}      $RPM_BUILD_ROOT%{_applnkdir}/Network/IRC/BitchX.desktop
70 install %{SOURCE4}      $RPM_BUILD_ROOT%{_datadir}/BitchX/script/bxglobal
71
72 install translation/*   $RPM_BUILD_ROOT%{_datadir}/BitchX/translation
73
74 cp -pr bitchx-docs/[1-9]* bitchx-docs/{commands,functions,out,README_FIRST} \
75                         $RPM_BUILD_ROOT%{_datadir}/BitchX/help
76
77 install dll/*.so        $RPM_BUILD_ROOT%{_libdir}/BitchX
78
79 install doc/BitchX.1    $RPM_BUILD_ROOT%{_mandir}/man1
80
81 gzip -9nf doc/BitchX{-format,-idea,.bot,.doc,.faq,.tcl} IPv6-support 
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc doc/*.gz *.gz 
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_libdir}/BitchX
91 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/irc/*
92 %{_datadir}/BitchX
93 %{_applnkdir}/Network/IRC/*
94 %{_prefix}/X11R6/share/pixmaps/*
95 %{_mandir}/man1/*
This page took 0.0465 seconds and 3 git commands to generate.