Install the desktop file correctly

epel9
Petr Šabata 10 years ago
parent 47c1e52b93
commit 5d1b9b492e

@ -1,22 +1,24 @@
Name: zathura-djvu Name: zathura-djvu
Version: 0.2.4 Version: 0.2.4
Release: 4%{?dist} Release: 5%{?dist}
Summary: DjVu support for zathura Summary: DjVu support for zathura
License: zlib License: zlib
URL: http://pwmt.org/projects/zathura/plugins/%{name} URL: http://pwmt.org/projects/zathura/plugins/%{name}
Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz
BuildRequires: binutils BuildRequires: binutils
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: sed BuildRequires: sed
BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(ddjvuapi) BuildRequires: pkgconfig(ddjvuapi)
BuildRequires: pkgconfig(girara-gtk3) BuildRequires: pkgconfig(girara-gtk3)
BuildRequires: pkgconfig(zathura) BuildRequires: pkgconfig(zathura)
Requires: zathura Requires: zathura
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description %description
The zathura-djvu plugin adds DjVu support to zathura by The zathura-djvu plugin adds DjVu support to zathura by
@ -33,6 +35,13 @@ mv djvu-debug.so djvu.so
%install %install
make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} 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 %files
%license LICENSE %license LICENSE
@ -41,6 +50,9 @@ make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%changelog %changelog
* Thu Jul 02 2015 Petr Šabata <contyk@redhat.com> - 0.2.4-5
- Install the desktop file correctly
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-4 * Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save