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 http://bugs.opensuse.org/
#


Name:           mestatus
Summary:        Intel(R) Management & Security Status graphical user interface
Version:        5.0.0.30
Release:        0
Url:            http://sourceforge.net/projects/openamt/
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-5.0.0.30-too_many_arguments_and_removed_notify_notification_attach_to_status_icon.patch
Patch1:         MEStatus-5.0.0.30-missing_includes.patch
# PATCH-FIX-UPSTREAM add needed unistd header 
Patch2:         build-gcc4.7.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.


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

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

%install
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

%clean
rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/*
%{_datadir}/pixmaps/%{name}*
%{_datadir}/applications/%{name}*.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by