%define name xchat %define version 1.8.4 %define release 2 %define group Applications/Internet %define prefix %{_prefix} %define bindir %{prefix}/bin %define datadir %{prefix}/share # ============================================================================== Name: %{name} Version: %{version} Release: %{release} Summary: Graphical IRC (chat) client Group: %{group} Copyright: GPL URL: http://www.xchat.org/ Source: http://www.xchat.org/files/src/1.8/%{name}-%{version}.tar.gz Patch0: %{name}-1.8.3-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description A GUI IRC client with DCC, plugin, Perl and Python scripting capability, mIRC color, shaded transparency, tabbed channels and more. %ifarch ia64 %define stdlib lib/ia64l32 %define stdlib64 lib/ia64l64 %define liblink ../../.. %define PKG64 %{name}-%{version}-ia64l64 %define DIRS . %{_builddir}/%{PKG64}/%{name}-%{version} %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %endif %prep %setup -q %patch0 -p2 -b .aix %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then %ifarch ia64 export CC64="$CC -q64" %endif export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi export CFLAGS=$RPM_OPT_FLAGS export LDFLAGS='-Wl,-brtl' libtoolize --force CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-perl \ --with-included-gettext --bindir=%{bindir} --datadir=%{datadir} make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix} mkdir -p $RPM_BUILD_ROOT%{bindir} mkdir -p $RPM_BUILD_ROOT%{datadir} make prefix=$RPM_BUILD_ROOT%{prefix} \ bindir=$RPM_BUILD_ROOT%{bindir} \ datadir=$RPM_BUILD_ROOT%{datadir} \ install-strip ( cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{prefix}/bin/* . cd - ) %files %defattr(-,root,root) %doc README FAQ COPYING ChangeLog %attr(755,root,root) %{bindir}/* %{datadir}/gnome/apps/Internet/xchat.desktop %{datadir}/pixmaps/xchat.png /usr/bin/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Feb 15 2002 Marc Stephenson - Rebuild with python 2.2 * Thu Oct 04 2001 Marc Stephenson - New version * Tue Aug 28 2001 Kevin Monroe - Initial Release