File epdfview.spec of Package epdfview

#
# spec file for package epdfview
#
# Copyright (c) 2011 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:           epdfview
Version:        0.1.7
Release:        13.<RELEASE3>
License:        GPLv2+
Summary:        Lightweight PDF document viewer
Url:            http://trac.emma-soft.com/epdfview
Group:          Productivity/Office/Other
Source:         http://trac.emma-soft.com/epdfview/chrome/site/releases/%{name}-%{version}.tar.bz2
Patch0:         %{name}-0.1.7-desktop.patch
Patch1:         epdfview-0.1.7-non_void.patch
Patch2:         epdfview-0.1.7-q_quit.patch
BuildRequires:  cups-devel
BuildRequires:  gcc-c++
BuildRequires:  libpoppler-glib-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.

%prep
%setup -q
%patch0
%patch1
%patch2

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file %{name}
(
    install -d -m 755 %{buildroot}%{_datadir}/pixmaps
    cd %{buildroot}%{_datadir}/epdfview/pixmaps
    ln -s icon_epdfview-48.png ../../pixmaps/epdfview.png
)
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/%{name}
%doc AUTHORS COPYING README NEWS THANKS
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/pixmaps
%{_datadir}/%{name}/ui
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by