The brlapi.key is now preset, users in the brlapi group have access
Resolves: rhbz#1010656
This commit is contained in:
parent
cb579065da
commit
3b4e139bd9
24
brltty.spec
24
brltty.spec
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: brltty
|
Name: brltty
|
||||||
Version: %{pkg_version}
|
Version: %{pkg_version}
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://mielke.cc/brltty/
|
URL: http://mielke.cc/brltty/
|
||||||
@ -93,6 +93,8 @@ Group: Applications/System
|
|||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Summary: Application Programming Interface for BRLTTY
|
Summary: Application Programming Interface for BRLTTY
|
||||||
Requires: %{name} = %{pkg_version}-%{release}
|
Requires: %{name} = %{pkg_version}-%{release}
|
||||||
|
Requires(pre): glibc-common, shadow-utils
|
||||||
|
Requires(post): coreutils, util-linux
|
||||||
%description -n brlapi
|
%description -n brlapi
|
||||||
This package provides the run-time support for the Application
|
This package provides the run-time support for the Application
|
||||||
Programming Interface to BRLTTY.
|
Programming Interface to BRLTTY.
|
||||||
@ -284,6 +286,9 @@ mv Documents/BrlAPIref/{html,BrlAPIref}
|
|||||||
# Don't want static lib
|
# Don't want static lib
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
||||||
|
|
||||||
|
# ghost brlapi.key
|
||||||
|
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/brlapi.key
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post brltty.service
|
%systemd_post brltty.service
|
||||||
|
|
||||||
@ -293,7 +298,17 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
|||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart brltty.service
|
%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
|
%postun -n brlapi -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -336,6 +351,7 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
|||||||
%{_bindir}/xbrlapi
|
%{_bindir}/xbrlapi
|
||||||
%{_libdir}/brltty/libbrlttybba.so
|
%{_libdir}/brltty/libbrlttybba.so
|
||||||
%{_libdir}/libbrlapi.so.*
|
%{_libdir}/libbrlapi.so.*
|
||||||
|
%ghost %{_sysconfdir}/brlapi.key
|
||||||
%doc Drivers/Braille/XWindow/README
|
%doc Drivers/Braille/XWindow/README
|
||||||
%doc Documents/Manual-BrlAPI/
|
%doc Documents/Manual-BrlAPI/
|
||||||
%doc %{_mandir}/man1/xbrlapi.*
|
%doc %{_mandir}/man1/xbrlapi.*
|
||||||
@ -372,6 +388,10 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 23 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 4.5-9
|
||||||
|
- The brlapi.key is now preset, users in the brlapi group have access
|
||||||
|
Resolves: rhbz#1010656
|
||||||
|
|
||||||
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 4.5-8
|
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 4.5-8
|
||||||
- Rebuild for OCaml 4.01.0.
|
- Rebuild for OCaml 4.01.0.
|
||||||
- Create stublibs directory for OCaml, else install fails.
|
- Create stublibs directory for OCaml, else install fails.
|
||||||
|
Loading…
Reference in New Issue
Block a user