File mestatus.spec of Package mestatus

# spec file for package mestatus
# Copyright (c) 2012 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

Name:           mestatus
Summary:        Intel(R) Management & Security Status graphical user interface
Release:        0
License:        Intel Corp. Copyright
Group:          Productivity/Other
BuildRequires:  gcc-c++
BuildRequires:  gtkmm2-devel
BuildRequires:  libglademm-devel
BuildRequires:  libnotify-devel
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch0:         MEStatus-
Patch1:         MEStatus-
# PATCH-FIX-UPSTREAM add needed unistd header 
Patch2:         build-gcc4.7.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The 'Intel(R) Management & Security Status' (MEStatus) is a graphical user
interface application used to monitor Intel(R) AMT and Intel(R) TPM states.
User is able to verify whether Intel(R) AMT and Intel(R) TPM are enabled and
running on the system.

By default 'Intel(R) Management & Security Status' icon (MEstatus) terminates
if one of Intel(R) AMT or Intel(R) TPM is not enabled or not running.  This
behavior can be changed in 'MEStatusApp' GUI application.  To use MEStatus make
sure that Intel(R) UNS (User Notification Service) is running.

%setup -q -n MEStatus-%{version}
%patch0 -p1
%patch1 -p1
%if 0%{?suse_version} >= 1220
%patch2 -p1

export CPPFLAGS="%{optflags} -fpermissive"
%{__make} %{?_smp_mflags}

make install DESTDIR=%{buildroot}

mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r res/* %{buildroot}%{_datadir}/%{name}/

install -Dm 644 res/oemlogo.gif %{buildroot}%{_datadir}/pixmaps/%{name}.gif
install -Dm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

rm -rf "%{buildroot}"

%dir %{_datadir}/%{name}

openSUSE Build Service is sponsored by