File rekonq.spec of Package rekonq
#
# spec file for package rekonq
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009 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: rekonq
Version: 2.4.2
Release: 0
Summary: WebKit Based Web Browser for KDE
License: GPL-2.0+
Group: Productivity/Networking/Web/Browsers
Url: http://rekonq.kde.org/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: libkactivities-devel
BuildRequires: libkde4-devel >= 4.8.3
BuildRequires: libqca2-devel
BuildRequires: libqt4-devel >= 4.8.0l
# for opera sync service
BuildRequires: qoauth-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: konqueror
Recommends: %{name}-doc = %{version}
Recommends: %{name}-lang = %{version}
Provides: browser(npapi)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Rekonq is a web browser for KDE based on WebKit. It first focuses on being a
light, fast & clean way to access to net. Its development is doubly based on
using the new amazing features offered by the WebKit rendering engine and on
the rock solid network KDE technologies.
%package doc
Summary: Documentation for rekonq
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
Rekonq is a web browser for KDE based on WebKit. It first focuses on being a
light, fast & clean way to access to net. Its development is doubly based on
using the new amazing features offered by the WebKit rendering engine and on
the rock solid network KDE technologies.
This package provides the documentation for rekonq.
%lang_package
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
cd ..
# Remove unneeded locales
%if 0%{?suse_version} == 1130
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
%endif
%fdupes -s %{buildroot}
%find_lang %{name} %{name}.lang
%kde_post_install
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.DOC ChangeLog TODO
%{_kde4_applicationsdir}/rekonq.desktop
%{_kde4_appsdir}/rekonq/
%{_kde4_bindir}/rekonq
%{_kde4_iconsdir}/hicolor/*/apps/rekonq.png
%{_kde4_libdir}/libkdeinit4_rekonq.so
%{_kde4_sharedir}/config.kcfg/rekonq.kcfg
%files doc
%defattr(-,root,root,-)
%doc %{_kde4_htmldir}/en/rekonq/
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/rekonq/
%changelog