!2 初始化仓库

From: @wangtaozhi 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
This commit is contained in:
openeuler-ci-bot 2023-07-04 01:51:39 +00:00 committed by Gitee
commit 66ce1bdf4d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 58 additions and 0 deletions

Binary file not shown.

54
zathura-pdf-poppler.spec Normal file
View File

@ -0,0 +1,54 @@
Name: zathura-pdf-poppler
Version: 0.3.1
Release: 1
Summary: PDF support for zathura via poppler
License: Zlib
URL: http://pwmt.org/projects/%{name}
Source0: http://pwmt.org/projects/%{name}/download/%{name}-%{version}.tar.xz
#BuildRequires: binutils
# Needed to validate the desktop file
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: girara-devel
BuildRequires: glib2-devel
# Needed to validate appdata
BuildRequires: libappstream-glib
BuildRequires: meson >= 0.56
BuildRequires: poppler-glib-devel >= 0.18
BuildRequires: zathura-devel >= 0.5.2
Requires: zathura >= 0.5.2
# Old plugins used alternatives
Conflicts: zathura-pdf-mupdf < 0.3.3
%description
The zathura-pdf-poppler plugin adds PDF support to zathura by using
the poppler rendering engine.
%prep
%setup -q
%build
%meson
%meson_build
%install
%meson_install
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
# Clean the old alternatives link
%pre
[ -L %{_libdir}/zathura/pdf.so ] || rm -f %{_libdir}/zathura/pdf.so
%files
%license LICENSE
%doc AUTHORS
%{_libdir}/zathura/libpdf-poppler.so
%{_datadir}/applications/org.pwmt.zathura-pdf-poppler.desktop
%{_datadir}/metainfo/org.pwmt.zathura-pdf-poppler.metainfo.xml
%changelog
* Tue Jun 27 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 0.3.1-1
- Package init

4
zathura-pdf-poppler.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: https://git.pwmt.org/pwmt/zathura-pdf-poppler
tag_prefix: "v"
separator: "."