File zathura-pdf-mupdf.spec of Package zathura-pdf-mupdf

#
# spec file for package zathura-pdf-mupdf
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#

Name:           zathura-pdf-mupdf
Version:        0.2.4
Release:        0
License:        Zlib
Summary:        Adds PDF support to zathura by using the mupdf rendering library
Url:            http://pwmt.org/projects/zathura/plugins/zathura-pdf-mupdf/
Group:          Productivity/Office/Other
Source:         http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz
BuildRequires:  jbig2dec-devel
BuildRequires:  libjpeg8-devel
BuildRequires:  mupdf-devel-static
BuildRequires:  pkgconfig(girara-gtk3)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libcrypto)
BuildRequires:  openjpeg-devel
#BuildRequires:  pkgconfig(libopenjp2)
BuildRequires:  pkgconfig(zathura)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%package -n %{name}-plugin
Summary:        Adds PDF support to zathura by using the mupdf rendering library
Group:          Productivity/Office/Other
Conflicts:      zathura-pdf-poppler-plugin

%description -n %{name}-plugin
The zathura-pdf-mupdf plugin adds PDF support to zathura by using the mupdf rendering library.

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
make MUPDF_LIB="-lmupdf" %{?_smp_mflags} 

%install
%make_install LIBDIR=%{_libdir}

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

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

%files -n %{name}-plugin
%defattr(-,root,root)
%doc AUTHORS LICENSE
%dir %_libdir/zathura
%_libdir/zathura/pdf.so
%_datadir/applications/%{name}.desktop

%changelog