File homerun.spec of Package homerun
#
# spec file for package homerun
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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/
#
Name: homerun
Summary: Fullscreen Launcher for KDE
License: (GPL-2.0 or GPL-3.0) and (LGPL-2.1 or LGPL-3.0)
Group: System/GUI/KDE
Version: 1.2.5
Release: 0
%define sonum 0
Source0: http://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM kde4_includes.patch -- install headers into kde4 includes directory, otherwise they are not found and used if not in
# standard system dir
Patch0: kde4_includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://userbase.kde.org/Homerun
BuildRequires: kdebase4-workspace-devel >= 4.10.0
BuildRequires: libkonq-devel >= 4.10.0
BuildRequires: update-desktop-files
BuildRequires: xz
Recommends: homerun-kicker = %{version}
%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+
Group: System/GUI/KDE
%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.
%package -n homerun-kicker
Summary: Homerun's traditional launcher menu
License: (GPL-2.0 or GPL-3.0) and (LGPL-2.1 or LGPL-3.0)
Group: System/GUI/KDE
Requires: %{name} = %{version}
%description -n homerun-kicker
Traditional launcher menu powered by Homerun framework.
%prep
%setup -q
%patch0 -p1
# Until broken autotests are fixed, kde#332031
sed -i '/^add_subdirectory(tests)/d' CMakeLists.txt
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%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
%files -n homerun-kicker
%defattr(644,root,root,755)
%{_kde4_configdir}/homerunkickerrc
%{_kde4_appsdir}/plasma/plasmoids/org.kde.homerun-kicker/
%changelog