#
# spec file for package brltty
#
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner liyuan
#
%define OSR 12277:4.0
Name: brltty
License: GPLv2. Text, attributes, and contraction tables and subtables are LGPLv2.1
Group: System/Library
Version: 4.2
Release: 1
Distribution: Java Desktop System
Vendor: mielke.cc/brltty
Summary: Braille Support
Source: http://www.mielke.cc/brltty/releases/brltty-%{version}.tar.gz
# date:2005-08-24 owner:ww36193 type:bug
# Patch submitted upstream for their consideration
Patch1: brltty-01-suncc.diff
URL: http://mielke.cc/brltty/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: on
%description
BRLTTY is a background process (daemon) providing access to the Linux/Unix
console (when in text mode) for a blind person using a refreshable braille
display. It also provides an API for braille support.
%prep
%setup -q -n brltty-%{version}
%patch1 -p1
%build
export LD=/usr/bin/ld
CFLAGS="%optflags"
LDFLAGS="%{_ldflags} %optflags"
bash ./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--disable-tcl-bindings \
--libdir=%{_libdir} \
--bindir=%{_bindir} \
--mandir=%{_mandir} \
--localstatedir=%{_localstatedir} \
--disable-speech-support
make
%install
#rm -rf $RPM_BUILD_ROOT
make install INSTALL_ROOT=$RPM_BUILD_ROOT sysconfdir=$RPM_BUILD_ROOT/etc
rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
# Move python site-packages dir to vendor-packages.
if [ -x $RPM_BUILD_ROOT%{_libdir}/python?.? ] ; then
cd $RPM_BUILD_ROOT%{_libdir}/python?.?
mv site-packages vendor-packages
fi
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(644, root, root)
%{_sysconfdir}/brlapi.key
%{_includedir}/brltty/*
%{_sysconfdir}/brltty/*
%{_bindir}/*
%{_libdir}/libbrl*
%{_libdir}/brltty/libbrltty*.so
%{_mandir}/*
%changelog
* Wed Jun 02 2010 - brian.cameron@oracle.com
- Bump to 4.2.
* Tue Oct 13 2009 - william.walker@sun.com
- Bump to 4.1 to fix major crasher.
* Fri Aug 21 2009 - li.yuan@sun.com
- Change owner to liyuan.
* Tue Jun 16 2009 - william.walker@sun.com
- Bump to 4.0. Remove brltty-02-dlsym patch since 4.0 fixed the issue.
* Fri Aug 29 2008 - laca@sun.com
- add patch dlsym.diff
* Mon Jul 07 2008 - li.yuan@sun.com
- Fix 6697334. Add 64 bit libraries support.
* Tue Nov 13 2007 - brian.cameron@sun.com
- Bump to 3.9.
* Wed Jul 25 2007 - damien.carbery@sun.com
- Bump to 3.8. Remove upstream patch, 02-lib-symlinks. Add code to handle new
python libs.
* Wed Nov 01 2006 - damien.carbery@sun.com
- Add patch, 02-lib-sylinks to fix 6454451. Adds code to create symlink for
to a module library. Executable required the symlink.
* Tue Apr 4 2006 - glynn.foster@sun.com
- Remove libbrlapi.a from the package.
* Tue Jan 17 2006 - damien.carbery@sun.com
- Bump to 3.7.2.
* Tue Dec 20 2005 - damien.carbery@sun.com
- Bump to 3.7.1.
* Wed Oct 26 2005 - damien.carbery@sun.com
- Bump to 3.7.
* Thu Sep 27 2005 - damien.carbery@sun.com
- Bump to 3.6.2.
* Tue Aug 16 2005 - rich.burridge@sun.com
- Initial Sun release.