On Sun, 2002-03-24 at 23:16, Geoffrey Lee wrote:
> --=-=-=
> Name        : gaim                         Relocations: (not relocateable)
> Version     : 0.54                              Vendor: MandrakeSoft

 Ahhh, well, I was hoping my new spec file would be used... Curious as
to why it's not?

Below is the spec file cut: 

%define name gaim
%define version 0.54
%define release 0.2mdk
%define prefix /usr
%define sysconfdir /etc

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

Summary: A GTK+ based multiprotocol instant messaging client

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 based multiprotocol instant messaging client
Group:          Applications/Internet
Requires:       gtk+ >= 1.2.5 libpanel-applet0 >= 1.4.0.6
BuildRequires:  gtk+-devel libpanel_applet0-devel esound-devel perl-devel 

%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-gnome --disable-artsc
%make
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi;
mkdir -p $RPM_BUILD_ROOT%{prefix}
%makeinstall bitsdata=$RPM_BUILD_ROOT/%{_datadir} 
bitssysconf=$RPM_BUILD_ROOT/%{_sysconfdir}
%make -C src mostlyclean-compile
%configure2_5x --enable-distrib --disable-artsc
%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
* Tue Mar 19 2002 Bryan Paxton <[EMAIL PROTECTED]> 0.54-0.2mdk
- Change summary for main && applet (Thx to David Walser)
- Add Requires libpanel-applet0 >= 1.4.0.6 for applet
- Add BuildRequires for applet

* Mon Mar 18 2002 Bryan Paxton <[EMAIL PROTECTED]> 0.54-0.1mdk
- Updated gaim
- Changed summary 
- Changed description
- Added sub package applet (gaim_applet)
- Use --disable-gnome --disable-artsc for compatibility reasons on %configure
  in main
- Remove smiley-patch (broken anyway)
- use %configure2_5x 
- Removed --disable-static from %configure2_5x (breaks gaim_applet)
- Define sysconfdir /etc


-- 
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