Install the desktop file correctly

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

@ -1,6 +1,6 @@
Name: zathura-djvu
Version: 0.2.4
Release: 4%{?dist}
Release: 5%{?dist}
Summary: DjVu support for zathura
License: zlib
URL: http://pwmt.org/projects/zathura/plugins/%{name}
@ -17,6 +17,8 @@ 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 <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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save