Introducing bash and zsh completion subpackages
Fixes rhbz#1649839
epel9
Petr Šabata 6 years ago
parent fdf84bfcf1
commit 8224b44695

1
.gitignore vendored

@ -20,3 +20,4 @@ zathura-0.0.8.1.tar.gz
/zathura-0.3.7.tar.gz
/zathura-0.3.9.tar.xz
/zathura-0.4.0.tar.xz
/zathura-0.4.1.tar.xz

@ -1 +1 @@
SHA512 (zathura-0.4.0.tar.xz) = 3da8099ca4cad357f637d88dad3491b1fdea85d4d2201357ebbea3b8a2923aa9f4c79027aabe10289d28a35d88a27ffe8775d93a1e4d694c5e1bc1218016d421
SHA512 (zathura-0.4.1.tar.xz) = 370e7fa12a3a3a2a973870a99f7b2b910c808d6932c1de9093630d7e8bd7d97feb4b7df713e9ac33c7927849b63174a899ce6eaa60db89b1c47d6e13ef181ad6

@ -1,11 +1,12 @@
Name: zathura
Version: 0.4.0
Release: 2%{?dist}
Version: 0.4.1
Release: 1%{?dist}
Summary: A lightweight document viewer
Group: Applications/Publishing
License: zlib
URL: http://pwmt.org/projects/%{name}/
Source0: http://pwmt.org/projects/%{name}/download/%{name}-%{version}.tar.xz
BuildRequires: bash-completion
BuildRequires: binutils
BuildRequires: check
BuildRequires: desktop-file-utils
@ -18,10 +19,12 @@ BuildRequires: gtk3-devel >= 3.22
BuildRequires: intltool
# Needed to validate appdata
BuildRequires: libappstream-glib
BuildRequires: libseccomp-devel
BuildRequires: meson >= 0.45
BuildRequires: python3-sphinx
BuildRequires: sqlite-devel >= 3.5.9
BuildRequires: texlive-synctex
BuildRequires: texlive-lib-devel
BuildRequires: zsh
Suggests: zathura-cb
Suggests: zathusa-djvu
@ -29,6 +32,9 @@ Suggests: zathusa-djvu
Suggests: zathura-pdf-poppler
Suggests: zathura-ps
Suggests: zathura-bash-completion
Suggests: zathura-zsh-completion
%description
Zathura is a highly customizable and functional document viewer.
It provides a minimalistic and space saving interface as well as
@ -64,11 +70,29 @@ Requires: zathura-ps
%description plugins-all
This package installs all available Zathura plugins.
%package bash-completion
Summary: bash-completion files for zathura
BuildArch: noarch
Requires: bash-completion
Requires: zathura = %{version}-%{release}
%description bash-completion
This package provides %{summary}.
%package zsh-completion
Summary: zsh-completion files for zathura
BuildArch: noarch
Requires: zsh
Requires: zathura = %{version}-%{release}
%description zsh-completion
This package provides %{summary}.
%prep
%setup -q
%build
%meson
%meson -Denable-synctex=true -Denable-sqlite=true -Denable-magic=true -Denable-seccomp=true
%meson_build
%install
@ -76,6 +100,11 @@ This package installs all available Zathura plugins.
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%find_lang zathura
# Move the zsh-completions to the right location
mkdir %{buildroot}/%{_datadir}/zsh/site-functions
mv %{buildroot}/%{_datadir}/zsh/vendor-completions/_zathura \
%{buildroot}/%{_datadir}/zsh/site-functions
rmdir %{buildroot}/%{_datadir}/zsh/vendor-completions
%files -f zathura.lang
%license LICENSE
@ -93,7 +122,18 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%files plugins-all
%files bash-completion
%{_datadir}/bash-completion/completions/zathura
%files zsh-completion
%{_datadir}/zsh/site-functions/_zathura
%changelog
* Fri Nov 16 2018 Petr Šabata <contyk@redhat.com> - 0.4.1-1
- 0.4.1 bump
- Introducing bash and zsh completion subpackages
- Fixes rhbz#1649839
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save