Author: churchyard
Update of /cvs/free/rpms/mpv/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv5035
Modified Files:
mpv.spec
Log Message:
* Mon Nov 11 2013 Miro Hrončok <mhroncok(a)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/devel/mpv.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- mpv.spec 11 Nov 2013 12:38:34 -0000 1.10
+++ mpv.spec 11 Nov 2013 14:11:04 -0000 1.11
@@ -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(a)redhat.com> - 0.2.3-4
+- There's no longer AUTHORS file in %%doc
+- Install icons
+
* Mon Nov 11 2013 Miro Hrončok <mhroncok(a)redhat.com> - 0.2.3-3
- Rebased config patch
Show replies by date