zeal/zeal.spec
Dmitriy Perlow 937ce2f171 - Update to version 0.7.2:
* docs(readme): fix Telegram link
  * feat(ui): add shortcut (Ctrl+B) to toggle sidebar visibility
  * chore: fix typos in code comments
  * fix(app): do not register protocol handlers on startup
  * fix(ui): fix Unix build when X11 is not available
  * docs(readme): update license to GPLv3 or later (#1646)
  * chore(pkg): remove unused zeal.wxs file
  * fix(browser): use button release for forward/back navigation
  * refactor(browser): replace WebKit specific CSS rules
  * refactor(registry): add missing override specifier
  * fix(core): use archive_entry_pathname_utf8
  * feat(registry,ui): show docset search keywords/prefixes
  * refactor(registry): use class enum for index level
  * fix(browser): use default QWebEngineProfile for Qt 6
  * fix(ui): use correct QWebEngineProfile when applying font settings
  * feat(browser): apply dark mode without restart with Qt 6.7+

OBS-URL: https://build.opensuse.org/package/show/devel:tools/zeal?expand=0&rev=39
2024-09-22 07:30:47 +00:00

91 lines
3.0 KiB
RPMSpec

#
# spec file for package zeal
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global optflags %{optflags} -Wno-unused-variable
Name: zeal
Version: 0.7.2
Release: 0
Summary: Offline API documentation browser
License: GPL-3.0-or-later
Group: Development/Tools/Other
URL: https://zealdocs.org
Source0: %{name}-%{version}.tar.xz
# `help2man zeal > zeal.1` can't be run without X started.
Source9: zeal.1
# PATCH-FIX-UPSTREAM zeal-cmake-find-qt-components.patch gh#zealdocs/zeal#1643 badshah400@gmail.com -- Explicitly find necessary Qt6 components to fix build with Qt 6.7.2
Patch0: zeal-cmake-find-qt-components.patch
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qt6-gui-private-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt6Concurrent) >= 6.2.0
BuildRequires: pkgconfig(Qt6Core) >= 6.2.0
BuildRequires: pkgconfig(Qt6Gui) >= 6.2.0
BuildRequires: pkgconfig(Qt6WebChannel) >= 6.2.0
BuildRequires: pkgconfig(Qt6WebEngineWidgets) >= 6.2.0
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xcb-keysyms)
Requires: libQt6Sql6 >= 6.2.0
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
%description
Zeal is an offline API documentation browser inspired by Dash
(OS X app).
* Quickly search documentation using Alt+Space (or a customised)
hotkey to display Zeal from any place in your workspace.
* Search in multiple sets of documentation at once.
* Don't be dependent on your internet connection.
* Integrate Zeal with Emacs, Sublime Text, or Vim. See Usage »
Editor plugins for details.
%prep
%autosetup -p1
%build
%cmake_qt6 -DCMAKE_SKIP_INSTALL_RPATH=ON
%qt6_build
%install
%qt6_install
%suse_update_desktop_file -r org.zealdocs.zeal Office Viewer
%fdupes -s %{buildroot}%{_datadir}
# Man pages:
mkdir -p %{buildroot}%{_mandir}/man1
cp %{SOURCE9} %{buildroot}%{_mandir}/man1
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}
%{_datadir}/applications/org.zealdocs.zeal.desktop
%{_datadir}/metainfo/org.zealdocs.zeal.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}*
%changelog