File zathura-plugin-pdf-poppler.spec of Package zathura-plugin-pdf-poppler

#
# spec file for package zathura-plugin-pdf-poppler
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define realname zathura-pdf-poppler
Name:           zathura-plugin-pdf-poppler
Version:        0.3.3
Release:        0
Summary:        PDF support for zathura via poppler
License:        Zlib
Group:          Productivity/Office/Other
URL:            https://pwmt.org/projects/%{realname}/
Source:         https://pwmt.org/projects/%{realname}/download/%{realname}-%{version}.tar.xz
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(girara-gtk3)
BuildRequires:  pkgconfig(poppler-glib) >= 21.12
BuildRequires:  pkgconfig(zathura) >= 0.5.3
Requires:       zathura >= 0.5.3
Provides:       zathura-pdf-poppler-plugin

%description
The zathura-pdf-poppler plugin adds PDF support to zathura by using the poppler rendering engine.

%prep
%setup -q -n %{realname}-%{version}

%build
export CFLAGS="%{optflags}"
%meson -Dtests=disabled
%meson_build

%install
%meson_install
find %{buildroot} -name '*.desktop' -delete -print

%files -n %{name}
%license LICENSE
%doc AUTHORS
%dir %{_libdir}/zathura
%{_libdir}/zathura/libpdf-poppler.so
%{_datadir}/metainfo/org.pwmt.zathura-pdf-poppler.metainfo.xml

%changelog
openSUSE Build Service is sponsored by