diff --git a/brltty.spec b/brltty.spec index 42be416..c73ae3f 100644 --- a/brltty.spec +++ b/brltty.spec @@ -19,7 +19,7 @@ Name: brltty Version: %{pkg_version} -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://mielke.cc/brltty/ @@ -91,6 +91,8 @@ Group: Applications/System License: LGPLv2+ Summary: Application Programming Interface for BRLTTY Requires: %{name} = %{pkg_version}-%{release} +Requires(pre): glibc-common, shadow-utils +Requires(post): coreutils, util-linux %description -n brlapi This package provides the run-time support for the Application Programming Interface to BRLTTY. @@ -274,6 +276,9 @@ mv Documents/BrlAPIref/{html,BrlAPIref} # Don't want static lib rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a +# ghost brlapi.key +touch ${RPM_BUILD_ROOT}%{_sysconfdir}/brlapi.key + %post %systemd_post brltty.service @@ -283,7 +288,17 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a %postun %systemd_postun_with_restart brltty.service -%post -n brlapi -p /sbin/ldconfig +%pre -n brlapi +getent group brlapi >/dev/null || groupadd -r brlapi >/dev/null + +%post -n brlapi +if [ ! -e %{_sysconfdir}/brlapi.key ]; then + mcookie > %{_sysconfdir}/brlapi.key + chgrp brlapi %{_sysconfdir}/brlapi.key + chmod 0640 %{_sysconfdir}/brlapi.key +fi +/sbin/ldconfig + %postun -n brlapi -p /sbin/ldconfig %files @@ -326,6 +341,7 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a %{_bindir}/xbrlapi %{_libdir}/brltty/libbrlttybba.so %{_libdir}/libbrlapi.so.* +%ghost %{_sysconfdir}/brlapi.key %doc Drivers/Braille/XWindow/README %doc Documents/Manual-BrlAPI/ %doc %{_mandir}/man1/xbrlapi.* @@ -362,6 +378,10 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a %endif %changelog +* Mon Sep 23 2013 Jaroslav Škarvada - 4.5-8 +- The brlapi.key is now preset, users in the brlapi group have access + Resolves: rhbz#1010656 + * Sat Aug 03 2013 Fedora Release Engineering - 4.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild