File mingw64-epdfview.spec of Package mingw64-epdfview
#
# spec file for package mingw64-epdfview
#
# 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: mingw64-epdfview
Version: 0.1.8
Release: 0
Summary: Lightweight PDF document viewer
License: GPL-2.0-or-later
Group: Development/Libraries
Url: http://trac.emma-soft.com/epdfview
Source: http://trac.emma-soft.com/epdfview/chrome/site/releases/epdfview-%{version}.tar.bz2
Patch0: epdfview-0.1.8-glib_h.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libpoppler-glib-devel
Requires: %{name}-lang
%_mingw64_package_header_debug
BuildArch: noarch
%description
ePDFView is a lightweight PDF document viewer using Poppler and GTK+ libraries.
The aim of ePDFView is to make a simple PDF document viewer, in the lines of
Evince but without using the Gnome libraries.
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n epdfview-%{version}
%patch -P 0 -p1
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
--enable-shared --disable-static \
--without-cups
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw64_datadir}/applications/epdfview.desktop
%find_lang epdfview
%files
%defattr(-,root,root)
%{_mingw64_bindir}/epdfview.exe
%{_mingw64_datadir}/epdfview/ui/*.xml
%{_mingw64_datadir}/epdfview/pixmaps/*.png
%{_mingw64_mandir}/man1/epdfview.1.gz
%files lang -f epdfview.lang
%defattr(-,root,root)
%changelog