File plasmoid-eventlist.spec of Package plasmoid-eventlist

#
# spec file for package plasmoid-eventlist
#
# Copyright 2009-2010 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.
#

# norootforbuild

Name:               plasmoid-eventlist
Summary:            Eventlist Plasmoid
Version:            0.7
Release:            1.1
License:            GPL-2.0
Group:              System/GUI/KDE
Url:                http://www.kde-look.org/content/show.php/Eventlist?content=107779
Source0:            http://kde-look.org/CONTENT/content-files/107779-%{name}-%{version}.tar.bz2
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
AutoReqProv:        yes

%if 0%{?fedora_version}
BuildRequires:      redhat-rpm-config kdelibs4-devel gcc-c++ cmake kdebase-workspace-devel kdepimlibs-devel akonadi-devel
%else
BuildRequires:      kdebase4-workspace-devel >= 4.6.0
BuildRequires:      libakonadiprotocolinternals-devel
BuildRequires:      libkdepimlibs4-devel
BuildRequires:      update-desktop-files
%endif
%if 0%{?suse_version} == 1230
BuildRequires:  libjpeg8-devel
%endif

%if 0%{?fedora_version}
Requires:           kdebase-workspace >= 4.6.0 kdepimlibs >= 4.6.0 akonadi
%else
Requires:           kdebase4-workspace >= 4.6.0
%kde4_runtime_requires
%kde4_pimlibs_requires
%kde4_akonadi_requires
%endif

%description
This is a plasmoid to show the events from Akonadi resources (KOrganizer, Birthdays etc.).


%prep
%setup -q

%build
%if 0%{?fedora_version}
%cmake_kde4
make
%else
  %cmake_kde4 -d builddir
  %make_jobs
%endif

%install
%if 0%{?fedora_version}
  rm -rf %{buildroot}
  mkdir %{buildroot}
  make install DESTDIR=%{buildroot}
  %find_lang plasma_applet_events
%else
  cd builddir
  %kde4_makeinstall
  %suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-applet-events.desktop
  %kde_post_install
  %find_lang plasma_applet_events
%endif

%clean
  rm -rf $RPM_BUILD_ROOT

%if 0%{?fedora_version}
%files -f plasma_applet_events.lang
%defattr(-,root,root)
%{_libdir}/kde4/plasma_applet_events.so
%{_datadir}/kde4/services/plasma-applet-events.desktop
%else
%files -f builddir/plasma_applet_events.lang
%defattr(644,root,root,755)
%doc AUTHORS Changelog COPYING README TODO
%_kde4_modules/plasma_applet_events.so
%_kde_share_dir/services/plasma-applet-events.desktop
%endif

%changelog
openSUSE Build Service is sponsored by