File evince.spec of Package evince
#
# spec file for package evince
#
# 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: evince
Version: 3.2.1
Release: 1
%define _major_version 3.0
License: GPLv2+
Summary: GNOME Document Viewer
Url: http://www.gnome.org/projects/evince/
Group: Productivity/Office/Other
Source: http://download.gnome.org/sources/evince/3.2/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: ghostscript-fonts-std
BuildRequires: ghostscript-x11
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: intltool
BuildRequires: libdjvulibre-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: libpoppler-glib-devel
BuildRequires: libspectre-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: nautilus-devel
BuildRequires: t1lib-devel
BuildRequires: texlive-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
Recommends: %{name}-lang
# For the comics backend
Suggests: p7zip
Suggests: unrar
Suggests: unzip
# Replaces ggv in <= 10.3, gpdf in <= 10.2:
Provides: ggv gpdf
Obsoletes: ggv gpdf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Evince is a document viewer capable of displaying multiple and
singlepage document formats like PDF and PostScript.
%package devel
License: GPLv2+
Summary: GNOME Document Viewer
Group: Productivity/Office/Other
Requires: %{name} = %{version}
Obsoletes: evince-doc <= 2.25.4
Provides: evince-doc = 2.25.4
%description devel
Evince is a document viewer capable of displaying multiple and
singlepage document formats like PDF and PostScript.
%package -n nautilus-evince
License: GPLv2+
Summary: Evince Plugin for Nautilus
Group: Productivity/Office/Other
Requires: %{name} = %{version}
Supplements: packageand(evince:nautilus)
%description -n nautilus-evince
Evince is a document viewer capable of displaying multiple and
singlepage document formats like PDF and PostScript.
This package contains a plugin to integrate Evince into Nautilus.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --disable-static --with-pic\
--libexecdir=%{_libexecdir}/%{name} \
--disable-scrollkeeper\
--enable-djvu\
--enable-dvi\
--enable-comics\
--enable-t1lib\
--enable-nautilus\
--enable-introspection
%__make V=1 %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -r -N Evince evince GNOME GTK Graphics Office Viewer
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service
%{_datadir}/evince
%{_datadir}/GConf/gsettings/evince.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml
%{_datadir}/icons/hicolor/*/apps/evince*.*
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/evince.thumbnailer
# backends
%{_libdir}/evince/
%if "%{_libdir}" != "%{_libexecdir}"
# helpers & daemon
%{_libexecdir}/evince/
%endif
%{_libdir}/girepository-1.0/*.typelib
%{_libdir}/*.so.*
%doc %{_mandir}/man?/*.*
%files lang -f %{name}.lang
%files devel
%defattr(-, root, root)
%{_includedir}/evince
%{_libdir}/*.so
%{_libdir}/pkgconfig/evince*.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/evince
%{_datadir}/gtk-doc/html/libevdocument-%{_major_version}
%{_datadir}/gtk-doc/html/libevview-%{_major_version}
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%files -n nautilus-evince
%defattr(-,root,root)
%{_libdir}/nautilus/extensions-*/*.so
%changelog