cvsdist a88e837
Name: brltty
prockai c95485f
Version: 3.7.2
prockai 18a6927
Release: 1%{?dist}
cvsdist a88e837
License: GPL
cvsdist a88e837
Group: System Environment/Daemons
cvsdist a88e837
URL: http://mielke.cc/brltty/
cvsdist a88e837
Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
cvsdist a88e837
BuildRoot: %{_tmppath}/%{name}-%{version}-InstallRoot
cvsdist a88e837
Summary: Braille display driver for Linux/Unix.
Florian La Roche 6bd36d0
Requires(post): coreutils
prockai 18a6927
BuildRequires: byacc, glibc-kernheaders
cvsdist a88e837
cvsdist a88e837
%description
cvsdist a88e837
BRLTTY is a background process (daemon) which provides
cvsdist a88e837
access to the Linux/Unix console (when in text mode)
cvsdist a88e837
for a blind person using a refreshable braille display.
cvsdist a88e837
It drives the braille display,
cvsdist a88e837
and provides complete screen review functionality.
cvsdist a88e837
Some speech capability has also been incorporated.
cvsdist a88e837
prockai c95485f
%package -n brlapi
prockai c95485f
Version: 0.4.1
prockai c95485f
Group: Applications/System
prockai c95485f
License: LGPL
prockai c95485f
Summary: Appliation Programming Interface for BRLTTY.
prockai c95485f
%description -n brlapi
prockai c95485f
This package provides the run-time support for the Application
prockai c95485f
Programming Interface to BRLTTY.
prockai c95485f
prockai c95485f
Install this package if you have an application which directly accesses
prockai c95485f
a refreshable braille display.
prockai c95485f
prockai c95485f
%package -n brlapi-devel
prockai c95485f
Version: 0.4.1
prockai c95485f
Group: Development/System
prockai c95485f
License: LGPL
prockai c95485f
Requires: brlapi = 0.4.1
prockai c95485f
prockai c95485f
Summary: Headers, static archive, and documentation for BrlAPI.
prockai c95485f
%description -n brlapi-devel
prockai c95485f
This package provides the header files, static archive, shared object
prockai c95485f
linker reference, and reference documentation for BrlAPI (the
prockai c95485f
Application Programming Interface to BRLTTY).  It enables the
prockai c95485f
implementation of applications which take direct advantage of a
prockai c95485f
refreshable braille display in order to present information in ways
prockai c95485f
which are more appropriate for blind users and/or to provide user
prockai c95485f
interfaces which are more specifically atuned to their needs.
prockai c95485f
prockai c95485f
Install this package if you are developing or maintaining an application
prockai c95485f
which directly accesses a refreshable braille display.
prockai c95485f
cvsdist a88e837
%prep
prockai c95485f
%setup -n brltty-3.7.2
cvsdist a88e837
cvsdist a88e837
%build
prockai c95485f
%configure --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt
cvsdist a88e837
make
cvsdist a88e837
prockai c95485f
for file in $(find . \( -path ./doc -o -path ./Documents \) -prune -o \( -name 'README*' -o -name '*.txt' -o -name '*.html' -o -name '*.sgml' -o -name \*.patch -o \( -path "./Bootdisks/*" -type f -perm +ugo=x \) \) -print)
cvsdist a88e837
do
prockai c95485f
   mkdir -p "doc/${file%/*}"
prockai c95485f
   cp -rp "${file}" "doc/${file}"
cvsdist a88e837
done
cvsdist a88e837
cvsdist a88e837
%install
prockai c95485f
make install #install-programs install-help install-tables install-drivers install-manpage
havill 7d6c3ee
install -m 644 Documents/brltty.conf "${RPM_BUILD_ROOT}%{_sysconfdir}"
prockai c95485f
rm ${RPM_BUILD_ROOT}/usr/bin/xbrlapi # whatever this is, we exclude it for now
cvsdist a88e837
Florian La Roche 0fc1e5b
%clean
Florian La Roche 0fc1e5b
rm -rf $RPM_BUILD_ROOT
Florian La Roche 0fc1e5b
cvsdist a88e837
%post
cvsdist a88e837
devices="/dev/vcsa /dev/vcsa0 /dev/vcc/a"
cvsdist a88e837
install=true
cvsdist a88e837
for device in ${devices}
cvsdist a88e837
do
cvsdist a88e837
   if [ -c "${device}" ]
cvsdist a88e837
   then
cvsdist a88e837
      install=false
cvsdist a88e837
      break
cvsdist a88e837
   fi
cvsdist a88e837
done
cvsdist a88e837
if $install
cvsdist a88e837
then
prockai c95485f
   device="$(set -- ${devices} && echo "${1}")"
cvsdist a88e837
   echo -n "Creating screen inspection device ${device}..."
cvsdist a88e837
   mkdir -p "${device%/*}"
cvsdist a88e837
   mknod -m o= "${device}" c 7 128
cvsdist a88e837
   chmod 660 "${device}"
cvsdist a88e837
   chown root.tty "${device}"
cvsdist a88e837
   echo "done."
cvsdist a88e837
fi
cvsdist a88e837
cvsdist a88e837
%files
cvsdist a88e837
%defattr(-,root,root)
prockai c95485f
%config(noreplace) /etc/brltty.conf
prockai c95485f
%{_bindir}/brltty
prockai c95485f
%{_bindir}/brltty-*
prockai c95485f
%{_libdir}/brltty
prockai c95485f
/etc/brltty
cvsdist a88e837
%doc COPYING
cvsdist a88e837
%doc Documents/ChangeLog Documents/TODO
cvsdist a88e837
%doc Bootdisks/rhmkboot Bootdisks/rhmkroot
cvsdist a88e837
%doc doc/*
cvsdist a88e837
%doc /usr/share/man/man1/*
prockai c95485f
prockai c95485f
%files -n brlapi
prockai c95485f
%defattr(-,root,root)
prockai c95485f
%{_libdir}/libbrlapi.so.*
prockai c95485f
%doc Documents/BrlAPI.sgml Documents/BrlAPI.txt Documents/BrlAPI-HTML
prockai c95485f
%doc Documents/README.Gnopernicus
prockai c95485f
prockai c95485f
%files -n brlapi-devel
prockai c95485f
%defattr(-,root,root)
prockai c95485f
%{_libdir}/libbrlapi.a
prockai c95485f
%{_libdir}/libbrlapi.so
prockai c95485f
%{_includedir}/brltty
prockai c95485f
%doc %{_mandir}/man3/*
prockai c95485f
%doc Documents/BrlAPIref-HTML
cvsdist a88e837
cvsdist a88e837
%changelog
prockai c95485f
* Wed Jul 12 2006 Petr Rockai <prockai@redhat.com> - 3.7.2-1
prockai c95485f
- upgrade to latest upstream version
prockai c95485f
- split off brlapi and brlapi-devel packages
prockai c95485f
3afcccb
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.2-12.1
3afcccb
- rebuild
3afcccb
Florian La Roche 6bd36d0
* Sun Jul 02 2006 Florian La Roche <laroche@redhat.com>
Florian La Roche 6bd36d0
- for the post script require coreutils
Florian La Roche 6bd36d0
b834fbc
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.2-11
b834fbc
- Added byacc BuildRequires, removed prereq, coreutils is always there
b834fbc
619a25d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2.1
619a25d
- bump again for double-long bug on ppc(64)
619a25d
e015911
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2
e015911
- rebuilt for new gcc4.1 snapshot and glibc changes
e015911
522edf5
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
522edf5
- rebuilt
522edf5
2e92d4c
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> 3.2-10
2e92d4c
- rebuild
2e92d4c
Florian La Roche 0fc1e5b
* Fri Nov 26 2004 Florian La Roche <laroche@redhat.com>
Florian La Roche 0fc1e5b
- add a %%clean into .spec
Florian La Roche 0fc1e5b
havill 7d6c3ee
* Thu Oct 14 2004 Adrian Havill <havill@redhat.com> 3.2-5
havill 7d6c3ee
- chmod a-x for conf file (#116244)
havill 7d6c3ee
cvsdist 90cebf5
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90cebf5
- rebuilt
cvsdist 90cebf5
cvsdist b66bebe
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b66bebe
- rebuilt
cvsdist b66bebe
cvsdist b66bebe
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b66bebe
- rebuilt
cvsdist b66bebe
cvsdist 0818a33
* Tue Sep 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 0818a33
- prereq coreutils for mknod/chown/chmod
cvsdist a88e837
cvsdist a88e837
* Mon Jul 07 2003 Adrian Havill <havill@redhat.com> 3.2-2
cvsdist a88e837
- changed spec "Copyright" to "License"
cvsdist a88e837
- use %configure macro, %{_libdir} for non-ia32 archs
cvsdist a88e837
- removed unnecessary set and unset, assumed/default spec headers
cvsdist a88e837
- fixed unpackaged man page, duplicate /bin and /lib entries
cvsdist a88e837
- use plain install vs scripts for non-i386 buildsys