From d0017455fb4853d6fa104775acd4f07d5fa05c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 2 Jul 2015 16:39:57 +0200 Subject: [PATCH] Install the desktop file again --- zathura-cb.spec | 60 +++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/zathura-cb.spec b/zathura-cb.spec index dae6ec5..2b25f53 100644 --- a/zathura-cb.spec +++ b/zathura-cb.spec @@ -1,25 +1,27 @@ -Name: zathura-cb -Version: 0.1.4 -Release: 4%{?dist} -Summary: Comic book support for zathura -Group: Applications/Publishing -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(gdk-3.0) -BuildRequires: pkgconfig(gdk-pixbuf-2.0) -BuildRequires: pkgconfig(girara-gtk3) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(libarchive) -BuildRequires: pkgconfig(zathura) -Requires: zathura +Name: zathura-cb +Version: 0.1.4 +Release: 5%{?dist} +Summary: Comic book support for zathura +Group: Applications/Publishing +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(gdk-3.0) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(girara-gtk3) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libarchive) +BuildRequires: pkgconfig(zathura) +Requires: zathura +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils %description The zathura-cb plugin adds comic book archive support to zathura. @@ -33,15 +35,25 @@ CFLAGS='%{optflags}' make %{?_smp_mflags} LIBDIR=%{_libdir} debug mv cb-debug.so cb.so %install -make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install -rm -f %{buildroot}/%{_datadir}/applications/%{name}.desktop +make DESTDIR=%{buildroot} 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 %doc AUTHORS %{_libdir}/zathura/cb.so +%{_datadir}/applications/%{name}.desktop %changelog +* Thu Jul 02 2015 Petr Ĺ abata - 0.1.4-5 +- Install the desktop file again + * Fri Jun 19 2015 Fedora Release Engineering - 0.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild