[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: desktop-file-install problem

On Sat, 03 Jun 2006 22:38:05 +0100, Paul wrote:

> Hi,
> It looks like monodevelop is finally almost ready for acceptance, but
> I've hit a problem which can be gotten around, but I'm not happy with
> it.
> I have in the spec file the following
> desktop-file-install --vendor fedora \
>         --dir %{buildroot}%{_datadir}/applications \
>         --add-category X-Fedora \
>         %{SOURCE1}
> where Source1 is monodevelop.desktop
> When it builds, both the fedora-monodevelop.desktop and
> monodevelop.desktop are installed into
> %{buildroot}%{_datadir}/applications which is wrong - only the
> fedora-monodevelop one should be there.
> If I add --delete-original after the vendor, the build breaks as it can
> no longer find monodevelop.desktop.

What breaks? The %files section? In that case, why does the %files
section contain an entry for a monodevelop.desktop file? It only expects
files you specified.

If you only want to package %{_datadir}/applications/fedora-*.desktop
don't include a %files entry for a different .desktop file.

Also note that --delete-original on %{SOURCE1} is a DON'T.
%{SOURCE1} is the input file (= the "original"), and you never
want the spec to delete it.

> To get around this, after the file install, I just have a line
> rm -f %{buildroot}%{_datadir}/applications/monodevelop.desktop

This indicates that make install created this file. Examine its
contents, then use:

 desktop-file-install --vendor fedora \
         --dir %{buildroot}%{_datadir}/applications \
         --add-category X-Fedora \
         --delete-original \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]