SHA256
1
0
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:
Pascal Bleser 2010-11-14 00:08:52 +00:00 committed by Git OBS Bridge
parent 45c3918b8d
commit f1fc8033ea

View File

@ -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