cvsdist c5a3de
%define no_apm_archs alpha ia64 s390 s390x sparc sparc64 ppc ppc64 x86_64
cvsdist 1d3b46
cvsdist c5a3de
%define glib2_version 2.2.0
cvsdist c5a3de
%define pango_version 1.2.0
cvsdist c5a3de
%define gtk2_version 2.2.0
cvsdist 6c4d74
%define libgnomeui_version 2.3.0
cvsdist fad46b
%define gnome_panel_version 2.5.0
cvsdist fad46b
%define libgtop2_version 2.5.0
cvsdist c5a3de
%define gail_version 1.2.0
cvsdist 6c4d74
%define libbonoboui_version 2.3.0
cvsdist cd62d7
cvsdist cd62d7
%define po_package gnome-applets-2.0
cvsdist bdd79d
cvsdist bdd79d
Summary:        Small applications for the GNOME panel.
cvsdist e43fd6
Name:     	gnome-applets
cvsdist fad46b
Version: 	2.5.4
cvsdist 6c4d74
Release:        1
cvsdist 1d3b46
Epoch:          1
cvsdist 1d3b46
License:	GPL
cvsdist bdd79d
Group:          User Interface/Desktops
cvsdist c5a3de
Source: 	ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.1/%{name}-%{version}.tar.bz2
cvsdist 1d3b46
URL:		http://www.gnome.org/
cvsdist e43fd6
cvsdist e43fd6
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
cvsdist e43fd6
cvsdist bdd79d
Prereq:         scrollkeeper >= 0.1.4
cvsdist 1d3b46
cvsdist bdd79d
BuildRequires:  glib2-devel >= %{glib2_version}
cvsdist bdd79d
BuildRequires:  gtk2-devel >= %{gtk2_version}
cvsdist bdd79d
BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
cvsdist bdd79d
BuildRequires:  gnome-panel >= %{gnome_panel_version}
cvsdist bdd79d
BuildRequires:  libgtop2-devel >= %{libgtop2_version}
cvsdist cd62d7
BuildRequires:  pango-devel >= %{pango_version}
cvsdist cd62d7
BuildRequires:  gail-devel >= %{gail_version}
cvsdist fad46b
BuildRequires:  /usr/bin/automake
cvsdist fad46b
BuildRequires:  libxklavier
cvsdist c5a3de
BuildRequires:  libbonoboui-devel >= %{libbonoboui_version}
cvsdist 6c4d74
%ifnarch %{no_apm_archs}
cvsdist 6c4d74
BuildRequires:  apmd
cvsdist 6c4d74
%endif
cvsdist 1d3b46
cvsdist bdd79d
Requires:	gnome-panel >= %{gnome_panel_version}
cvsdist fad46b
Requires:       libxklavier
cvsdist 12f838
cvsdist cd62d7
Obsoletes:      battstat_applet
cvsdist cd62d7
cvsdist 6c4d74
Source2: omf.make
cvsdist 6c4d74
cvsdist 6c4d74
Patch1: gnome-applets-2.3.6-ppp-command.patch
cvsdist cd6177
# Register ourself globally so that gnome-cd can tell if we are
cvsdist cd6177
# running or not.
cvsdist 6c4d74
Patch2: gnome-applets-2.3.6-uniquecd.patch
cvsdist adee96
# Keep the CD device closed except when actually accessing it
cvsdist adee96
# (bugzilla.gnome.org 91512)
cvsdist adee96
Patch3: gnome-applets-2.0.1-keepclosed.patch
cvsdist c5a3de
# Shrink volume applet for msw
cvsdist 6c4d74
Patch4: gnome-applets-2.3.6-smallvolume.patch
cvsdist 1d3b46
cvsdist fad46b
Patch5: gnome-applets-2.5.4-xklavier.patch
cvsdist fad46b
cvsdist fad46b
cvsdist 1d3b46
%description
cvsdist 5b2de8
GNOME (GNU Network Object Model Environment) is a user-friendly set of
cvsdist 5b2de8
applications and desktop tools to be used in conjunction with a window
cvsdist 5b2de8
manager for the X Window System. The gnome-applets package provides
cvsdist 5b2de8
small utilities for the GNOME panel.
cvsdist 1d3b46
cvsdist 1d3b46
%prep
cvsdist e43fd6
%ifnarch %{no_apm_archs}
cvsdist 104390
cvsdist 104390
if ! test -e /usr/lib/libapm.a ; then
cvsdist 104390
    echo "You must have apmd installed"
cvsdist 104390
    exit 1
cvsdist 104390
fi
cvsdist e43fd6
%endif
cvsdist e43fd6
cvsdist bdd79d
%setup -q
cvsdist 12f838
cvsdist 6c4d74
cp %{SOURCE2} .
cvsdist 6c4d74
cvsdist cd62d7
%patch1 -p1 -b .ppp-command
cvsdist cd6177
%patch2 -p1 -b .uniquecd
cvsdist c5a3de
#patch3 -p1 -b .keepclosed
cvsdist c5a3de
%patch4 -p1 -b .smallvolume
cvsdist adee96
# Fix up mode 0000 files created by patch2
cvsdist cd6177
chmod -R a+r .
cvsdist 203b9c
cvsdist fad46b
cd libgswitchit
cvsdist fad46b
%patch5 -p0 -b .xklavier
cvsdist fad46b
cd ..
cvsdist fad46b
cvsdist 1d3b46
%build
cvsdist 1d3b46
cvsdist cd6177
# .uniquecd patch modifies cdplayer/Makefile.am
cvsdist fad46b
aclocal
cvsdist fad46b
automake
cvsdist fad46b
autoconf
cvsdist cd6177
cvsdist 12f838
%configure
cvsdist bdd79d
make
cvsdist e43fd6
cvsdist 1d3b46
%install
cvsdist bdd79d
rm -rf $RPM_BUILD_ROOT
cvsdist 1d3b46
cvsdist bdd79d
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
cvsdist e43fd6
%makeinstall
cvsdist bdd79d
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
cvsdist e43fd6
cvsdist cd62d7
%find_lang %{po_package}
cvsdist e43fd6
cvsdist 3ecff9
# Clean up unpackaged files
cvsdist 3ecff9
rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
cvsdist 3ecff9
cvsdist bdd79d
%clean
cvsdist bdd79d
rm -rf $RPM_BUILD_ROOT
cvsdist e43fd6
cvsdist bdd79d
%post
cvsdist bdd79d
/sbin/ldconfig
cvsdist bdd79d
scrollkeeper-update
cvsdist e43fd6
cvsdist bdd79d
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
cvsdist 6c4d74
SCHEMAS="battstat.schemas cdplayer.schemas charpick.schemas drivemount.schemas geyes.schemas gkb.schemas gtik.schemas gweather.schemas mailcheck.schemas mini-commander.schemas mixer.schemas modemlights.schemas multiload.schemas stickynotes.schemas"
cvsdist bdd79d
for S in $SCHEMAS; do
cvsdist bdd79d
  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
cvsdist bdd79d
done
cvsdist e43fd6
cvsdist bdd79d
%postun -p /sbin/ldconfig
cvsdist e43fd6
cvsdist cd62d7
%files -f %{po_package}.lang
cvsdist bdd79d
%defattr(-, root, root)
cvsdist e43fd6
cvsdist bdd79d
%doc AUTHORS COPYING ChangeLog NEWS README
cvsdist e43fd6
cvsdist bdd79d
%{_datadir}/pixmaps
cvsdist bdd79d
%{_datadir}/gnome-2.0
cvsdist bdd79d
%{_datadir}/gnome
cvsdist bdd79d
%{_datadir}/geyes
cvsdist bdd79d
%{_datadir}/xmodmap
cvsdist bdd79d
%{_datadir}/gweather
cvsdist 6c4d74
%{_datadir}/stickynotes
cvsdist bdd79d
%{_datadir}/battstat_applet
cvsdist fad46b
%{_datadir}/gswitchit
cvsdist bdd79d
%{_datadir}/omf
cvsdist c5a3de
%{_datadir}/wireless-applet
cvsdist c5a3de
%{_datadir}/gen_util
cvsdist bdd79d
%{_bindir}/*
cvsdist bdd79d
%{_libdir}/bonobo
cvsdist cd62d7
%{_libexecdir}/*
cvsdist bdd79d
#%{_libdir}/*.so.*
cvsdist bdd79d
%{_sysconfdir}/gconf/schemas/*
cvsdist cd62d7
%{_sysconfdir}/sound
cvsdist 1d3b46
cvsdist fad46b
# These are really devel files, but we don't want a devel package
cvsdist fad46b
# for just three files
cvsdist fad46b
%{_includedir}/libgswitchit
cvsdist fad46b
%{_libdir}/pkgconfig/gswitchit.pc
cvsdist fad46b
cvsdist fad46b
cvsdist bdd79d
%changelog
cvsdist fad46b
* Tue Jan 27 2004 Alexander Larsson <alexl@redhat.com> 1:2.5.4-1
cvsdist fad46b
- update to 2.5.4
cvsdist fad46b
cvsdist 6c4d74
* Fri Oct  3 2003 Alexander Larsson <alexl@redhat.com> 1:2.4.1-1
cvsdist 6c4d74
- 2.4.1
cvsdist 6c4d74
cvsdist 6c4d74
* Wed Aug 27 2003 Alexander Larsson <alexl@redhat.com> 1:2.3.7-1
cvsdist 6c4d74
- Add missing schemas to post (fixes #102710)
cvsdist 6c4d74
- Update to 2.3.7
cvsdist 6c4d74
- Add ifnarch apmd buildreq
cvsdist 6c4d74
cvsdist 6c4d74
* Mon Aug 18 2003 Alexander Larsson <alexl@redhat.com> 1:2.3.6-1
cvsdist 6c4d74
- update for gnome 2.3
cvsdist 6c4d74
cvsdist 6c4d74
* Mon Jul 28 2003 Havoc Pennington <hp@redhat.com> 1:2.2.2-3
cvsdist 6c4d74
- require the newer libgtop2 so it rebuilds vs. correct soname
cvsdist 6c4d74
cvsdist 6c4d74
* Fri Jul 18 2003  <timp@redhat.com> 1:2.2.2-2
cvsdist 6c4d74
- rebuild against new libgtop
cvsdist 6c4d74
cvsdist 6c4d74
* Mon Jul  7 2003 Havoc Pennington <hp@redhat.com> 1:2.2.2-1
cvsdist 6c4d74
- 2.2.2
cvsdist 6c4d74
cvsdist 6c4d74
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 6c4d74
- rebuilt
cvsdist 6c4d74
cvsdist c5a3de
* Mon Feb 24 2003 Havoc Pennington <hp@redhat.com> 1:2.2.0-8
cvsdist c5a3de
- change the volume applet size fix patch to work
cvsdist c5a3de
cvsdist c5a3de
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
cvsdist c5a3de
- debuginfo rebuild
cvsdist c5a3de
cvsdist c5a3de
* Sat Feb 22 2003 Havoc Pennington <hp@redhat.com> 1:2.2.0-6
cvsdist c5a3de
- clamp size of volume applet to 24
cvsdist c5a3de
cvsdist c5a3de
* Thu Feb 20 2003 Havoc Pennington <hp@redhat.com> 1:2.2.0-5
cvsdist c5a3de
- rebuild with datadir/wireless-applet and datadir/gen_util, 
cvsdist c5a3de
  someone got overzealous deleting unpackaged files instead 
cvsdist c5a3de
  of packaging them. #82279
cvsdist c5a3de
cvsdist c5a3de
* Fri Feb 14 2003 Jonathan Blandford <jrb@redhat.com> 1:2.2.0-4
cvsdist c5a3de
- rebuild to get new gnome-panel
cvsdist c5a3de
cvsdist c5a3de
* Fri Feb 14 2003 Havoc Pennington <hp@redhat.com> 1:2.2.0-3
cvsdist c5a3de
- nuke buildreq Xft
cvsdist c5a3de
cvsdist c5a3de
* Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 1:2.2.0-2
cvsdist c5a3de
- fix path in modemlights patch
cvsdist c5a3de
cvsdist c5a3de
* Wed Feb  5 2003 Havoc Pennington <hp@redhat.com> 1:2.2.0-1
cvsdist c5a3de
- 2.2.0
cvsdist c5a3de
cvsdist c5a3de
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist c5a3de
- rebuilt
cvsdist c5a3de
cvsdist c5a3de
* Mon Dec 23 2002 Jeremy Katz <katzj@redhat.com> 1:2.1.3-1
cvsdist c5a3de
- update to 2.1.3
cvsdist c5a3de
cvsdist c5a3de
* Tue Dec  3 2002 Havoc Pennington <hp@redhat.com>
cvsdist c5a3de
- require newer panel, libgtop2
cvsdist c5a3de
- require newer libgnomeui, libbonoboui
cvsdist c5a3de
cvsdist c5a3de
* Mon Dec  2 2002 Tim Powers <timp@redhat.com> 1:2.1.1-2
cvsdist c5a3de
- remove unpackaged files from the buildroot
cvsdist c5a3de
cvsdist c5a3de
* Mon Dec  2 2002 Tim Powers <timp@redhat.com> 1:2.1.1-1
cvsdist c5a3de
- update to 2.1.1
cvsdist c5a3de
- add x86_64 to no_apm_archs
cvsdist c5a3de
cvsdist 3ecff9
* Tue Aug 27 2002 Owen Taylor <otaylor@redhat.com>
cvsdist 3ecff9
- Register the cd player per-device (#72645).
cvsdist 3ecff9
cvsdist cd6177
* Fri Aug 23 2002 Owen Taylor <otaylor@redhat.com>
cvsdist adee96
- Keep the CD device closed except when actually accessing it
cvsdist adee96
  (bugzilla.gnome.org 91512)
cvsdist cd6177
- Register CD player so we can start only one CD player
cvsdist cd6177
  for display from magicdev. (#39208)
cvsdist cd6177
cvsdist 6e2040
* Tue Aug 13 2002 Havoc Pennington <hp@redhat.com>
cvsdist 6e2040
- add ppc ppc64 to no_apm_arches #67564
cvsdist 6e2040
cvsdist cd62d7
* Wed Jul 31 2002 Nalin Dahyabhai <nalin@redhat.com>
cvsdist cd62d7
- include applets in libexecdir
cvsdist cd62d7
cvsdist cd62d7
* Mon Jul 29 2002 Havoc Pennington <hp@redhat.com>
cvsdist cd62d7
- 2.0.1, and build with new gail
cvsdist cd62d7
- 69971 (use correct ppp on/off commands)
cvsdist cd62d7
- remove scrollkeeper dtd-compliance patch, 
cvsdist cd62d7
  fixed upstream apparently (patch doesn't apply anymore)
cvsdist cd62d7
cvsdist cd62d7
* Wed Jun 26 2002 Owen Taylor <otaylor@redhat.com>
cvsdist cd62d7
- Fix %%find_lang
cvsdist cd62d7
cvsdist cd62d7
* Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
cvsdist cd62d7
- rebuild with new libs
cvsdist cd62d7
- remove temporary hack for too-old libgnomeui
cvsdist cd62d7
- add /etc/sound stuff to file list
cvsdist cd62d7
cvsdist cd62d7
* Thu Jun 13 2002 Nalin Dahyabhai <nalin@redhat.com>
cvsdist cd62d7
- rebuild in different environment
cvsdist cd62d7
cvsdist bdd79d
* Thu Jun 13 2002 Nalin Dahyabhai <nalin@redhat.com>
cvsdist bdd79d
- fix a scrollkeeper validation bug
cvsdist 1d3b46
cvsdist bdd79d
* Wed Jun 12 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- remove panel-menu.schemas from the list of schemas.
cvsdist bdd79d
- 2.0.0
cvsdist 1d3b46
cvsdist bdd79d
* Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- rebuild in different environment
cvsdist 1d3b46
cvsdist bdd79d
* Wed Jun  5 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- 1.105.0
cvsdist 5b2de8
cvsdist bdd79d
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist bdd79d
- automated rebuild
cvsdist bdd79d
cvsdist bdd79d
* Tue May 21 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- rebuild in different environment
cvsdist bdd79d
cvsdist bdd79d
* Tue May 21 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- 1.103.0
cvsdist bdd79d
cvsdist bdd79d
* Fri May  3 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- 1.100.0
cvsdist bdd79d
cvsdist bdd79d
* Fri Apr 19 2002 Havoc Pennington <hp@redhat.com>
cvsdist bdd79d
- GNOME 2 version
cvsdist 1d3b46
cvsdist 9892d6
* Mon Apr 15 2002 Havoc Pennington <hp@redhat.com>
cvsdist 9892d6
- merge translations
cvsdist 9892d6
cvsdist 12f838
* Thu Apr 11 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- default battstat applet to vertical mode
cvsdist 12f838
cvsdist 12f838
* Thu Mar 21 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- add patch to adapt to yahoo web site changes, #61561
cvsdist 12f838
cvsdist 12f838
* Tue Mar  5 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- remove requires libghttp4
cvsdist 12f838
cvsdist 12f838
* Mon Mar  4 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- no apm on sparc, #60538
cvsdist 12f838
- obsolete battstat_applet for Ximian compat, #51427
cvsdist 12f838
- use ifup/ifdown ppp0 instead of pppon/pppoff for default 
cvsdist 12f838
  ppp command in modemlights, #54199
cvsdist 12f838
cvsdist 12f838
* Tue Feb 12 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- 1.4.0.5, cross fingers
cvsdist 12f838
- add gconf-devel buildreq, though this is dubious as hell
cvsdist 12f838
  (pulled in by gtik using gnome-vfs, but if gtik actually
cvsdist 12f838
   accessed gconf it would fail due to gnorba conflict)
cvsdist 12f838
- patch totally busted charpick Makefile.am cflags override
cvsdist 12f838
cvsdist 12f838
* Thu Jan 24 2002 Havoc Pennington <hp@redhat.com>
cvsdist 12f838
- automake14
cvsdist 12f838
cvsdist 203b9c
* Thu Aug 30 2001 Alex Larsson <alexl@redhat.com>
cvsdist 203b9c
- Removed annoying broken battery full dialog #52861
cvsdist 203b9c
- Also fix mixer applet for USB sound #52603
cvsdist 203b9c
cvsdist 203b9c
* Mon Aug 27 2001 Havoc Pennington <hp@redhat.com>
cvsdist 203b9c
- Add po files from sources.redhat.com
cvsdist 203b9c
cvsdist 5b2de8
* Wed Aug 15 2001 Alexander Larsson <alexl@redhat.com>
cvsdist 5b2de8
- Own /usr/share/gnome/gkb and /usr/share/gnome/help/*
cvsdist 5b2de8
cvsdist 104390
* Wed Jul 18 2001 Havoc Pennington <hp@redhat.com>
cvsdist 104390
- add some build requires
cvsdist 104390
- remove ifarch build requires, replace with check in setup
cvsdist 104390
cvsdist e43fd6
* Wed Jul 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist e43fd6
- sanitize specfile to RH style
cvsdist e43fd6
- do not require apmd for s390 s390x
cvsdist e43fd6
cvsdist e43fd6
* Mon Jul  9 2001 Jonathan Blandford <jrb@redhat.com>
cvsdist e43fd6
- new version
cvsdist e43fd6
cvsdist e43fd6
* Sun Jul 08 2001 Havoc Pennington <hp@redhat.com>
cvsdist e43fd6
- remove extra .desktop file for battstat
cvsdist e43fd6
cvsdist e43fd6
* Sat Jul 07 2001 Havoc Pennington <hp@redhat.com>
cvsdist e43fd6
- add battstat applet
cvsdist e43fd6
- rearrange .desktop files for applets
cvsdist e43fd6
cvsdist 494c93
* Tue Jun 12 2001 Than Ngo <than@redhat.com>
cvsdist 494c93
- fix isdn stuff to build against kernel-2.4.x
cvsdist 494c93
- use %%{_tmppath}
cvsdist 494c93
cvsdist 494c93
* Mon Jun 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 494c93
- allow newer gettext versions
cvsdist ad09fa
cvsdist 38ef3e
* Thu Mar 15 2001 Havoc Pennington <hp@redhat.com>
cvsdist 38ef3e
- translations
cvsdist 38ef3e
cvsdist 38ef3e
* Mon Feb 12 2001 Akira TAGOH <tagoh@redhat.com>
cvsdist 38ef3e
- Updated Japanese translation (ja.po, .desktop).
cvsdist 38ef3e
  Note: Please remove Source[23]: when release the next upstream version.
cvsdist 38ef3e
cvsdist 38ef3e
* Fri Jan 19 2001 Havoc Pennington <hp@redhat.com>
cvsdist 38ef3e
- 1.2.4
cvsdist 38ef3e
cvsdist 1d3b46
* Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com>
cvsdist 1d3b46
- Update Epoch
cvsdist 1d3b46
cvsdist 1d3b46
* Wed Jul 19 2000 Jonathan Blandford <jrb@redhat.com>
cvsdist 1d3b46
- Change slashapp to gnome-news app.
cvsdist 1d3b46
cvsdist 1d3b46
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist 1d3b46
- automatic rebuild
cvsdist 1d3b46
cvsdist 1d3b46
* Mon Jun 19 2000 Owen Taylor 
cvsdist 1d3b46
- %%defattr fixes
cvsdist 1d3b46
- Remove Docdir:
cvsdist 1d3b46
cvsdist 1d3b46
* Thu Jun 15 2000 Havoc Pennington <hp@redhat.com>
cvsdist 1d3b46
- 1.2.1
cvsdist 1d3b46
- use %%makeinstall