rpms/mpv/F-19 mpv.spec,1.7,1.8

Miro Hrončok churchyard at rpmfusion.org
Mon Nov 11 15:10:55 CET 2013


Author: churchyard

Update of /cvs/free/rpms/mpv/F-19
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv4924

Modified Files:
	mpv.spec 
Log Message:
* Mon Nov 11 2013 Miro Hrončok <mhroncok at redhat.com> - 0.2.3-4
- There's no longer AUTHORS file in %doc
- Install icons



Index: mpv.spec
===================================================================
RCS file: /cvs/free/rpms/mpv/F-19/mpv.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mpv.spec	11 Nov 2013 12:38:47 -0000	1.7
+++ mpv.spec	11 Nov 2013 14:10:55 -0000	1.8
@@ -1,6 +1,6 @@
 Name:           mpv
 Version:        0.2.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Movie player playing most video formats and DVDs
 License:        GPLv3+
 URL:            http://%{name}.io/
@@ -29,6 +29,8 @@
 BuildRequires:  pulseaudio-libs-devel
 BuildRequires:  python-docutils
 
+Requires:       hicolor-icon-theme
+
 %description
 Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
 of video file formats, audio and video codecs, and subtitle types. Special
@@ -62,17 +64,45 @@
 
 # Default config files
 install -Dpm 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
+install -Dpm 644 etc/input.conf %{buildroot}%{_sysconfdir}/%{name}/input.conf
+
 desktop-file-install %{SOURCE1}
 
+for RES in 16 32 64; do
+  install -Dpm 644 etc/mpv-icon-8bit-${RES}x${RES}.png %{buildroot}%{_datadir}/icons/hicolor/${RES}x${RES}/apps/%{name}.png
+done
+
+%post
+update-desktop-database &>/dev/null || :
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+  gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
 %files
-%doc AUTHORS LICENSE README.md Copyright
+%doc LICENSE README.md Copyright
 %{_bindir}/%{name}
 %{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
 %{_mandir}/man1/%{name}.*
 %{_sysconfdir}/%{name}
 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
+%config(noreplace) %{_sysconfdir}/%{name}/input.conf
 
 %changelog
+* Mon Nov 11 2013 Miro Hrončok <mhroncok at redhat.com> - 0.2.3-4
+- There's no longer AUTHORS file in %%doc
+- Install icons
+
 * Mon Nov 11 2013 Miro Hrončok <mhroncok at redhat.com> - 0.2.3-3
 - Rebased config patch
 


More information about the rpmfusion-commits mailing list