File mingw32-epdfview.spec of Package mingw32-epdfview

#
# spec file for package mingw32-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:           mingw32-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:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gtk2-devel
BuildRequires:  mingw32-libpoppler-glib-devel
Requires:       %{name}-lang
%_mingw32_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.

%_mingw32_debug_package

%lang_package

%prep
%setup -q -n epdfview-%{version}
%patch -P 0 -p1

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--without-cups

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw32_datadir}/applications/epdfview.desktop

%find_lang epdfview

%files
%defattr(-,root,root)
%{_mingw32_bindir}/epdfview.exe
%{_mingw32_datadir}/epdfview/ui/*.xml
%{_mingw32_datadir}/epdfview/pixmaps/*.png
%{_mingw32_mandir}/man1/epdfview.1.gz

%files lang -f epdfview.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by