File falkon.spec of Package falkon

# spec file for package falkon
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Mariusz Fik <>
# 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

Name:           falkon
Version:        3.0.1
Release:        0
Summary:        Modern web browser
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Web/Browsers
Source:         %{name}-%{version}.tar.xz
# Used to get a timestamp to override __DATE__ and __TIME__ with
Source1:        %{name}.changes
# Search engine favicons.
Source2:        obs.png
Source3:        opensusesoftware.png
BuildRequires:  cmake(KF5Wallet) >= 5.27.0
BuildRequires:  cmake(Qt5Concurrent) >= 5.9.0
BuildRequires:  cmake(Qt5Core) >= 5.9.0
BuildRequires:  cmake(Qt5DBus) >= 5.9.0
BuildRequires:  cmake(Qt5Gui) >= 5.9.0
BuildRequires:  cmake(Qt5Network) >= 5.9.0
BuildRequires:  cmake(Qt5Positioning) >= 5.9.0
BuildRequires:  cmake(Qt5PrintSupport) >= 5.9.0
BuildRequires:  cmake(Qt5Qml) >= 5.9.0
BuildRequires:  cmake(Qt5Quick) >= 5.9.0
BuildRequires:  cmake(Qt5QuickWidgets) >= 5.9.0
BuildRequires:  cmake(Qt5Script) >= 5.9.0
BuildRequires:  cmake(Qt5Sql) >= 5.9.0
BuildRequires:  cmake(Qt5Test) >= 5.9.0
BuildRequires:  cmake(Qt5WebChannel) >= 5.9.0
BuildRequires:  cmake(Qt5WebEngineCore) >= 5.9.0
BuildRequires:  cmake(Qt5WebEngineWidgets) >= 5.9.0
BuildRequires:  cmake(Qt5Widgets) >= 5.9.0
BuildRequires:  cmake(Qt5X11Extras) >= 5.9.0
BuildRequires:  extra-cmake-modules >= 5.27.0
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  ki18n-devel
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  libressl-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(xcb-atom)
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
# it doesn't start without it (boo#1067547)
Requires:       libQt5Sql5-sqlite
Provides:       qupzilla = %{version}
Obsoletes:      qupzilla < %{version}


Falkon is a web browser designed to well integrate with all
common Linux desktops like GNOME and KDE Plasma desktops.
It supports current web standards and comes with many features,
such as an integrated ad blocker.

It was previously known as QupZilla.

%package gnome-keyring
Summary:        GNOME Keyring plugin for Falkon
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:gnome-keyring)
Provides:       qupzilla-gnome-keyring = %{version}
Obsoletes:      qupzilla-gnome-keyring < %{version}

%description gnome-keyring
Plugin for the Falkon browser that allows storing passwords in
GNOME Keyring.

%package kwallet
Summary:        KWallet plugin for Falkon
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name} = %{version}
Requires:       kwalletd5
Supplements:    packageand(%{name}:kwalletd5)
Provides:       qupzilla-kwallet = %{version}
Obsoletes:      qupzilla-kwallet < %{version}

%description kwallet
Plugin for the Falkon browser that allows storing passwords in KWallet.

%setup -q -n %{name}-%{version}
# Remove __DATE__ and __TIME__
FAKE_DATE="\"$(LC_ALL=C date -u -r %{SOURCE1} '+%%b %%e %%Y')\""
FAKE_TIME="\"$(LC_ALL=C date -u -r %{SOURCE1} '+%%H:%%M')\""
find .  -type f -regex '.*\.\(h\|c\|cpp\)' | xargs sed -i "s/__DATE__/${FAKE_DATE}/g;s/__TIME__/${FAKE_TIME}/g"

# openSUSE icons.
cp -f %{SOURCE2} %{SOURCE3} src/lib/data/icons/sites/

  export USE_WEBGL=true
  %cmake_kf5 -d build

  %kf5_makeinstall DESTDIR=%{buildroot} -C build
# FIXME: Split library into a separate package and also create falkon-devel with ???
rm -vf %{buildroot}%{_libdir}/
# We don't need a test plugin that does nothing.
rm -vf %{buildroot}%{_libdir}/%{name}/

%suse_update_desktop_file org.kde.falkon
%fdupes %{buildroot}%{_kf5_sharedir}/

%find_lang %{name} --all-name --with-qt



%exclude %{_kf5_plugindir}/falkon/
%exclude %{_kf5_plugindir}/falkon/

%files gnome-keyring

%files kwallet

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by