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

Loading…
Cancel
Save