From 5d1b9b492eaeff5d03f6171ba7d2d05f424c8cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 2 Jul 2015 16:52:26 +0200 Subject: [PATCH] Install the desktop file correctly --- zathura-djvu.spec | 50 +++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/zathura-djvu.spec b/zathura-djvu.spec index d4c6cda..4d8d01f 100644 --- a/zathura-djvu.spec +++ b/zathura-djvu.spec @@ -1,22 +1,24 @@ -Name: zathura-djvu -Version: 0.2.4 -Release: 4%{?dist} -Summary: DjVu support for zathura -License: zlib -URL: http://pwmt.org/projects/zathura/plugins/%{name} -Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz -BuildRequires: binutils -BuildRequires: coreutils -BuildRequires: gcc -BuildRequires: make -BuildRequires: pkgconfig -BuildRequires: sed -BuildRequires: pkgconfig(cairo) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(ddjvuapi) -BuildRequires: pkgconfig(girara-gtk3) -BuildRequires: pkgconfig(zathura) -Requires: zathura +Name: zathura-djvu +Version: 0.2.4 +Release: 5%{?dist} +Summary: DjVu support for zathura +License: zlib +URL: http://pwmt.org/projects/zathura/plugins/%{name} +Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: sed +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(ddjvuapi) +BuildRequires: pkgconfig(girara-gtk3) +BuildRequires: pkgconfig(zathura) +Requires: zathura +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils %description The zathura-djvu plugin adds DjVu support to zathura by @@ -33,6 +35,13 @@ mv djvu-debug.so djvu.so %install make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop + +%post +update-desktop-database &> /dev/null || : + +%postun +update-desktop-database &> /dev/null || : %files %license LICENSE @@ -41,6 +50,9 @@ make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install %{_datadir}/applications/%{name}.desktop %changelog +* Thu Jul 02 2015 Petr Ĺ abata - 0.2.4-5 +- Install the desktop file correctly + * Fri Jun 19 2015 Fedora Release Engineering - 0.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild