File homerun.spec of Package homerun
#
# spec file for package homerun
#
# Copyright (c) 2012-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.0
BuildRequires: update-desktop-files
BuildRequires: libkonq-devel >= 4.10.0
BuildRequires: xz
Name: homerun
Summary: Fullscreen Launcher for KDE
Version: 1.1.0
Release: 1
%define sonum 0
License: (GPL-2.0 or GPL-3.0) and (LGPL-2.1 or LGPL-3.0)
Group: System/GUI/KDE
Source0: http://download.kde.org/stable/homerun/src/%{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://userbase.kde.org/Homerun
%kde4_runtime_requires
Requires: libhomerun%{sonum} = %{version}
%description
Homerun is a fullscreen launcher with content organized in tabs. A tab is composed
of several "sources". A source can provide one or more sections to a tab. Homerun
comes with a few built-in sources, but custom sources can be written using libhomerun.
%package -n libhomerun%{sonum}
Summary: Libraries Needed by Homerun
License: LGPL-2.1+
%kde4_runtime_requires
%description -n libhomerun%{sonum}
This package provides libraries, data engines, and icons needed by all
public transport plasma applets.
%package -n homerun-devel
Summary: Development Files for Homerun
License: LGPL-2.1+ and BSD-2-Clause
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
Requires: libhomerun%{sonum} = %{version}
%description -n homerun-devel
This package provides development libraries and headers needed to build
software using Homerun.
%prep
%setup -q
%build
%cmake_kde4 -d builddir
%make_jobs
%install
cd builddir
%makeinstall
cd ..
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-applet-homerunlauncher.desktop
%kde_post_install
%find_lang plasma_applet_org.kde.homerun %name.lang
%post -n libhomerun%{sonum} -p /sbin/ldconfig
%postun -n libhomerun%{sonum} -p /sbin/ldconfig
%files -f %name.lang
%defattr(644,root,root,755)
%doc COPYING LICENSE.BSD LICENSE.GPL-2 LICENSE.LGPL-2.1 NEWS README.md
%attr(755,root,root) %_kde4_bindir/homerunviewer
%_kde4_modulesdir/*.so
%_kde4_modulesdir/imports/org/kde/homerun
%_kde4_servicesdir/*.desktop
%_kde4_servicetypesdir/*.desktop
%_kde4_appsdir/plasma/plasmoids/org.kde.homerun
%_kde4_appsdir/homerun
%_kde4_configdir/homerunrc
%_kde4_iconsdir/hicolor/*/apps/homerun.*
%files -n libhomerun%{sonum}
%defattr(644,root,root,755)
%_kde4_libdir/libhomerun.so.*
%files -n homerun-devel
%defattr(644,root,root,755)
%_kde4_libdir/libhomerun.so
%_kde4_libdir/cmake/Homerun
%_kde4_includedir/homerun
%changelog