Script to trigger re-build of vimb - https://github.com/fanglingsu/vimb

vimb.spec.in 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Name: vimb
  2. Version: __APP_VERSION__
  3. Release: __APP_RELEASE__%{?dist}
  4. Summary: The Vim-like browser
  5. URL: https://github.com/fanglingsu/vimb
  6. License: GPLv3
  7. Source0: __APP_URLBASE__/archive/%{version}.tar.gz
  8. BuildRequires: desktop-file-utils
  9. BuildRequires: make
  10. BuildRequires: webkitgtk-devel
  11. %description
  12. Vimb is a Vim-like web browser that is inspired by Pentadactyl and
  13. Vimprobable. The goal of Vimb is to build a completely keyboard-driven,
  14. efficient and pleasurable browsing-experience with low memory and CPU
  15. usage that is intuitive to use for Vim users.
  16. %prep
  17. %autosetup -n %{name}-%{version}
  18. %build
  19. CFLAGS="${CFLAGS:-%{optflags}}"; export CFLAGS
  20. %make_build
  21. %install
  22. make install DESTDIR=%{buildroot} PREFIX=/usr
  23. sed -i -e '1 s|#!/usr/bin/env bash|#!/bin/bash|' \
  24. %{buildroot}/%{_datadir}/%{name}/examples/formfiller/formfiller
  25. %post
  26. update-desktop-database &> /dev/null || :
  27. %postun
  28. update-desktop-database &> /dev/null || :
  29. %check
  30. desktop-file-validate %{buildroot}%{_datadir}/applications/vimb.desktop
  31. %files
  32. %dir %{_datadir}/%{name}
  33. %dir %{_datadir}/%{name}/examples
  34. %dir %{_datadir}/%{name}/examples/formfiller
  35. %{_bindir}/vimb
  36. %{_mandir}/man1/vimb.1.gz
  37. %{_datadir}/%{name}/examples/formfiller/formfiller
  38. %{_datadir}/%{name}/examples/formfiller/scripts.js
  39. %{_datadir}/applications/vimb.desktop
  40. %changelog
  41. * __APP_DATE__ Alois Mahdal <netvor+vimb@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  42. - Unofficial experimental RPM pseudo-release
  43. # spec file generated from __APP_BUILDSCRIPT_VERSION__