File mate-sensors-applet.spec of Package mate-sensors-applet
#
# spec file for package mate-sensors-applet
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define lname libmate-sensors-applet-plugin0
%define _version 1.10
Name: mate-sensors-applet
Version: 1.10.4
Release: 0
Summary: MATE Desktop panel applet to display sensor readings
License: GPL-2.0
Group: System/GUI/Other
Url: http://mate-desktop.org/
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: itstool
BuildRequires: libsensors4-devel
BuildRequires: mate-common
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libatasmart)
BuildRequires: pkgconfig(libmatepanelapplet-4.0) >= 1.9.0
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(xext)
#Requires: hicolor-icon-theme
Requires: mate-panel >= 1.9.0
Recommends: %{name}-lang = %{version}
%description
MATE Sensors Applet is an applet for the MATE Panel to display
readings from hardware sensors, including CPU temperature, fan
speeds and voltage readings under Linux.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{lname} = %{version}
%description devel
MATE Sensors Applet is an applet for the MATE Panel to display
readings from hardware sensors, including CPU temperature, fan
speeds and voltage readings under Linux.
%package -n %{lname}
Summary: MATE Desktop sensors applet shared libraries
Group: Development/Libraries/C and C++
%description -n %{lname}
MATE Sensors Applet is an applet for the MATE Panel to display
readings from hardware sensors, including CPU temperature, fan
speeds and voltage readings under Linux.
%lang_package
%prep
%setup -q
%build
export LDFLAGS="%{optflags} -ldl"
%configure \
--disable-static \
--libexecdir=%{_libexecdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
rm -rf %{buildroot}%{_datadir}/MateConf/
fi
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libexecdir}/%{name}/
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%dir %{_datadir}/mate-panel/
%dir %{_datadir}/mate-panel/applets/
%{_datadir}/mate-panel/applets/org.mate.applets.sensors-applet.mate-panel-applet
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/mate-sensors-applet
%{_datadir}/icons/hicolor/*/*/%{name}*.png
%{_datadir}/pixmaps/%{name}/
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libmate-sensors-applet-plugin.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/*.so
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog