On Tue, 2002-03-19 at 00:47, civileme wrote:
> >
> Let's see the .spec file and your .rpmrc and .rpmmacros files (that is, 
> the ones in /home/evil7
> 
> Civileme
> 

%define name gaim
%define version 0.54
%define release 1mdk
%define prefix /usr

%define perl_version %(rpm -q --qf '%%{VERSION}' perl)

Summary: A Gnome client compatible with AOL's 'Instant Messenger'

Name: %{name}
Version: %{version}
Release: %{release}
Group: Networking/Instant messaging
BuildRequires: esound-devel gtk+-devel perl-devel
Requires: common-licenses, perl-base = %{perl_version}
License: GPL
Epoch: 1
Url: http://gaim.sourceforge.net
Source: http://download.sourceforge.net/gaim/%{name}-%{version}.tar.bz2
Source1: %{name}_icons.tar.bz2
Patch1: gaim-0.50-autoadd.patch.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
Gaim allows you to talk to anyone using AOL's
Instant Messenger service (you can sign up at http://www.aim.aol.com).

It uses the TOC version of the AOL protocol, so your buddy list is
stored on AOL's servers and can be retrieved from anywhere.

It contains many of the same features as AOL's IM client while at
the same time incorporating many new features.

Gaim also contains a multiple connection feature which consists of
protocol plugins.  These plugins allow you to use gaim to connect
to other chat services such as Yahoo!, ICQ, and IRC.

%package applet
Summary:        A Gnome client compatible with AOL's 'Instant Messenger'
Group:          Applications/Internet
Requires:       gtk+ >= 1.2.5

%description applet
Gaim allows you to talk to anyone using AOL's
Instant Messenger service (you can sign up at http://www.aim.aol.com).

It uses the TOC version of the AOL protocol, so your buddy list is
stored on AOL's servers and can be retrieved from anywhere.

It contains many of the same features as AOL's IM client while at
the same time incorporating many new features.

Gaim also contains a multiple connection feature which consists of
protocol plugins.  These plugins allow you to use gaim to connect
to other chat services such as Yahoo!, ICQ, and IRC.

The applet sits in your Gnome panel. It has all the same functionality
as the regular application but takes less desktop space.

%prep

%setup -q -n %name-%version
%patch1 -p1 -b .autoadd
bzcat %{SOURCE1} | tar xvf -

%build
%configure2_5x --disable-static -disable-gnome --disable-artsc
%make
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi;
mkdir -p $RPM_BUILD_ROOT%{prefix}
%make prefix=$RPM_BUILD_ROOT%{prefix} install
%make -C src mostlyclean-compile
%make -C src gaim_applet

%install
%makeinstall bitsdata=$RPM_BUILD_ROOT/%{_datadir} 
bitssysconf=$RPM_BUILD_ROOT/%{_sysconfdir}

#icons
mkdir -p $RPM_BUILD_ROOT/%{_miconsdir}
mkdir -p $RPM_BUILD_ROOT/%{_liconsdir}
cd $RPM_BUILD_DIR/%{name}-%{version}
install -m 644 %{name}_16.xpm $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.xpm
install -m 644 %{name}_32.xpm $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.xpm
install -m 644 %{name}_48.xpm $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.xpm

install -m755 licq2gaim.pl $RPM_BUILD_ROOT/%{_bindir}/licq2gaim

# Menu
mkdir -p $RPM_BUILD_ROOT/usr/lib/menu
cat >$RPM_BUILD_ROOT/usr/lib/menu/gaim <<EOF
?package(gaim): command="/usr/bin/gaim" needs="X11" \
icon="gaim.xpm" section="Networking/Instant messaging" \
title="Gaim" longtitle="AOL Instant Messenger clone"
EOF

%{find_lang} %{name}
%post
%{update_menus} 

%postun
%{clean_menus}  

%files -f %{name}.lang
%defattr(-,root,root)
%doc doc/*.txt doc/[A-Z][A-Z]*
%doc NEWS ABOUT-NLS AUTHORS README* TODO ChangeLog
%doc HACKING INSTALL
%attr(755,root,root) %{_bindir}/*
%{_libdir}/menu/*
%dir %{_libdir}/gaim/
%{_libdir}/gaim/*.so*
%{_mandir}/*/*
%{_datadir}/gnome/apps/*/*
%{_datadir}/pixmaps/*
%{_iconsdir}/%{name}.xpm
%{_miconsdir}/%{name}.xpm
%{_liconsdir}/%{name}.xpm

%files applet
%defattr(-,root,root)
%attr(755,root,root) %{prefix}/bin/gaim_applet
%doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS doc/FAQ README ChangeLog 
plugins/PERL-HOWTO HACKING
%{prefix}/lib/gaim/*
%{prefix}/share/locale/*/*/*
%{prefix}/share/pixmaps/gaim.xpm
%{prefix}/share/pixmaps/gaim/*
%{prefix}/share/gnome/apps/Internet/gaim.desktop
%{sysconfdir}/CORBA/servers/*
%{prefix}/share/applets/Network/*

%clean
rm -r $RPM_BUILD_ROOT

%changelog
* Mon Mar 18 2002 Bryan Paxton <[EMAIL PROTECTED]> 0.54-1mdk
- Updated gaim
- Changed summary 
- Changed description
- Added sub package applet
- Use --disable-gnome --disable-artsc for compatibility reasons on %configure
- Remove smiley-patch (broken anyway)
- use %configure2_5x 




-- 
Bryan Paxton
Public PGP key: http://www.deadhorse.net/bpaxton.gpg

Trying, the volition devoid of action, this is idleness. 
Doing, the volition replete in motion, a process.
Being that all things are impermanent, this process is constant.
If one realizes such, the process is in all actuality, one step.
A motion that can not be reversed, but may be halted.
Both ways does this sway.


Reply via email to