From 1f98054f20b4559bbb5ec772ee74582913cee538 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Fri, 1 Apr 2011 23:38:12 +0200 Subject: [PATCH] Update to 0.0.8.3 Drop patch for poppler >= 0.15 (no longer needed) Run update-mime-database in %post and %postun --- .gitignore | 1 + sources | 2 +- zathura-0.0.8.1-poppler-0.15-fix.patch | 12 ------------ zathura.spec | 19 +++++++++++++++---- 4 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 zathura-0.0.8.1-poppler-0.15-fix.patch diff --git a/.gitignore b/.gitignore index c2bb5a6..e959bc7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ zathura-0.0.8.1.tar.gz /zathura-0.0.8.2.tar.gz +/zathura-0.0.8.3.tar.gz diff --git a/sources b/sources index a3ee187..62cf59a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b63750f8993e0f139162101a19576981 zathura-0.0.8.2.tar.gz +95b1d02593e7055f08da3825ad54954d zathura-0.0.8.3.tar.gz diff --git a/zathura-0.0.8.1-poppler-0.15-fix.patch b/zathura-0.0.8.1-poppler-0.15-fix.patch deleted file mode 100644 index 1e586b3..0000000 --- a/zathura-0.0.8.1-poppler-0.15-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up zathura-0.0.8.1/zathura.c.poppler15 zathura-0.0.8.1/zathura.c ---- zathura-0.0.8.1/zathura.c.poppler15 2010-10-06 16:35:44.966101001 -0400 -+++ zathura-0.0.8.1/zathura.c 2010-10-06 16:35:58.124101001 -0400 -@@ -4300,7 +4300,7 @@ cb_view_button_release(GtkWidget* widget - - /* get selected text */ - g_static_mutex_lock(&(Zathura.Lock.pdflib_lock)); -- char* selected_text = poppler_page_get_text( -+ char* selected_text = poppler_page_get_selected_text( - Zathura.PDF.pages[Zathura.PDF.page_number]->page,SELECTION_STYLE, - &rectangle); - diff --git a/zathura.spec b/zathura.spec index c053915..bfc79e4 100644 --- a/zathura.spec +++ b/zathura.spec @@ -1,14 +1,13 @@ Name: zathura -Version: 0.0.8.2 -Release: 5%{?dist} +Version: 0.0.8.3 +Release: 1%{?dist} Summary: A lightweight PDF viewer Group: Applications/Publishing License: zlib URL: http://zathura.pwmt.org/projects/zathura Source0: http://zathura.pwmt.org/attachments/download/31/%{name}-%{version}.tar.gz Patch0: zathura-add-desktop-file.patch -Patch1: zathura-0.0.8.1-poppler-0.15-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gdk-pixbuf-devel, gtk2-devel, poppler-glib-devel, cairo-devel, glib2-devel BuildRequires: desktop-file-utils @@ -24,7 +23,6 @@ an easy usage that mainly focuses on keyboard interaction. %prep %setup -q %patch0 -p1 -b .desktopfile -%patch1 -p1 -b .poppler15 # don't rebuid at install time sed -ie "s/install:\ all/install:\ /g" Makefile @@ -47,6 +45,14 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop rm -rf %{buildroot} +%post +update-mime-database %{_datadir}/mime &> /dev/null || : + + +%postun +update-mime-database %{_datadir}/mime &> /dev/null || : + + %files %defattr(-,root,root,-) %doc LICENSE README @@ -56,6 +62,11 @@ rm -rf %{buildroot} %changelog +* Fri Apr 01 2011 Christoph Wickert - 0.0.8.3-1 +- Update to 0.0.8.3 +- Drop patch for poppler >= 0.15 (no longer needed) +- Run update-mime-database in %%post and %%postun + * Sun Mar 13 2011 Marek Kasik - 0.0.8.2-5 - Rebuild (poppler-0.16.3)