File zathura-plugin-djvu.spec of Package zathura-plugin-djvu

#
# spec file for package zathura-plugin-djvu
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%define realname zathura-djvu
Name:           zathura-plugin-djvu
Version:        0.2.6
Release:        0
Summary:        Adds DjVu support to zathura by using the djvulibre library
License:        Zlib
Group:          Productivity/Office/Other
Url:            http://pwmt.org/projects/zathura/plugins/zathura-djvu/
Source:         http://pwmt.org/projects/zathura/plugins/download/%{realname}-%{version}.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(ddjvuapi)
BuildRequires:  pkgconfig(girara-gtk3)
BuildRequires:  pkgconfig(zathura)
Requires:       zathura
Provides:       zathura-djvu-plugin

%description
The zathura-djvu plugin adds DjVu support to zathura by using the djvulibre library.

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

%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags} VERBOSE=1 SFLAGS=""

%install
%make_install LIBDIR=%{_libdir} SFLAGS=""
find %{buildroot} -name '*.desktop' -delete -print

%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%files -n %{name}
%doc AUTHORS LICENSE
%dir %{_libdir}/zathura
%{_libdir}/zathura/djvu.so

%changelog
openSUSE Build Service is sponsored by