From 36d49e8c92f4ba385d74dfa55b8d3e18abb9b303 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: May 30 2019 04:09:08 +0000 Subject: Improved specfile during a new package review --- diff --git a/zeal.spec b/zeal.spec index 5b47dc1..b454e85 100644 --- a/zeal.spec +++ b/zeal.spec @@ -1,6 +1,6 @@ Name: zeal Version: 0.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Offline documentation browser inspired by Dash # the libqxt-sourced files are BSD licensed @@ -8,17 +8,15 @@ License: GPLv3+ and BSD URL: https://zealdocs.org/ Source0: https://github.com/zealdocs/zeal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: cmake -BuildRequires: extra-cmake-modules +BuildRequires: cmake3 +BuildRequires: cmake(Qt5) +BuildRequires: cmake(Qt5WebKit) +BuildRequires: cmake(Qt5X11Extras) BuildRequires: desktop-file-utils +BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: libarchive-devel -# workaround for qt5-qtbase-devel not depending on qt5-qtbase -BuildRequires: qt5-qtbase -BuildRequires: qt5-qtbase-devel -BuildRequires: qt5-qtwebkit-devel -BuildRequires: qt5-qtx11extras-devel BuildRequires: sqlite-devel BuildRequires: xcb-util-keysyms-devel Requires: hicolor-icon-theme @@ -47,14 +45,14 @@ Zeal is a simple offline documentation browser inspired by Dash. # turn off shared libs building: # - it's only used from Zeal itself # - build scripts not configured to install the lib -%cmake \ +%cmake3 \ -DBUILD_SHARED_LIBS:BOOL=OFF \ . %make_build %install -%make_install DESTDIR=%{buildroot} +%make_install %check @@ -65,13 +63,16 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.zealdocs.Z %files %license COPYING %doc README.md -%{_bindir}/zeal +%{_bindir}/%{name} %{_datadir}/applications/org.zealdocs.Zeal.desktop %{_metainfodir}/org.zealdocs.Zeal.appdata.xml -%{_datadir}/icons/hicolor/*/apps/zeal.png +%{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog +* Thu May 30 2019 Lumír Balhar - 0.6.1-2 +- Specfile improved + * Wed Nov 7 2018 Michel Alexandre Salim - 0.6.1-1 - Update to 0.6.1