Tomas Janousek 340e44
%define pkg_version 3.8
Tomas Janousek 340e44
%define api_version 0.5.0
Tomas Janousek 340e44
Tomas Janousek 340e44
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
Tomas Janousek 340e44
cvsdist a88e83
Name: brltty
Tomas Janousek 340e44
Version: %{pkg_version}
Tomas Janousek 340e44
Release: 1%{?dist}
Tomas Janousek 340e44
License: GPLv2+
cvsdist a88e83
Group: System Environment/Daemons
cvsdist a88e83
URL: http://mielke.cc/brltty/
cvsdist a88e83
Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
Tomas Janousek 340e44
Patch0: brltty-3.8-openmacro.patch
Tomas Janousek 340e44
Patch1: brltty-3.8-lib64.patch
cvsdist a88e83
BuildRoot: %{_tmppath}/%{name}-%{version}-InstallRoot
cvsdist a88e83
Summary: Braille display driver for Linux/Unix.
Florian La Roche 6bd36d
Requires(post): coreutils
prockai 18a692
BuildRequires: byacc, glibc-kernheaders
Tomas Janousek 340e44
# BuildRequires: java-devel, ocaml
cvsdist a88e83
cvsdist a88e83
%description
cvsdist a88e83
BRLTTY is a background process (daemon) which provides
cvsdist a88e83
access to the Linux/Unix console (when in text mode)
cvsdist a88e83
for a blind person using a refreshable braille display.
cvsdist a88e83
It drives the braille display,
cvsdist a88e83
and provides complete screen review functionality.
cvsdist a88e83
Some speech capability has also been incorporated.
cvsdist a88e83
Tomas Janousek b3f626
%package xw
Tomas Janousek b3f626
Requires: %{name}
Tomas Janousek b3f626
Summary: XWindow driver for BRLTTY.
Tomas Janousek b3f626
Group: System Environment/Daemons
Tomas Janousek 340e44
License: GPLv2+
Tomas Janousek b3f626
BuildRequires: libSM-devel libICE-devel libX11-devel libXaw-devel libXext-devel libXt-devel libXtst-devel
Tomas Janousek b3f626
%description xw
Tomas Janousek b3f626
This package provides the XWindow driver for BRLTTY.
Tomas Janousek b3f626
Tomas Janousek 340e44
%package at-spi
Tomas Janousek 340e44
Requires: %{name}
Tomas Janousek 340e44
Summary: AtSpi driver for BRLTTY.
Tomas Janousek 340e44
Group: System Environment/Daemons
Tomas Janousek 340e44
License: GPLv2+
Tomas Janousek 340e44
BuildRequires: at-spi-devel
Tomas Janousek 340e44
%description at-spi
Tomas Janousek 340e44
This package provides the AtSpi driver for BRLTTY.
Tomas Janousek 340e44
prockai c95485
%package -n brlapi
Tomas Janousek 340e44
Version: %{api_version}
prockai c95485
Group: Applications/System
Tomas Janousek 340e44
License: LGPLv2+
prockai c95485
Summary: Appliation Programming Interface for BRLTTY.
prockai c95485
%description -n brlapi
prockai c95485
This package provides the run-time support for the Application
prockai c95485
Programming Interface to BRLTTY.
prockai c95485
prockai c95485
Install this package if you have an application which directly accesses
prockai c95485
a refreshable braille display.
prockai c95485
prockai c95485
%package -n brlapi-devel
Tomas Janousek 340e44
Version: %{api_version}
prockai c95485
Group: Development/System
Tomas Janousek 340e44
License: LGPLv2+
Tomas Janousek 340e44
Requires: brlapi = %{api_version}
prockai c95485
prockai c95485
Summary: Headers, static archive, and documentation for BrlAPI.
prockai c95485
%description -n brlapi-devel
prockai c95485
This package provides the header files, static archive, shared object
prockai c95485
linker reference, and reference documentation for BrlAPI (the
prockai c95485
Application Programming Interface to BRLTTY).  It enables the
prockai c95485
implementation of applications which take direct advantage of a
prockai c95485
refreshable braille display in order to present information in ways
prockai c95485
which are more appropriate for blind users and/or to provide user
prockai c95485
interfaces which are more specifically atuned to their needs.
prockai c95485
prockai c95485
Install this package if you are developing or maintaining an application
prockai c95485
which directly accesses a refreshable braille display.
prockai c95485
Tomas Janousek 340e44
%package -n tcl-brlapi
Tomas Janousek 340e44
Version: %{api_version}
Tomas Janousek 340e44
Group: Development/System
Tomas Janousek 340e44
License: LGPLv2+
Tomas Janousek 340e44
Requires: brlapi = %{api_version}
Tomas Janousek 340e44
BuildRequires: tcl-devel
Tomas Janousek 340e44
Summary: Tcl binding for BrlAPI.
Tomas Janousek 340e44
%description -n tcl-brlapi
Tomas Janousek 340e44
This package provides the Tcl binding for BrlAPI.
Tomas Janousek 340e44
Tomas Janousek 340e44
%package -n python-brlapi
Tomas Janousek 340e44
Version: %{api_version}
Tomas Janousek 340e44
Group: Development/System
Tomas Janousek 340e44
License: LGPLv2+
Tomas Janousek 340e44
Requires: brlapi = %{api_version}
Tomas Janousek 340e44
BuildRequires: Pyrex
Tomas Janousek 340e44
Summary: Python binding for BrlAPI.
Tomas Janousek 340e44
%description -n python-brlapi
Tomas Janousek 340e44
This package provides the Python binding for BrlAPI.
Tomas Janousek 340e44
Tomas Janousek 340e44
%define version %{pkg_version}
Tomas Janousek 340e44
cvsdist a88e83
%prep
Tomas Janousek 340e44
%setup
Tomas Janousek 340e44
%patch0 -p1 -b .openmacro
Tomas Janousek 340e44
%patch1 -p1 -b .lib64
cvsdist a88e83
cvsdist a88e83
%build
prockai c95485
%configure --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt
cvsdist a88e83
make
cvsdist a88e83
prockai c95485
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 a88e83
do
prockai c95485
   mkdir -p "doc/${file%/*}"
prockai c95485
   cp -rp "${file}" "doc/${file}"
cvsdist a88e83
done
cvsdist a88e83
cvsdist a88e83
%install
Tomas Janousek 340e44
make INSTALL_PROGRAM='$(INSTALL_SCRIPT)' install #install-programs install-help install-tables install-drivers install-manpage
havill 7d6c3e
install -m 644 Documents/brltty.conf "${RPM_BUILD_ROOT}%{_sysconfdir}"
prockai 5b800b
rm -f ${RPM_BUILD_ROOT}/usr/bin/xbrlapi # whatever this is, we exclude it for now
cvsdist a88e83
Tomas Janousek 340e44
ls ${RPM_BUILD_ROOT}/%{_libdir}/brltty/*.so | \
Tomas Janousek 340e44
    grep -v 'libbrlttybxw.so\|libbrlttyxas.so' | \
Tomas Janousek b3f626
    sed -e "s|$RPM_BUILD_ROOT||" >libs.filelist
Tomas Janousek b3f626
Florian La Roche 0fc1e5
%clean
Florian La Roche 0fc1e5
rm -rf $RPM_BUILD_ROOT
Florian La Roche 0fc1e5
cvsdist a88e83
%post
cvsdist a88e83
devices="/dev/vcsa /dev/vcsa0 /dev/vcc/a"
cvsdist a88e83
install=true
cvsdist a88e83
for device in ${devices}
cvsdist a88e83
do
cvsdist a88e83
   if [ -c "${device}" ]
cvsdist a88e83
   then
cvsdist a88e83
      install=false
cvsdist a88e83
      break
cvsdist a88e83
   fi
cvsdist a88e83
done
cvsdist a88e83
if $install
cvsdist a88e83
then
prockai c95485
   device="$(set -- ${devices} && echo "${1}")"
cvsdist a88e83
   mkdir -p "${device%/*}"
cvsdist a88e83
   mknod -m o= "${device}" c 7 128
cvsdist a88e83
   chmod 660 "${device}"
cvsdist a88e83
   chown root.tty "${device}"
cvsdist a88e83
fi
Tomas Janousek 57b854
exit 0
cvsdist a88e83
Tomas Janousek b3f626
%files -f libs.filelist
cvsdist a88e83
%defattr(-,root,root)
prockai c95485
%config(noreplace) /etc/brltty.conf
prockai c95485
%{_bindir}/brltty
prockai c95485
%{_bindir}/brltty-*
Tomas Janousek 340e44
%{_bindir}/vstp
Tomas Janousek b3f626
%dir %{_libdir}/brltty
prockai c95485
/etc/brltty
cvsdist a88e83
%doc COPYING
cvsdist a88e83
%doc Documents/ChangeLog Documents/TODO
cvsdist a88e83
%doc Bootdisks/rhmkboot Bootdisks/rhmkroot
cvsdist a88e83
%doc doc/*
cvsdist a88e83
%doc /usr/share/man/man1/*
prockai c95485
Tomas Janousek b3f626
%files xw
Tomas Janousek b3f626
%{_libdir}/brltty/libbrlttybxw.so
Tomas Janousek b3f626
Tomas Janousek 340e44
%files at-spi
Tomas Janousek 340e44
%{_libdir}/brltty/libbrlttyxas.so
Tomas Janousek 340e44
prockai c95485
%files -n brlapi
prockai c95485
%defattr(-,root,root)
prockai c95485
%{_libdir}/libbrlapi.so.*
Tomas Janousek 340e44
%doc Documents/Manual-BrlAPI/English/BrlAPI.sgml Documents/Manual-BrlAPI/English/BrlAPI.txt
Tomas Janousek 340e44
%doc Documents/Manual-BrlAPI/English/BrlAPI*.html
prockai c95485
%doc Documents/README.Gnopernicus
prockai c95485
prockai c95485
%files -n brlapi-devel
prockai c95485
%defattr(-,root,root)
prockai c95485
%{_libdir}/libbrlapi.a
prockai c95485
%{_libdir}/libbrlapi.so
prockai c95485
%{_includedir}/brltty
Tomas Janousek 340e44
%{_includedir}/brlapi*.h
prockai c95485
%doc %{_mandir}/man3/*
Tomas Janousek 340e44
%doc Documents/BrlAPIref/html
Tomas Janousek 340e44
Tomas Janousek 340e44
%files -n tcl-brlapi
Tomas Janousek 340e44
%defattr(-,root,root)
Tomas Janousek 340e44
%{_libdir}/brlapi-%{api_version}/libbrlapi_tcl.so
Tomas Janousek 340e44
%{_libdir}/brlapi-%{api_version}/pkgIndex.tcl
Tomas Janousek 340e44
Tomas Janousek 340e44
%files -n python-brlapi
Tomas Janousek 340e44
%defattr(-,root,root)
Tomas Janousek 340e44
%{python_sitearch}/brlapi.so
cvsdist a88e83
Tomas Janousek b3f626
cvsdist a88e83
%changelog
Tomas Janousek 340e44
* Tue Aug 21 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-1
Tomas Janousek 340e44
- update to latest upstream
Tomas Janousek 340e44
- added the at-spi driver, tcl and python bindings
Tomas Janousek 340e44
- fixed the license tags
Tomas Janousek 340e44
Tomas Janousek b3f626
* Mon Mar 05 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-3
Tomas Janousek b3f626
- added the XWindow driver
Tomas Janousek b3f626
- build fix for newer byacc
Tomas Janousek b3f626
Tomas Janousek 68de00
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2.1
Tomas Janousek 68de00
- quiet postinstall scriptlet, really fixes #224570
Tomas Janousek 68de00
Tomas Janousek 57b854
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2
Tomas Janousek 57b854
- failsafe postinstall script, fixes #224570
Tomas Janousek 57b854
- makefile fix - debuginfo extraction now works
Tomas Janousek 57b854
Tomas Janousek 96dcaf
* Thu Jan 25 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-1.1
Tomas Janousek 96dcaf
- fix building with newer kernel-headers (#224149)
Tomas Janousek 96dcaf
prockai c95485
* Wed Jul 12 2006 Petr Rockai <prockai@redhat.com> - 3.7.2-1
prockai c95485
- upgrade to latest upstream version
prockai c95485
- split off brlapi and brlapi-devel packages
prockai c95485
Jesse Keating 3afccc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.2-12.1
Jesse Keating 3afccc
- rebuild
Jesse Keating 3afccc
Florian La Roche 6bd36d
* Sun Jul 02 2006 Florian La Roche <laroche@redhat.com>
Florian La Roche 6bd36d
- for the post script require coreutils
Florian La Roche 6bd36d
Jesse Keating b834fb
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.2-11
Jesse Keating b834fb
- Added byacc BuildRequires, removed prereq, coreutils is always there
Jesse Keating b834fb
Jesse Keating 619a25
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2.1
Jesse Keating 619a25
- bump again for double-long bug on ppc(64)
Jesse Keating 619a25
Jesse Keating e01591
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2
Jesse Keating e01591
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating e01591
Jesse Keating 522edf
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating 522edf
- rebuilt
Jesse Keating 522edf
Bill Nottingham 2e92d4
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> 3.2-10
Bill Nottingham 2e92d4
- rebuild
Bill Nottingham 2e92d4
Florian La Roche 0fc1e5
* Fri Nov 26 2004 Florian La Roche <laroche@redhat.com>
Florian La Roche 0fc1e5
- add a %%clean into .spec
Florian La Roche 0fc1e5
havill 7d6c3e
* Thu Oct 14 2004 Adrian Havill <havill@redhat.com> 3.2-5
havill 7d6c3e
- chmod a-x for conf file (#116244)
havill 7d6c3e
cvsdist 90cebf
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90cebf
- rebuilt
cvsdist 90cebf
cvsdist b66beb
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b66beb
- rebuilt
cvsdist b66beb
cvsdist b66beb
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b66beb
- rebuilt
cvsdist b66beb
cvsdist 0818a3
* Tue Sep 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 0818a3
- prereq coreutils for mknod/chown/chmod
cvsdist a88e83
cvsdist a88e83
* Mon Jul 07 2003 Adrian Havill <havill@redhat.com> 3.2-2
cvsdist a88e83
- changed spec "Copyright" to "License"
cvsdist a88e83
- use %configure macro, %{_libdir} for non-ia32 archs
cvsdist a88e83
- removed unnecessary set and unset, assumed/default spec headers
cvsdist a88e83
- fixed unpackaged man page, duplicate /bin and /lib entries
cvsdist a88e83
- use plain install vs scripts for non-i386 buildsys