diff options
| -rw-r--r-- | devtools/zeal.spec | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/devtools/zeal.spec b/devtools/zeal.spec new file mode 100644 index 0000000..4beeda3 --- /dev/null +++ b/devtools/zeal.spec @@ -0,0 +1,63 @@ +Name: zeal +Version: 0.1.1 +Release: 1%{?dist} +Summary: Offline documentation browser inspired by Dash + +License: GPLv3+ +URL: https://zealdocs.org/ +Source0: https://github.com/zealdocs/zeal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: %{name}-0.1.1-fix-includes.patch + +BuildRequires: desktop-file-utils +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: xcb-util-keysyms-devel +Requires: hicolor-icon-theme + +%description +Zeal is a simple offline documentation browser inspired by Dash. + + +%prep +%setup -q +%patch0 -p1 -b .fix-includes + + +%build +%{qmake_qt5} zeal.pro +make %{?_smp_mflags} + + +%install +%make_install INSTALL_ROOT=%{buildroot} +desktop-file-validate %{buildroot}/%{_datadir}/applications/zeal.desktop + + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files +%license COPYING +%doc README.md +%{_bindir}/zeal +%{_datadir}/applications/zeal.desktop +%{_datadir}/icons/hicolor/*/apps/zeal.png + + +%changelog +* Thu Sep 24 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.1.1-1 +- Initial package |
