fix desktop file installation

This commit is contained in:
Nils Philippsen 2006-06-08 15:18:47 +00:00
parent 2026e78abb
commit aba59dd2e6

View File

@ -1,3 +1,5 @@
%define desktop_vendor fedora
Name: xsane
Summary: An X Window System front-end for the SANE scanner interface.
Version: 0.99
@ -68,9 +70,10 @@ mkdir -p %{buildroot}%{_sbindir}
install -m 0755 %SOURCE1 %{buildroot}%{_sbindir}/xsane-install-gimp-plugin
mkdir %{buildroot}%{_datadir}/applications
desktop-file-install --vendor net --delete-original \
desktop-file-install --vendor %{desktop_vendor} \
--dir %{buildroot}%{_datadir}/applications \
--add-category X-Red-Hat-Base \
--add-category X-Fedora \
--add-category Graphics \
--add-category Application \
%{SOURCE2}
@ -88,7 +91,7 @@ rm -rf %{buildroot}
%{_mandir}/man1/*
%{_datadir}/sane
%dir %{_datadir}/applications
%{_datadir}/applications/xsane.desktop
%{_datadir}/applications/%{desktop_vendor}-xsane.desktop
%files gimp
%defattr(-,root,root)