Author: hobbes1069
Update of /cvs/free/rpms/mythtv/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv7215
Modified Files:
mythtv.spec
Log Message:
* Fri May 04 2012 Richard Shaw <hobbes1069(a)gmail.com> - 0.25-6
- Add Bonjour (Airplay) support.
- Fix user creation for packages that create directories owned by mythtv user.
Fixes BZ#2309.
Index: mythtv.spec
===================================================================
RCS file: /cvs/free/rpms/mythtv/devel/mythtv.spec,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- mythtv.spec 29 Apr 2012 12:27:13 -0000 1.95
+++ mythtv.spec 4 May 2012 18:19:49 -0000 1.96
@@ -86,7 +86,7 @@
Release: 0.1.git.%{_gitrev}%{?dist}
#Release: 0.1.rc1%{?dist}
%else
-Release: 5%{?dist}
+Release: 6%{?dist}
%endif
# The primary license is GPLv2+, but bits are borrowed from a number of
@@ -235,6 +235,7 @@
%if %{with_pulseaudio}
BuildRequires: pulseaudio-libs-devel
%endif
+BuildRequires: avahi-compat-libdns_sd-devel
# Bluray support
BuildRequires: libxml2-devel
@@ -1173,6 +1174,28 @@
usermod -a -G audio,video mythtv
exit 0
+%pre frontend
+# Add the "mythtv" user, with membership in the audio and video group
+getent group mythtv >/dev/null || groupadd -r mythtv
+getent passwd mythtv >/dev/null || \
+ useradd -r -g mythtv -d %{_localstatedir}/lib/mythtv -s /sbin/nologin \
+ -c "mythbackend user" mythtv
+# Make sure the mythtv user is in the audio and video group for existing
+# or new installs.
+usermod -a -G audio,video mythtv
+exit 0
+
+%pre -n mythmusic
+# Add the "mythtv" user, with membership in the audio and video group
+getent group mythtv >/dev/null || groupadd -r mythtv
+getent passwd mythtv >/dev/null || \
+ useradd -r -g mythtv -d %{_localstatedir}/lib/mythtv -s /sbin/nologin \
+ -c "mythbackend user" mythtv
+# Make sure the mythtv user is in the audio and video group for existing
+# or new installs.
+usermod -a -G audio,video mythtv
+exit 0
+
%post backend
%if 0%{?fedora} >= 16
if [ $1 -eq 1 ] ; then
@@ -1305,8 +1328,7 @@
%{_bindir}/mythshutdown
%{_bindir}/mythwelcome
%dir %{_libdir}/mythtv
-%dir %{_libdir}/mythtv/filters
-%{_libdir}/mythtv/filters/*
+%{_libdir}/mythtv/filters/
%dir %{_libdir}/mythtv/plugins
%dir %{_datadir}/mythtv/i18n
%dir %{_datadir}/mythtv/fonts
@@ -1481,6 +1503,11 @@
################################################################################
%changelog
+* Fri May 04 2012 Richard Shaw <hobbes1069(a)gmail.com> - 0.25-6
+- Add Bonjour (Airplay) support.
+- Fix user creation for packages that create directories owned by mythtv user.
+ Fixes BZ#2309.
+
* Sun Apr 29 2012 Richard Shaw <hobbes1069(a)gmail.com> - 0.25-5
- Update to latest 0.25/fixes.
- Really fix logrotate this time.
Show replies by date