File elekmon.spec of Package elekmon

# 
# Do not Edit! Generated by:
# spectacle version 0.18
# 
# >> macros
# << macros
Name:       elekmon
Summary:    Elektrobit Powermonitor Suite
Version:    0.1.0
Release:    1
Group:      Applications/Development
License:    GPLv3
URL:        http://www.elektrobit.com
Source0:    %name-%version.tar.bz2
Source001:  updatesrc
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtDBus)
BuildRequires:  libebdebug-client-devel
BuildRequires:  qt-qmake
BuildRequires:  desktop-file-utils
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description
Elektrobit Phone Info Manager
Authors:
--------
    Leaf Johnson<lifu.zhang@elektrobit.com>


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

#Generate adapter codes
sed -i -e "s/^\s*Version.*$//" `find . -name "*.desktop"`
make -C engine/upower/adapters
%qmake install_prefix=%{_prefix}
make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install INSTALL_ROOT=%{buildroot}

# >> install post
# << install post
#mkdir -p %{buildroot}%{_datadir}/applications  
desktop-file-install --delete-original       \
  --dir %{buildroot}%{_datadir}/applications             \
   %{buildroot}%{_datadir}/applications/*.desktop


%files 
%defattr(-,root,root,-)
%{_libdir}/libproc-qt.so*
%{_bindir}/elekmon-engine
%{_bindir}/elekmon-gui
%{_datadir}/applications/elekmon-gui.desktop
%{_datadir}/icons/hicolor/64x64/apps/elekmon-gui.png
# >> files
# << files