summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <michel@michel-slm.name>2015-09-24 11:19:59 +0700
committerMichel Alexandre Salim <michel@michel-slm.name>2015-09-24 11:19:59 +0700
commit30a5dc60942ef4e1bb3c43fda8ec8882e77baf44 (patch)
treeb31b0414c367f5adc39f071263bc59b7c636cfc0
parentde259c2fb08ac34870be5798c8b9ad60842d53e0 (diff)
downloadspecs-30a5dc60942ef4e1bb3c43fda8ec8882e77baf44.tar.gz
specs-30a5dc60942ef4e1bb3c43fda8ec8882e77baf44.tar.xz
specs-30a5dc60942ef4e1bb3c43fda8ec8882e77baf44.zip
Submit zeal for review
-rw-r--r--devtools/zeal.spec63
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