Accepting request 291215 from multimedia:libs

- Move vlc.desktop vlc package: AppStream bases the addition of
  packages to the store based on the .desktop file (which
  identifies the application). In case of VLC, we want to present
  'the full set' as part of the App Stores.

OBS-URL: https://build.opensuse.org/request/show/291215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vlc?expand=0&rev=35
This commit is contained in:
Dominique Leuenberger 2015-03-19 19:57:28 +00:00 committed by Git OBS Bridge
commit 172829a7fa
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 17 15:21:39 UTC 2015 - dimstar@opensuse.org
- Move vlc.desktop vlc package: AppStream bases the addition of
packages to the store based on the .desktop file (which
identifies the application). In case of VLC, we want to present
'the full set' as part of the App Stores.
-------------------------------------------------------------------
Wed Mar 4 11:09:14 UTC 2015 - dimstar@opensuse.org

View File

@ -438,7 +438,8 @@ echo '********* ENTERED INSTALL PHASE *********'
date
make DESTDIR=%{buildroot} install %{?_smp_mflags}
mkdir -p %{buildroot}/%{_datadir}/pixmaps
ln -s %{_datadir}/icons/hicolor/48x48/apps/vlc.png %{buildroot}/%{_datadir}/pixmaps/vlc.png
# We need a full copy, as the pixmap icon goes to the -noX package
cp %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/vlc.png %{buildroot}/%{_datadir}/pixmaps/vlc.png
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file vlc AudioVideo Audio Video Player
%fdupes %{buildroot}%{_datadir}/vlc
@ -480,8 +481,12 @@ done
%files
%defattr(-,root,root)
%{_bindir}/svlc
# The presence of the .desktop file is what gives AppStream the
# hint of which package to add in the appstore... 'vlc' is the place to be
%{_datadir}/applications/vlc.desktop
# The icon is the one referenced by the .desktop file
%{_datadir}/pixmaps/vlc.png
%{_bindir}/svlc
%{_datadir}/icons/hicolor/*/apps/vlc*
%dir %{_datadir}/kde4
%dir %{_datadir}/kde4/apps
@ -524,8 +529,6 @@ done
%defattr(-,root,root)
%doc %{_datadir}/doc/vlc/
%doc NEWS AUTHORS COPYING THANKS README
# The .desktop file does not imply a dependeny on X; so let's keep it here
%{_datadir}/applications/vlc.desktop
%{_bindir}/cvlc
%if 0%{?suse_version} >= 1320
%{_bindir}/nvlc