LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plasmoid-glucose.spec of Package plasmoid-glucose (Project KDE:Extra)

#
# spec file for package plasmoid-glucose (Version 0.1.1)
#
# Copyright (c) 2011 Buschmann <buschmann23@opensuse.org>
#
# 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/
#

# norootforbuild

BuildRequires:  kdebase4-workspace-devel update-desktop-files
BuildRequires:  libqt4-devel >= 4.6.0

Name:           plasmoid-glucose
Summary:        Bloodsugar Diary Plasmoid
Version:        0.1.1
Release:        1
License:        GPLv2
Group:          System/GUI/KDE
Source0:        124864-glucose-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://kde-look.org/content/show.php/Glucose+-+Bloodsugar+Diary?content=124864
%kde4_runtime_requires


%description


Author:
-------
    Friedrich Pülz

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

%build
  cd plasma-dataengine-bloodsugardiary-0.1
  %cmake_kde4 -d builddir
  %make_jobs
  cd ../../plasma-applet-glucose-%{version}
  %cmake_kde4 -d builddir
  %make_jobs

%install
  cd plasma-dataengine-bloodsugardiary-0.1/builddir
  %makeinstall
  cd ../../plasma-applet-glucose-%{version}/builddir
  %makeinstall
  cd ..
  chmod -x README
  %suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-applet-glucose.desktop
  %suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-engine-bloodsugardiary.desktop
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc plasma-applet-glucose-%{version}/COPYING plasma-applet-glucose-%{version}/AUTHORS
%_kde4_modules/plasma_applet_glucose.so
%_kde4_modules/plasma_engine_bloodsugardiary.so
%_kde_share_dir/services/plasma-applet-glucose.desktop
%_kde_share_dir/services/plasma-engine-bloodsugardiary.desktop
%_kde_share_dir/apps/plasma/services/bloodsugardiaryservice.operations

%changelog