forked from pool/calcurse
use suse_version as a conditional for update-desktop-files
OBS-URL: https://build.opensuse.org/package/show/utilities/calcurse?expand=0&rev=5
This commit is contained in:
parent
45c3918b8d
commit
f1fc8033ea
@ -13,7 +13,7 @@ License: BSD License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
BuildRequires: ncurses-devel gcc make glibc-devel gettext gettext-devel
|
||||
BuildRequires: autoconf automake libtool
|
||||
%if 0%{?suse_update_desktop_file:1}
|
||||
%if 0%{?suse_version} > 0
|
||||
BuildRequires: update-desktop-files
|
||||
%endif
|
||||
|
||||
@ -41,7 +41,7 @@ Authors:
|
||||
%install
|
||||
%makeinstall
|
||||
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
||||
%if 0%{?suse_update_desktop_file:1}
|
||||
%if 0%{?suse_version} > 0
|
||||
%suse_update_desktop_file -r "%{name}" Office Calendar
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user