1
## RPM spec file designed for Fedora Core 8,9 ##
3
Summary: Graphical IRC (chat) client
4
Summary(fr): Client IRC (chat) avec interface graphique
5
Summary(de): IRC-Client (Chat) mit grafischer Oberfläche
10
Group: Applications/Internet
13
Source: http://xchat.org/files/source/2.8/xchat-%{version}.tar.bz2
14
Buildroot: %{_tmppath}/%{name}-%{version}-root
15
Requires: gtk2 openssl
16
BuildRequires: gettext openssl-devel gtk2-devel dbus-devel
19
A GUI IRC client with DCC file transfers, C plugin interface, Perl
20
and Python scripting capability, mIRC color, shaded transparency,
21
tabbed channels and more.
24
Summary: XChat Perl plugin
25
Group: Applications/Internet
26
Requires: xchat >= 2.0.9
1
%define _default_patch_fuzz 2
2
%define gconf_version 2.14
4
Summary: A popular and easy to use graphical IRC (chat) client
9
Group: Applications/Internet
11
URL: http://www.xchat.org
12
Source: http://www.xchat.org/files/source/2.8/xchat-%{version}.tar.bz2
13
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
# Patches 0-9 reserved for official xchat.org patches
17
BuildRequires: perl perl(ExtUtils::Embed) python-devel openssl-devel pkgconfig, tcl-devel
18
BuildRequires: GConf2-devel
19
BuildRequires: dbus-devel >= 0.60, dbus-glib-devel >= 0.60
20
BuildRequires: glib2-devel >= 2.10.0, gtk2-devel >= 2.10.0, bison >= 1.35
21
BuildRequires: gettext /bin/sed
22
BuildRequires: libtool
23
BuildRequires: libsexy-devel
24
BuildRequires: desktop-file-utils >= 0.10
26
Requires(post): GConf2 >= %{gconf_version}
27
Requires(preun): GConf2 >= %{gconf_version}
27
29
# Ensure that a compatible libperl is installed
28
30
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
30
Provides Perl scripting capability to XChat.
33
Summary: XChat Python plugin
34
Group: Applications/Internet
35
Requires: xchat >= 2.0.9
36
Requires: python >= 2.3.0
38
Provides Python scripting capability to XChat.
32
Provides: xchat-perl = %{epoch}:%{version}-%{release}
33
Obsoletes: xchat-perl < %{epoch}:%{version}-%{release}
34
Provides: xchat-python = %{epoch}:%{version}-%{release}
35
Obsoletes: xchat-python < %{epoch}:%{version}-%{release}
38
X-Chat is an easy to use graphical IRC chat client for the X Window System.
39
It allows you to join multiple IRC channels (chat rooms) at the same time,
40
talk publicly, private one-on-one conversations etc. Even file transfers
43
This includes the plugins to run the Perl and Python scripts.
41
Summary: XChat TCL plugin
46
Summary: Tcl script plugin for X-Chat
42
47
Group: Applications/Internet
43
Requires: xchat >= 2.0.0
48
Requires: %{name} = %{epoch}:%{version}-%{release}
46
Provides TCL scripting capability to XChat.
50
This package contains the X-Chat plugin providing the Tcl scripting interface.
52
%configure --disable-dependency-tracking
56
# Remove CVS files from source dirs so they're not installed into doc dirs.
57
find . -name CVS -type d | xargs rm -rf
59
export CFLAGS="$RPM_OPT_FLAGS $(perl -MExtUtils::Embed -e ccopts)"
60
export LDFLAGS=$(perl -MExtUtils::Embed -e ldopts)
62
%configure --disable-textfe \
66
--enable-tcl=%{_libdir} \
68
--enable-spell=libsexy \
71
# gtkspell breaks Input Method commit with ENTER
56
rm -rf $RPM_BUILD_ROOT
57
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/pixmaps $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
59
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
60
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/perl.so
61
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/python.so
62
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/tcl.so
63
mv $RPM_BUILD_ROOT%{_libdir}/perl.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
64
mv $RPM_BUILD_ROOT%{_libdir}/python.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
65
mv $RPM_BUILD_ROOT%{_libdir}/tcl.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
66
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
77
%{__rm} -rf $RPM_BUILD_ROOT
78
%{__make} install DESTDIR=$RPM_BUILD_ROOT GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
80
# Get rid of libtool archives
81
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/xchat/plugins/*.la
83
# Install the .desktop file properly
84
%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/applications/xchat.desktop
85
desktop-file-install --vendor="" \
86
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
87
--add-category=IRCClient \
88
--add-category=GTK xchat.desktop
92
# do not Provide plugins .so
93
%define _use_internal_dependency_generator 0
94
%{__cat} << \EOF > %{name}.prov
96
%{__grep} -v %{_docdir} - | %{__find_provides} $* \
97
| %{__sed} '/\.so\(()(64bit)\)\?$/d'
99
%define __find_provides %{_builddir}/%{name}-%{version}/%{name}.prov
100
%{__chmod} +x %{__find_provides}
72
105
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
73
SCHEMAS="apps_xchat_url_handler.schemas"
75
gconftool-2 --makefile-install-rule /etc/gconf/schemas/$S > /dev/null
77
unset GCONF_CONFIG_SOURCE
106
gconftool-2 --makefile-install-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
110
if [ "$1" -gt 1 ]; then
111
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
112
gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
116
if [ "$1" -eq 0 ]; then
117
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
118
gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
122
%{__rm} -rf $RPM_BUILD_ROOT
79
124
%files -f %{name}.lang
80
125
%defattr(-,root,root)
81
%doc README ChangeLog faq.html plugins/plugin20.html plugins/perl/xchat2-perldocs.html
126
%doc README ChangeLog
127
%doc plugins/plugin20.html plugins/perl/xchat2-perl.html
129
%dir %{_libdir}/xchat
130
%dir %{_libdir}/xchat/plugins
131
%{_libdir}/xchat/plugins/perl.so
132
%{_libdir}/xchat/plugins/python.so
83
133
%{_datadir}/applications/xchat.desktop
84
%{_datadir}/pixmaps/xchat.png
134
%{_datadir}/pixmaps/*
85
135
%{_sysconfdir}/gconf/schemas/apps_xchat_url_handler.schemas
88
%{_libdir}/xchat/plugins/perl.so
91
%{_libdir}/xchat/plugins/python.so
136
%{_datadir}/dbus-1/services/org.xchat.service.service
139
%defattr(-,root,root)
94
140
%{_libdir}/xchat/plugins/tcl.so
97
rm -rf $RPM_BUILD_ROOT