%define glib2_version 2.2.0 %define pango_version 1.2.0 %define gtk2_version 2.6.0 %define libgnomeui_version 2.3.0 %define gnome_panel_version 2.5.91 %define libgtop2_version 2.12.0 %define gail_version 1.2.0 %define libbonoboui_version 2.3.0 %define gstreamer_plugins_version 0.10 %define libxklavier_version 1.13 %define libwnck_version 2.9.3 %define libgnome_desktop_version 2.10.2 %define gnome_utils_version 2.8.1 %define dbus_version 0.60 %define po_package gnome-applets-2.0 Summary: Small applications for the GNOME panel. Name: gnome-applets Version: 2.13.4 Release: 4 Epoch: 1 License: GPL Group: User Interface/Desktops Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.1/%{name}-%{version}.tar.bz2 Source1: gnome-applets-2.9.3.1-modemlights.tar.bz2 Patch0: gnome-applets-2.10.1-use-old-modemlights.patch Patch2: gnome-applets-2.10.1-use-builtin-apm.patch Patch3: gnome-applets-2.3.6-ppp-command.patch Patch4: gnome-applets-2.11.1-cpufreq.patch Patch5: gnome-applets-2.13.4-warning.patch Patch6: gnome-applets-2.13.4-stock-ticker.patch URL: http://www.gnome.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: scrollkeeper >= 0.1.4 Prereq: gtk2 >= %{gtk2_version} BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} BuildRequires: gnome-panel-devel >= %{gnome_panel_version} BuildRequires: libgtop2-devel >= %{libgtop2_version} BuildRequires: pango-devel >= %{pango_version} BuildRequires: gail-devel >= %{gail_version} BuildRequires: libxklavier-devel >= %{libxklavier_version} BuildRequires: gstreamer-plugins-base-devel >= %{gstreamer_plugins_version} BuildRequires: gstreamer-plugins-good-devel >= %{gstreamer_plugins_version} BuildRequires: /usr/bin/automake BuildRequires: libbonoboui-devel >= %{libbonoboui_version} BuildRequires: libwnck-devel >= %{libwnck_version} BuildRequires: gnome-desktop-devel >= %{libgnome_desktop_version} BuildRequires: gnome-utils >= %{gnome_utils_version} BuildRequires: dbus-devel >= %{dbus_version} BuildRequires: gnome-doc-utils Requires: gnome-panel >= %{gnome_panel_version} Requires: libxklavier >= %{libxklavier_version} Requires: gstreamer-plugins-base >= %{gstreamer_plugins_version} Requires: gstreamer-plugins-good >= %{gstreamer_plugins_version} # For wireless-applet backwards compat Requires: gnome-netstatus >= 2.8.0-2 # For cpufreq-selector Requires: usermode Source10: cpufreq-selector.app Source11: cpufreq-selector.pam Obsoletes: battstat_applet Obsoletes: gnome-cpufreq-applet %description GNOME (GNU Network Object Model Environment) is a user-friendly set of applications and desktop tools to be used in conjunction with a window manager for the X Window System. The gnome-applets package provides small utilities for the GNOME panel. %prep %setup -q %patch0 -p1 -b .use-old-modemlights %patch2 -p1 -b .use-builtin-apm %patch4 -p1 -b .cpufreq %patch5 -p1 -b .warning %patch6 -p1 -b .stock-ticker cp gswitchit/gswitchit-applet.png gswitchit/gswitchit-properties-capplet.png # We don't ship gnome-system-tools rm -rf modemlights tar xjf %{SOURCE1} %patch3 -p1 -b .ppp-command autoconf %build %configure \ --enable-suid=no \ --disable-scrollkeeper \ --enable-mini-commander make %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL %find_lang %{po_package} # Clean up unpackaged files rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper rm -rf $RPM_BUILD_ROOT%{_libdir}/libgweather.la rm -rf $RPM_BUILD_ROOT%{_libdir}/libgweather.a # usermode-ify cpufreq-selector mkdir -p $RPM_BUILD_ROOT%{_sbindir} mv $RPM_BUILD_ROOT%{_bindir}/cpufreq-selector $RPM_BUILD_ROOT%{_sbindir} ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/cpufreq-selector mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,security/console.apps} install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/cpufreq-selector install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cpufreq-selector %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig scrollkeeper-update touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` SCHEMAS="battstat.schemas charpick.schemas cpufreq-applet.schemas drivemount.schemas geyes.schemas gswitchit.schemas gtik.schemas gweather.schemas mini-commander-global.schemas mini-commander.schemas mixer.schemas modemlights.schemas multiload.schemas stickynotes.schemas" for S in $SCHEMAS; do gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null done %{_libexecdir}/gnome-applets/mc-install-default-macros > /dev/null %postun /sbin/ldconfig touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi %files -f %{po_package}.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{_datadir}/pixmaps %{_datadir}/icons/hicolor/48x48/apps/* %{_datadir}/gnome-2.0/ui/* %{_datadir}/gnome %{_datadir}/gnome-applets %{_datadir}/xmodmap %{_datadir}/omf/* %{_bindir}/* %{_libdir}/bonobo/servers/* %{_libdir}/libgweather.so* %{_libexecdir}/* %{_sbindir}/* %{_sysconfdir}/gconf/schemas/* %{_sysconfdir}/pam.d/* %{_sysconfdir}/security/console.apps/* %{_sysconfdir}/sound # These are really devel files, but we don't want a devel package # for just three files %{_includedir}/libgswitchit %{_libdir}/pkgconfig/gswitchit.pc %{_includedir}/libgweather %{_libdir}/pkgconfig/gweather.pc %changelog * Thu Feb 23 2006 Matthias Clasen - 2.13.4-4 - Make the stock ticker work with gcc 4.1 (#179528) * Sat Feb 18 2006 Matthias Clasen - 2.13.4-3 - Remove a warning from the stock ticker applet * Wed Feb 15 2006 Matthias Clasen - 2.13.4-2 - Build with --enable-mini-commander * Sun Feb 12 2006 Matthias Clasen - 2.13.4-1 - Update to 2.13.4 * Fri Feb 10 2006 Jesse Keating - 1:2.13.3-4.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1:2.13.3-4.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Feb 01 2006 Matthias Clasen 2.13.3-4 - Fix an overflow in the weather applet * Tue Jan 31 2006 Matthias Clasen 2.13.3-3 - Update gstreamer requires * Tue Jan 31 2006 Matthias Clasen 2.13.3-1 - Update to 2.13.3 * Wed Jan 18 2006 Matthias Clasen 2.13.2-2 - BuildRequire gnome-doc-utils * Tue Jan 17 2006 Matthias Clasen 2.13.2-1 - Update to 2.13.2 * Fri Jan 05 2006 John (J5) Palmieri 2.13.1-4 - GStreamer has been split into gstreamer08 and gstreamer (0.10) packages we need gstreamer08 for now * Wed Jan 04 2006 Matthias Clasen 2.13.1-3 - Rebuild against new libgtop * Fri Dec 16 2005 Matthias Clasen 2.13.1-2 - Rebuild against new libgtop * Thu Dec 15 2005 Matthias Clasen 2.13.1-1 - Update to 2.13.1 - Update file lists * Fri Dec 09 2005 Jesse Keating 2.12.2-1.1 - rebuilt * Fri Dec 2 2005 Matthias Clasen 2.12.2-1 - Update to 2.12.2 * Thu Dec 01 2005 John (J5) Palmieri - 1:2.12.1-4 - rebuild for new dbus * Mon Nov 14 2005 Ray Strode - 1:2.12.1-3 - build correct command string for cpufreq-selection. Fix spotted by Ingo Schaefer (Bug 164147). * Thu Oct 20 2005 Ray Strode - 1:2.12.1-2 - require libgtop2 >= 2.12.0, bug 171285 * Thu Oct 6 2005 Matthias Clasen - 1:2.12.1-1 - Update to 2.12.1 * Thu Sep 8 2005 Matthias Clasen - 1:2.12.0-1 - Update to 2.12.0, drop upstreamed patches * Wed Aug 17 2005 Jeremy Katz - 1:2.11.91-5 - fun with auto* to really get the build working * Wed Aug 17 2005 Jeremy Katz - 1:2.11.91-4 - patch from upstream cvs to fix build with new pango (bgo #313368) * Tue Aug 16 2005 Warren Togami - 1:2.11.91-3 - rebuild for new cairo * Thu Aug 11 2005 Ray Strode 1:2.11.91-2 - disable scrollkeeper database updates - add omf files to package list - require gnome-utils for gucharmap/charpick integration * Wed Aug 10 2005 Ray Strode 1:2.11.91-1 - New upstream version * Fri Aug 5 2005 Matthias Clasen 1:2.11.2-2 - New upstream version * Tue Jul 12 2005 Matthias Clasen 1:2.11.1-2 - Rebuilt * Fri Jul 8 2005 Matthias Clasen 1:2.11.1-1 - Update to 2.11.1 * Fri Jul 1 2005 Mark McLoughlin 1:2.10.1-10 - Backport from HEAD patch to remove lame warning dialog when the mixer applet can't find a mixer device * Fri May 27 2005 Bill Nottingham 1:2.10.1-9 - remove setuid bit from cpufreq-selector, usermode-ify it * Thu May 19 2005 Ray Strode 1:2.10.1-8 - Install modemlights gconf schema (bug 157764). * Fri May 13 2005 Ray Strode 1:2.10.1-7 - Don't disable battstat on some platforms (bug 157683). * Wed Apr 27 2005 Jeremy Katz - 1:2.10.1-6 - silence %%post * Tue Apr 26 2005 Ray Strode 1:2.10.1-5 - Add back old patch to change ppp connect/disconnect commands (bug 147675) * Wed Apr 20 2005 Ray Strode 1:2.10.1-4 - Use builtin copy of apmlib instead of adding an external dependency (bug 155125) * Thu Apr 14 2005 Ray Strode 1:2.10.1-3 - Apply patch from Jan de Groot to silence scrollkeeper noise (bug 152236) * Thu Apr 14 2005 Ray Strode 1:2.10.1-2 - Add Obsoletes: gnome-cpufreq-applet (bug 154853) * Thu Apr 7 2005 Ray Strode 1:2.10.1-1 - update to 2.10.1 - actually build the old modemlights that were added in 2.10.0-4 * Tue Apr 5 2005 Ray Strode 1:2.10.0-5 - Don't use %postun -p optimization now that we do more than just /sbin/ldconfig in %postun (bug 152236) * Mon Apr 4 2005 Ray Strode 1:2.10.0-4 - use old modemlights applet that doesn't depend on gnome-system-tools * Mon Mar 28 2005 Christopher Aillon 2.10.0-3 - rebuilt * Fri Mar 25 2005 Christopher Aillon 2.10.0-2 - Update the GTK+ theme icon cache on (un)install * Wed Mar 16 2005 Matthias Clasen - 2.10.0-1 - Rebuild against new libwnck - Update to 2.10.0 - Drop upstreamed patch * Wed Mar 2 2005 Mark McLoughlin 1:2.9.6-2 - Stop libgswitchit using -Werror - Rebuild with gcc4 * Wed Feb 9 2005 Matthias Clasen - 2.9.6-1 - Update to 2.9.6 * Wed Feb 9 2005 Mark McLoughlin 2.9.5-4 - Add patch for mixer crash - #147282. Thanks Neil Paris for tracking down. * Fri Feb 4 2005 Mark McLoughlin - 2.9.5-2 - Fix schemas list (#146880, #147011) * Mon Jan 31 2005 Matthias Clasen - 2.9.5-1 - Update to 2.9.5 * Sun Jan 30 2005 Florian La Roche - rebuild against new libs * Thu Oct 7 2004 Mark McLoughlin - 2.8.0-5 - Add patch to fix crash with gweather preferences (#134572) * Thu Oct 7 2004 Mark McLoughlin - 2.8.0-4 - Fix mixer icons bugs - #134224 and #134773 * Wed Sep 29 2004 Mark McLoughlin 2.8.0-3 - Add new icons from upstream * Tue Sep 21 2004 Mark McLoughlin 2.8.0-2 - Remove the wireless applet and add patch to use the netstatus applet for backwards compat. bug #131652. * Tue Sep 21 2004 Mark McLoughlin 2.8.0-1 - Update to 2.8.0 * Wed Sep 1 2004 Mark McLoughlin 2.7.3-2 - Rebuild * Mon Aug 30 2004 Mark McLoughlin 2.7.3-1 - Update to 2.7.3 * Fri Aug 27 2004 Mark McLoughlin 2.7.2-2 - Run mc-install-default-macros in %post - Fixed small-volume patch from Nathan Fredrickson * Wed Aug 18 2004 Mark McLoughlin 2.7.2-1 - Update to 2.7.2 * Wed Aug 11 2004 Mark McLoughlin 2.7.1-2 - Remove reference to cdplayer.schemas which has been removed (bug #129490) * Thu Aug 5 2004 Mark McLoughlin 2.7.1-1 - Update to 2.7.1 - Remove battstat-arg patch - upstream now * Wed Jul 21 2004 Mark McLoughlin 1:2.6.2.1-2 - rebuild * Wed Jul 21 2004 Mark McLoughlin 1:2.6.2.1-1 - Update to 2.6.2.1 - Re-do the way we decide whether to build the battstat applet. Should fix 122379 - Remove some patches that have gone upstream * Tue Jun 22 2004 Mark McLoughlin 1:2.6.0-8 - Fix typo with apmd requires * Tue Jun 15 2004 Elliot Lee - rebuilt - Remove ifarch'd buildrequires on apmd * Thu May 05 2004 Nils Philippsen 1:2.6.0-5 - fix #120354 (mixer applet forgets channel settings) * Thu Apr 29 2004 Karsten Hopp 1:2.6.0-4 - fix error during update on s390(x) due to missing battery applet * Mon Apr 19 2004 Mark McLoughlin 1:2.6.0-3 - Build battstat on ppc too * Wed Apr 14 2004 Alex Larsson 1:2.6.0-2 - Add gswitchit.schemas to SCHEMAS * Wed Mar 31 2004 Mark McLoughlin 2.6.0-1 - Update to 2.6.0 * Tue Mar 16 2004 Jeremy Katz 1:2.5.7-4 - rebuild for new gstreamer * Thu Mar 11 2004 Mark McLoughlin 2.5.7-3 - Update Requires/BuildRequires to include gstreamer-plugins * Thu Mar 11 2004 Mark McLoughlin 2.5.7-2 - Rebuild * Wed Mar 10 2004 Mark McLoughlin 2.5.7-1 - Update to 2.5.7 - Add gnome-panel-devel BuildRequires * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 26 2004 Alexander Larsson 1:2.5.6-1 - update to 2..5.6 * Fri Feb 13 2004 Elliot Lee - rebuilt * Tue Jan 27 2004 Alexander Larsson 1:2.5.4-1 - update to 2.5.4 * Fri Oct 3 2003 Alexander Larsson 1:2.4.1-1 - 2.4.1 * Wed Aug 27 2003 Alexander Larsson 1:2.3.7-1 - Add missing schemas to post (fixes #102710) - Update to 2.3.7 - Add ifnarch apmd buildreq * Mon Aug 18 2003 Alexander Larsson 1:2.3.6-1 - update for gnome 2.3 * Mon Jul 28 2003 Havoc Pennington 1:2.2.2-3 - require the newer libgtop2 so it rebuilds vs. correct soname * Fri Jul 18 2003 1:2.2.2-2 - rebuild against new libgtop * Mon Jul 7 2003 Havoc Pennington 1:2.2.2-1 - 2.2.2 * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon Feb 24 2003 Havoc Pennington 1:2.2.0-8 - change the volume applet size fix patch to work * Mon Feb 24 2003 Elliot Lee - debuginfo rebuild * Sat Feb 22 2003 Havoc Pennington 1:2.2.0-6 - clamp size of volume applet to 24 * Thu Feb 20 2003 Havoc Pennington 1:2.2.0-5 - rebuild with datadir/wireless-applet and datadir/gen_util, someone got overzealous deleting unpackaged files instead of packaging them. #82279 * Fri Feb 14 2003 Jonathan Blandford 1:2.2.0-4 - rebuild to get new gnome-panel * Fri Feb 14 2003 Havoc Pennington 1:2.2.0-3 - nuke buildreq Xft * Mon Feb 10 2003 Bill Nottingham 1:2.2.0-2 - fix path in modemlights patch * Wed Feb 5 2003 Havoc Pennington 1:2.2.0-1 - 2.2.0 * Wed Jan 22 2003 Tim Powers - rebuilt * Mon Dec 23 2002 Jeremy Katz 1:2.1.3-1 - update to 2.1.3 * Tue Dec 3 2002 Havoc Pennington - require newer panel, libgtop2 - require newer libgnomeui, libbonoboui * Mon Dec 2 2002 Tim Powers 1:2.1.1-2 - remove unpackaged files from the buildroot * Mon Dec 2 2002 Tim Powers 1:2.1.1-1 - update to 2.1.1 - add x86_64 to no_apm_archs * Tue Aug 27 2002 Owen Taylor - Register the cd player per-device (#72645). * Fri Aug 23 2002 Owen Taylor - Keep the CD device closed except when actually accessing it (bugzilla.gnome.org 91512) - Register CD player so we can start only one CD player for display from magicdev. (#39208) * Tue Aug 13 2002 Havoc Pennington - add ppc ppc64 to no_apm_arches #67564 * Wed Jul 31 2002 Nalin Dahyabhai - include applets in libexecdir * Mon Jul 29 2002 Havoc Pennington - 2.0.1, and build with new gail - 69971 (use correct ppp on/off commands) - remove scrollkeeper dtd-compliance patch, fixed upstream apparently (patch doesn't apply anymore) * Wed Jun 26 2002 Owen Taylor - Fix %%find_lang * Sun Jun 16 2002 Havoc Pennington - rebuild with new libs - remove temporary hack for too-old libgnomeui - add /etc/sound stuff to file list * Thu Jun 13 2002 Nalin Dahyabhai - rebuild in different environment * Thu Jun 13 2002 Nalin Dahyabhai - fix a scrollkeeper validation bug * Wed Jun 12 2002 Havoc Pennington - remove panel-menu.schemas from the list of schemas. - 2.0.0 * Fri Jun 07 2002 Havoc Pennington - rebuild in different environment * Wed Jun 5 2002 Havoc Pennington - 1.105.0 * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Havoc Pennington - rebuild in different environment * Tue May 21 2002 Havoc Pennington - 1.103.0 * Fri May 3 2002 Havoc Pennington - 1.100.0 * Fri Apr 19 2002 Havoc Pennington - GNOME 2 version * Mon Apr 15 2002 Havoc Pennington - merge translations * Thu Apr 11 2002 Havoc Pennington - default battstat applet to vertical mode * Thu Mar 21 2002 Havoc Pennington - add patch to adapt to yahoo web site changes, #61561 * Tue Mar 5 2002 Havoc Pennington - remove requires libghttp4 * Mon Mar 4 2002 Havoc Pennington - no apm on sparc, #60538 - obsolete battstat_applet for Ximian compat, #51427 - use ifup/ifdown ppp0 instead of pppon/pppoff for default ppp command in modemlights, #54199 * Tue Feb 12 2002 Havoc Pennington - 1.4.0.5, cross fingers - add gconf-devel buildreq, though this is dubious as hell (pulled in by gtik using gnome-vfs, but if gtik actually accessed gconf it would fail due to gnorba conflict) - patch totally busted charpick Makefile.am cflags override * Thu Jan 24 2002 Havoc Pennington - automake14 * Thu Aug 30 2001 Alex Larsson - Removed annoying broken battery full dialog #52861 - Also fix mixer applet for USB sound #52603 * Mon Aug 27 2001 Havoc Pennington - Add po files from sources.redhat.com * Wed Aug 15 2001 Alexander Larsson - Own /usr/share/gnome/gkb and /usr/share/gnome/help/* * Wed Jul 18 2001 Havoc Pennington - add some build requires - remove ifarch build requires, replace with check in setup * Wed Jul 11 2001 Florian La Roche - sanitize specfile to RH style - do not require apmd for s390 s390x * Mon Jul 9 2001 Jonathan Blandford - new version * Sun Jul 08 2001 Havoc Pennington - remove extra .desktop file for battstat * Sat Jul 07 2001 Havoc Pennington - add battstat applet - rearrange .desktop files for applets * Tue Jun 12 2001 Than Ngo - fix isdn stuff to build against kernel-2.4.x - use %%{_tmppath} * Mon Jun 11 2001 Florian La Roche - allow newer gettext versions * Thu Mar 15 2001 Havoc Pennington - translations * Mon Feb 12 2001 Akira TAGOH - Updated Japanese translation (ja.po, .desktop). Note: Please remove Source[23]: when release the next upstream version. * Fri Jan 19 2001 Havoc Pennington - 1.2.4 * Fri Aug 11 2000 Jonathan Blandford - Update Epoch * Wed Jul 19 2000 Jonathan Blandford - Change slashapp to gnome-news app. * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Owen Taylor - 1.2.1 - use %%makeinstall