split off backends
This commit is contained in:
parent
1aeb33a318
commit
191a3e94aa
60
evince.spec
60
evince.spec
@ -14,6 +14,10 @@ Group: Applications/Publishing
|
||||
URL: http://www.gnome.org/projects/evince/
|
||||
Source0: http://download.gnome.org/sources/%{name}/2.21/%{name}-%{version}.tar.bz2
|
||||
Patch0: evince-0.6.0-print-error.patch
|
||||
# http://bugzilla.gnome.org/show_bug.cgi?id=512719
|
||||
Patch1: property-deps.patch
|
||||
# http://bugzilla.gnome.org/show_bug.cgi?id=512720
|
||||
Patch2: property-backends.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: gtk2-devel >= %{gtk2_version}
|
||||
@ -21,6 +25,7 @@ BuildRequires: glib2-devel >= %{glib2_version}
|
||||
BuildRequires: poppler-devel >= %{poppler_version}
|
||||
BuildRequires: libXt-devel
|
||||
BuildRequires: nautilus-devel
|
||||
BuildRequires: gnome-keyring-devel
|
||||
BuildRequires: libgnomeui-devel
|
||||
BuildRequires: libglade2-devel
|
||||
BuildRequires: libtiff-devel
|
||||
@ -54,9 +59,37 @@ Requires(postun): desktop-file-utils
|
||||
evince is a GNOME-based document viewer.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and headers for evince
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Libraries and header files for evince backend development.
|
||||
|
||||
|
||||
%package dvi
|
||||
Summary: Evince backend for dvi files
|
||||
Group: Applications/Publishing
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description dvi
|
||||
A backend to let evince display dvi files.
|
||||
|
||||
|
||||
%package djvu
|
||||
Summary: Evince backend for djvu files
|
||||
Group: Applications/Publishing
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description djvu
|
||||
A backend to let evince display djvu files.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .print-error
|
||||
%patch1 -p1 -b .property-deps
|
||||
|
||||
%build
|
||||
intltoolize --force
|
||||
@ -86,6 +119,8 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
||||
/bin/rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
|
||||
# Get rid of static libs and .la files.
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/evince/backends/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
# don't ship icon caches
|
||||
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
|
||||
@ -109,6 +144,7 @@ fi
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||
gconftool-2 --makefile-install-rule \
|
||||
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||
@ -138,6 +174,7 @@ fi
|
||||
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
update-desktop-database &> /dev/null ||:
|
||||
scrollkeeper-update -q || :
|
||||
|
||||
@ -155,11 +192,32 @@ fi
|
||||
%{_datadir}/%{name}/
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_sysconfdir}/gconf/schemas/*.schemas
|
||||
%{_datadir}/omf/%{name}/
|
||||
%{_datadir}/icons/hicolor/*/apps/evince.*
|
||||
%{_mandir}/man1/evince.1.gz
|
||||
%{_libdir}/libevbackend.so.*
|
||||
%dir %{_libdir}/evince/backends
|
||||
%{_libdir}/evince/backends/libpdfdocument.so
|
||||
%{_libdir}/evince/backends/pdfdocument.evince-backend
|
||||
%{_libdir}/evince/backends/libpsdocument.so
|
||||
%{_libdir}/evince/backends/psdocument.evince-backend
|
||||
%{_libdir}/evince/backends/libtiffdocument.so
|
||||
%{_libdir}/evince/backends/tiffdocument.evince-backend
|
||||
%{_libdir}/evince/backends/libcomicsdocument.so
|
||||
%{_libdir}/evince/backends/comicsdocument.evince-backend
|
||||
|
||||
|
||||
%files devel
|
||||
%{_includedir}/evince-2.20
|
||||
%{_libdir}/libevbackend.so
|
||||
|
||||
%files dvi
|
||||
%{_libdir}/evince/backends/libdvidocument.so*
|
||||
%{_libdir}/evince/backends/dvidocument.evince-backend
|
||||
|
||||
%files djvu
|
||||
%{_libdir}/evince/backends/libdjvudocument.so
|
||||
%{_libdir}/evince/backends/djvudocument.evince-backend
|
||||
|
||||
%changelog
|
||||
* Mon Jan 28 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.90-1
|
||||
- Update to 2.21.90
|
||||
|
12
property-backends.patch
Normal file
12
property-backends.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up evince-2.21.90/properties/ev-properties-main.c.property-deps evince-2.21.90/properties/ev-properties-main.c
|
||||
--- evince-2.21.90/properties/ev-properties-main.c.property-deps 2008-01-29 00:09:41.000000000 -0500
|
||||
+++ evince-2.21.90/properties/ev-properties-main.c 2008-01-29 00:14:44.000000000 -0500
|
||||
@@ -133,6 +133,8 @@ nautilus_module_initialize (GTypeModule
|
||||
/* set up translation catalog */
|
||||
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
+
|
||||
+ ev_backends_manager_init ();
|
||||
}
|
||||
|
||||
void
|
Loading…
Reference in New Issue
Block a user