File computertemp.spec of Package computertemp
#
# spec file for package computertemp (Version 0.9.6.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: computertemp
Version: 0.9.6.1
Release: 13
License: GPL-2.0
Summary: GNOME Panel Applet displaying the temperature of your CPU and disks
Url: http://computertemp.berlios.de
Group: System/GUI/GNOME
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE computertemp-use-libexecdir.patch vuntz@novell.com -- Make it install the applet in the right directory
Patch0: computertemp-use-libexecdir.patch
# PATCH-FIX-UPSTREAM computertemp-better-theming-and-fixes.patch vuntz@opensuse.org -- Better handling of dark themes, and various other fixes that were in the same commits. Taken from svn: based on svn diff -r 9:10 and svn diff -r 13:17 http://svn.infinicode.org/computertemp/trunk/computertemp
Patch1: computertemp-better-theming-and-fixes.patch
BuildRequires: fdupes
BuildRequires: gconf2-devel
# For directory ownership
BuildRequires: gnome-python-desktop
BuildRequires: intltool
BuildRequires: python-gtk-devel
Requires: %{name}-lang = %{version}
Requires: gnome-python-desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%description
Computer Temperature Monitor is a little applet for the GNOME desktop
that shows the temperature of your computer CPU and disks on screen.
It also allows you to log temperatures to a file. You can set alarms to
notify you when a tempertature is reached. Several monitors can be
added to the panel to monitor different sensors.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p0
%build
%configure \
--disable-schemas-install
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%find_gconf_schemas
%find_lang %{name}
%fdupes %{buildroot}%{py_sitedir}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%clean
rm -rf %{buildroot}
%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README TODO
%{_libexecdir}/computertemp
%{_libdir}/bonobo/servers/*.server
%{_datadir}/computertemp/
%{python_sitelib}/computertemp/
%files lang -f %{name}.lang
%changelog