]>
Commit | Line | Data |
---|---|---|
a8716e76 | 1 | Summary: Graphical IRC (chat) client |
2 | Summary(fr): Client IRC (chat) avec interface graphique | |
3 | Summary(de): IRC-Client (Chat) mit grafischer Oberfläche | |
4 | Name: xchat-gnome | |
5 | Version: 0.3 | |
6 | Release: 0 | |
7 | Group: X11/Applications/Networking | |
8 | License: GPL | |
9 | URL: http://xchat.org | |
10 | Source0: http://navi.cx/releases/%{name}-%{version}.tar.bz2 | |
11 | # Source0-md5: c057f7fc07c039e876f68529b9994352 | |
12 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | BuildRequires: gettext-devel | |
14 | BuildRequires: gtk+2-devel | |
15 | Conflicts: xchat | |
16 | ||
17 | %description | |
18 | A GUI IRC client with DCC file transfers, C plugin interface, Perl and | |
19 | Python scripting capability, mIRC color, shaded transparency, tabbed | |
20 | channels and more. | |
21 | ||
22 | %package perl | |
23 | Summary: XChat Perl plugin | |
24 | Group: X11/Applications/Networking | |
25 | Requires: xchat-gnome = %{version} | |
26 | Requires: perl | |
27 | %description perl | |
28 | Provides Perl scripting capability to XChat. | |
29 | ||
30 | %package python | |
31 | Summary: XChat Python plugin | |
32 | Group: X11/Applications/Networking | |
33 | Requires: xchat-gnome = %{version} | |
34 | Requires: python2 >= 2.2.0 | |
35 | %description python | |
36 | Provides Python scripting capability to XChat. | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{name}-%{version} | |
40 | ||
41 | %build | |
42 | %configure --disable-dependency-tracking --enable-gnomefe --disable-tcl | |
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/pixmaps $RPM_BUILD_ROOT%{_libdir}/xchat/plugins | |
48 | %makeinstall | |
49 | mv -f $RPM_BUILD_ROOT%{_bindir}/xchat-gnome $RPM_BUILD_ROOT%{_bindir}/xchat | |
50 | strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/perl.so | |
51 | strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/python.so | |
52 | mv $RPM_BUILD_ROOT%{_libdir}/perl.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins | |
53 | mv $RPM_BUILD_ROOT%{_libdir}/python.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins | |
54 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | |
55 | mv $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/apps_xchat.schemas.in.in \ | |
56 | $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/apps_xchat.schemas | |
57 | ||
58 | %find_lang xchat-gnome | |
59 | ||
60 | %post | |
61 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | |
62 | gconftool-2 --makefile-install-rule \ | |
63 | %{_sysconfdir}/gconf/schemas/apps_xchat.schemas \ | |
64 | >/dev/null || : | |
65 | ||
66 | %files -f xchat-gnome.lang | |
67 | %defattr(644,root,root,755) | |
68 | %doc README ChangeLog faq.html COPYING plugins/plugin20.html plugins/perl/xchat2-perldocs.html | |
69 | %attr(755,root,root) %{_bindir}/xchat | |
70 | %{_datadir}/applications/xchat.desktop | |
71 | %{_datadir}/pixmaps/xchat.png | |
72 | %{_datadir}/xchat/* | |
73 | %{_sysconfdir}/gconf/schemas/apps_xchat.schemas | |
74 | %{_datadir}/applications/xchat-gnome.desktop | |
75 | %{_datadir}/pixmaps/xchat-gnome.png | |
76 | ||
77 | %files perl | |
78 | %defattr(644,root,root,755) | |
79 | %{_libdir}/xchat/plugins/perl.so | |
80 | ||
81 | %files python | |
82 | %defattr(644,root,root,755) | |
83 | %{_libdir}/xchat/plugins/python.so | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT |