This commit is contained in:
Matthias Clasen 2011-02-22 01:17:06 -05:00
parent 90b21c80d6
commit 1212188643
3 changed files with 22 additions and 71 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
gnome-system-monitor-2.28.1.tar.bz2 gnome-system-monitor-2.28.1.tar.bz2
/gnome-system-monitor-2.28.2.tar.bz2 /gnome-system-monitor-2.28.2.tar.bz2
/gnome-system-monitor-2.99.0.tar.bz2

View File

@ -11,22 +11,20 @@
Summary: Process and resource monitor Summary: Process and resource monitor
Name: gnome-system-monitor Name: gnome-system-monitor
Version: 2.28.2 Version: 2.99.0
Release: 2%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://www.gnome.org/ URL: http://www.gnome.org/
#VCS: git:git://git.gnome.org/gnome-system-monitor #VCS: git:git://git.gnome.org/gnome-system-monitor
Source: http://download.gnome.org/sources/gnome-system-monitor/2.28/%{name}-%{version}.tar.bz2 Source: http://download.gnome.org/sources/gnome-system-monitor/2.99/%{name}-%{version}.tar.bz2
Source1: about-this-computer.desktop Source1: about-this-computer.desktop
BuildRequires: GConf2-devel
BuildRequires: gnome-vfs2-devel
BuildRequires: libgtop2-devel >= %{libgtop2_version} BuildRequires: libgtop2-devel >= %{libgtop2_version}
BuildRequires: libwnck-devel >= %{libwnck_version} BuildRequires: libwnck-devel >= %{libwnck_version}
BuildRequires: pango-devel >= %{pango_version} BuildRequires: pango-devel >= %{pango_version}
BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gtk3-devel
BuildRequires: gtkmm24-devel BuildRequires: gtkmm30-devel
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} BuildRequires: desktop-file-utils
BuildRequires: startup-notification-devel BuildRequires: startup-notification-devel
BuildRequires: intltool scrollkeeper gettext BuildRequires: intltool scrollkeeper gettext
BuildRequires: libselinux-devel >= %{libselinux_version} BuildRequires: libselinux-devel >= %{libselinux_version}
@ -40,15 +38,6 @@ BuildRequires: polkit-devel >= %{polkit_version}
# needed for autoreconf # needed for autoreconf
BuildRequires: autoconf, automake, libtool BuildRequires: autoconf, automake, libtool
# sent upstream: http://bugzilla.gnome.org/show_bug.cgi?id=491462
Patch0: polkit.patch
# sent upstream: http://bugzilla.gnome.org/show_bug.cgi?id=421912
Patch1: session.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=592758
Patch2: memmapsdialog.patch
Requires(pre): GConf2 >= %{gconf_version} Requires(pre): GConf2 >= %{gconf_version}
Requires(post): GConf2 >= %{gconf_version} Requires(post): GConf2 >= %{gconf_version}
Requires(preun): GConf2 >= %{gconf_version} Requires(preun): GConf2 >= %{gconf_version}
@ -60,24 +49,13 @@ such as CPU and memory.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .polkit
%patch1 -p1 -b .session
%patch2 -p1 -b .memmapsdialog
autoreconf -i -f
%build %build
%configure --enable-selinux --disable-scrollkeeper --enable-polkit %configure --enable-selinux --disable-scrollkeeper
# dunno why the deps are not picked up correctly here
make -C src gnome-system-monitor-mechanism-glue.h gnome-system-monitor-mechanism-client-glue.h
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
desktop-file-install --vendor gnome --delete-original \ desktop-file-install --vendor gnome --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \
@ -88,59 +66,31 @@ desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
# save space by linking identical images in translated docs
helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
for f in $helpdir/C/figures/*.png; do
b="$(basename $f)"
for d in $helpdir/*; do
if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
g="$d/figures/$b"
if [ -f "$g" ]; then
if cmp -s $f $g; then
rm "$g"; ln -s "../../C/figures/$b" "$g"
fi
fi
fi
done
done
%find_lang %{name} --with-gnome %find_lang %{name} --with-gnome
%clean %postun
rm -rf $RPM_BUILD_ROOT if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas > /dev/null || :
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas > /dev/null || :
fi fi
%preun %posttrans
if [ "$1" -eq 0 ]; then glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas > /dev/null || :
fi
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-, root, root,-) %defattr(-, root, root,-)
%doc AUTHORS NEWS COPYING README %doc AUTHORS NEWS COPYING README
%{_sysconfdir}/gconf/schemas/*
%{_bindir}/gnome-system-monitor %{_bindir}/gnome-system-monitor
%{_datadir}/applications/* %{_datadir}/applications/*
%{_datadir}/pixmaps/gnome-system-monitor/ %{_datadir}/pixmaps/gnome-system-monitor/
%{_sysconfdir}/dbus-1/system.d/org.gnome.SystemMonitor.Mechanism.conf %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.enums.xml
%{_libexecdir}/gnome-system-monitor-mechanism %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.gschema.xml
%{_datadir}/polkit-1/actions/org.gnome.system-monitor.policy
%{_datadir}/dbus-1/system-services/org.gnome.SystemMonitor.Mechanism.service
%changelog %changelog
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> - 2.99.0-1
- Update to 2.99.0
- Drop accumulated patches
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.2-2 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
3f0bca9b0ebc7a365466851cd580d167 gnome-system-monitor-2.28.2.tar.bz2 926578862fda96dcbb608832ce6e0081 gnome-system-monitor-2.99.0.tar.bz2