Simplify desktop file installation.

Also add desktop-file-validate, as per Packaging Guidelines requirement.
epel8
Simone Caronni 11 years ago
parent 61eb05f858
commit 347ce86bc8

@ -161,6 +161,9 @@ client.
%prep
%setup -qn Remmina-%{commit}
# Remove useless tags from desktop file
sed -i -e '/^OnlyShowIn/d' %{name}/desktop/%{name}.desktop
%build
mkdir -p build
pushd build
@ -193,11 +196,7 @@ popd
%install
make install/fast DESTDIR=%{buildroot} -C build
desktop-file-install --vendor="" --delete-original \
--add-category="RemoteAccess" \
--remove-category="X-GNOME-NetworkSettings" \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%find_lang %{name}-plugins

Loading…
Cancel
Save