File mate-sensors-applet.spec of Package mate-sensors-applet

#
# spec file for mate-sensors-applet 
#
# Copyright (c) 2014 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:           mate-sensors-applet
%define _name   libmate-sensors-applet-plugin0
Version:        1.8.0
Release:        0
License:        GPL-2.0
Summary:        MATE Desktop panel applet to display sensor readings
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Recommends:     %{name}-lang
Requires:       mate-panel >= 1.8.0
#Requires:       hicolor-icon-theme

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(libnotify)
BuildRequires:  pkgconfig(libmatepanelapplet-4.0) >= 1.8.0
BuildRequires:  pkgconfig(xext)

%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:       %{_name} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}

%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 %{_name}
Summary:        MATE Desktop sensors applet shared libraries
Group:          System/Libraries

%description -n %{_name}
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
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
   rm -rf %{buildroot}%{_datadir}/MateConf
fi

%post
%icon_theme_cache_post

%post -n %{_name} -p /sbin/ldconfig

%postun
%icon_theme_cache_postun

%postun -n %{_name} -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc ChangeLog README COPYING
%{_libexecdir}/%{name}/
%{_libdir}/%{name}/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/mate-sensors-applet
%{_datadir}/icons/hicolor/
%{_datadir}/mate-panel/
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}/

%files -n %{_name}
%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
openSUSE Build Service is sponsored by