move icon to -noX

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vlc?expand=0&rev=115
This commit is contained in:
Dominique Leuenberger 2015-03-17 16:05:17 +00:00 committed by Git OBS Bridge
parent f2fd9c2bc3
commit eeaccc484c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 17 15:21:39 UTC 2015 - dimstar@opensuse.org
- Move /usr/share/pixmaps/vlc.png to vlc-noX, to be next to the
.desktop file.
-------------------------------------------------------------------
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
@ -481,7 +482,6 @@ done
%files
%defattr(-,root,root)
%{_bindir}/svlc
%{_datadir}/pixmaps/vlc.png
%{_datadir}/icons/hicolor/*/apps/vlc*
%dir %{_datadir}/kde4
%dir %{_datadir}/kde4/apps
@ -526,6 +526,8 @@ done
%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
# The icon is the one referenced by the .desktop file
%{_datadir}/pixmaps/vlc.png
%{_bindir}/cvlc
%if 0%{?suse_version} >= 1320
%{_bindir}/nvlc