File plasmate.spec of Package plasmate

#
# spec file for package plasmate (Version 1.0)
#
# Copyright (c) 2013 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 >= 4.10
BuildRequires: libkdepimlibs4-devel >= 4.10
BuildRequires: libattica-devel
BuildRequires: libgpgme-devel
BuildRequires: git
BuildRequires: update-desktop-files

Name:           plasmate
Summary:        Plasma SDK
Version:        1.0
Release:        1
License:        GPL-2.0
Group:          Development/Tools/IDE
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            https://projects.kde.org/projects/extragear/sdk/plasmate

Requires:	plasmoidviewer
Requires:	git
%kde4_runtime_requires
%kde4_pimlibs_requires


%description
A small IDE taylored for development of Plasma components, such as Widgets, Runners, Dataengines.


%package -n plasmoidviewer
Group:		Development/Tools/Other
Summary:	Viewer for Plasmoids
License:	GPL-2.0
%kde4_runtime_requires

%description -n plasmoidviewer
Small CLI application to to test plasmoids in an extra view, independent from the current plasma interface.

%prep
%setup -q

%build
  %cmake_kde4 -d builddir
  %make_jobs

%install
  cd builddir
  %kde4_makeinstall
  cd ..
  %suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/applications/kde4/plasmate.desktop
  %kde_post_install

%files
%defattr(644,root,root,755)
%attr(755,root,root) %_kde4_bindir/kwin-windowswitcherpreviewer
%attr(755,root,root) %_kde4_bindir/plasma-remote-widgets-browser
%attr(755,root,root) %_kde4_bindir/plasmaengineexplorer
%attr(755,root,root) %_kde4_bindir/plasmakconfigxteditor
%attr(755,root,root) %_kde4_bindir/plasmaremoteinstaller
%attr(755,root,root) %_kde4_bindir/plasmate
%attr(755,root,root) %_kde4_bindir/plasmawallpaperviewer
%_kde4_modulesdir/plasma_containment_studiopreviewer.so
%attr(755,root,root) %_kde4_applicationsdir/plasmate.desktop
%_kde4_iconsdir/hicolor/*/apps/plasmagik.png
%_kde4_appsdir/plasmate
%_kde4_configdir/plasmate.knsrc
%_kde4_servicesdir/plasma-containment-studiopreviewer.desktop
%_kde4_mandir/man1/plasmaengineexplorer.1.gz

%files -n plasmoidviewer
%defattr(644,root,root,755)
%attr(755,root,root) %_kde4_bindir/plasmoidviewer
%_kde4_mandir/man1/plasmoidviewer.1.gz

%changelog
openSUSE Build Service is sponsored by