2008-09-17 15:59:49 +00:00
|
|
|
%define pkg_version 3.10
|
|
|
|
%define api_version 0.5.2
|
2007-08-22 10:47:29 +00:00
|
|
|
|
2008-01-09 16:35:36 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
%{!?pyver: %define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v")}
|
|
|
|
|
|
|
|
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
|
|
|
|
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
|
2007-08-22 10:47:29 +00:00
|
|
|
|
2004-09-09 03:36:54 +00:00
|
|
|
Name: brltty
|
2007-08-22 10:47:29 +00:00
|
|
|
Version: %{pkg_version}
|
2009-02-24 05:51:11 +00:00
|
|
|
Release: 3%{?dist}
|
2007-08-22 10:47:29 +00:00
|
|
|
License: GPLv2+
|
2004-09-09 03:36:54 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: http://mielke.cc/brltty/
|
|
|
|
Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
|
2008-09-17 15:59:49 +00:00
|
|
|
Patch2: brltty-gnusource.patch
|
2008-09-13 14:10:14 +00:00
|
|
|
Patch3: brltty-3.9-autoconf.patch
|
2008-09-17 15:59:49 +00:00
|
|
|
Patch5: brltty-parallel.patch
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Braille display driver for Linux/Unix
|
2006-07-12 09:37:57 +00:00
|
|
|
BuildRequires: byacc, glibc-kernheaders
|
2008-01-07 11:40:14 +00:00
|
|
|
# BuildRequires: ocaml
|
2004-09-09 03:36:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
BRLTTY is a background process (daemon) which provides
|
|
|
|
access to the Linux/Unix console (when in text mode)
|
|
|
|
for a blind person using a refreshable braille display.
|
|
|
|
It drives the braille display,
|
|
|
|
and provides complete screen review functionality.
|
|
|
|
Some speech capability has also been incorporated.
|
|
|
|
|
2007-03-05 14:52:34 +00:00
|
|
|
%package xw
|
|
|
|
Requires: %{name}
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: XWindow driver for BRLTTY
|
2007-03-05 14:52:34 +00:00
|
|
|
Group: System Environment/Daemons
|
2007-08-22 10:47:29 +00:00
|
|
|
License: GPLv2+
|
2007-03-05 14:52:34 +00:00
|
|
|
BuildRequires: libSM-devel libICE-devel libX11-devel libXaw-devel libXext-devel libXt-devel libXtst-devel
|
|
|
|
%description xw
|
|
|
|
This package provides the XWindow driver for BRLTTY.
|
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
%package at-spi
|
|
|
|
Requires: %{name}
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: AtSpi driver for BRLTTY
|
2007-08-22 10:47:29 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPLv2+
|
|
|
|
BuildRequires: at-spi-devel
|
|
|
|
%description at-spi
|
|
|
|
This package provides the AtSpi driver for BRLTTY.
|
|
|
|
|
2006-07-12 09:29:47 +00:00
|
|
|
%package -n brlapi
|
2007-08-22 10:47:29 +00:00
|
|
|
Version: %{api_version}
|
2006-07-12 09:29:47 +00:00
|
|
|
Group: Applications/System
|
2007-08-22 10:47:29 +00:00
|
|
|
License: LGPLv2+
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Appliation Programming Interface for BRLTTY
|
2006-07-12 09:29:47 +00:00
|
|
|
%description -n brlapi
|
|
|
|
This package provides the run-time support for the Application
|
|
|
|
Programming Interface to BRLTTY.
|
|
|
|
|
|
|
|
Install this package if you have an application which directly accesses
|
|
|
|
a refreshable braille display.
|
|
|
|
|
|
|
|
%package -n brlapi-devel
|
2007-08-22 10:47:29 +00:00
|
|
|
Version: %{api_version}
|
2006-07-12 09:29:47 +00:00
|
|
|
Group: Development/System
|
2007-08-22 10:47:29 +00:00
|
|
|
License: LGPLv2+
|
2008-09-17 15:59:49 +00:00
|
|
|
Requires: brlapi = %{api_version}-%{release}
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Headers, static archive, and documentation for BrlAPI
|
2006-07-12 09:29:47 +00:00
|
|
|
|
|
|
|
%description -n brlapi-devel
|
|
|
|
This package provides the header files, static archive, shared object
|
|
|
|
linker reference, and reference documentation for BrlAPI (the
|
|
|
|
Application Programming Interface to BRLTTY). It enables the
|
|
|
|
implementation of applications which take direct advantage of a
|
|
|
|
refreshable braille display in order to present information in ways
|
|
|
|
which are more appropriate for blind users and/or to provide user
|
|
|
|
interfaces which are more specifically atuned to their needs.
|
|
|
|
|
|
|
|
Install this package if you are developing or maintaining an application
|
|
|
|
which directly accesses a refreshable braille display.
|
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
%package -n tcl-brlapi
|
|
|
|
Version: %{api_version}
|
|
|
|
Group: Development/System
|
|
|
|
License: LGPLv2+
|
2008-09-17 15:59:49 +00:00
|
|
|
Requires: brlapi = %{api_version}-%{release}
|
2008-01-09 16:35:36 +00:00
|
|
|
BuildRequires: tcl-devel tcl
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Tcl binding for BrlAPI
|
2007-08-22 10:47:29 +00:00
|
|
|
%description -n tcl-brlapi
|
|
|
|
This package provides the Tcl binding for BrlAPI.
|
|
|
|
|
|
|
|
%package -n python-brlapi
|
|
|
|
Version: %{api_version}
|
|
|
|
Group: Development/System
|
|
|
|
License: LGPLv2+
|
2008-09-17 15:59:49 +00:00
|
|
|
Requires: brlapi = %{api_version}-%{release}
|
2007-08-22 10:47:29 +00:00
|
|
|
BuildRequires: Pyrex
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Python binding for BrlAPI
|
2007-08-22 10:47:29 +00:00
|
|
|
%description -n python-brlapi
|
|
|
|
This package provides the Python binding for BrlAPI.
|
|
|
|
|
2008-01-07 11:40:14 +00:00
|
|
|
%package -n brlapi-java
|
|
|
|
Version: %{api_version}
|
|
|
|
Group: Development/System
|
|
|
|
License: LGPLv2+
|
2008-09-17 15:59:49 +00:00
|
|
|
Requires: brlapi = %{api_version}-%{release}
|
2008-01-07 11:40:14 +00:00
|
|
|
BuildRequires: java-devel
|
|
|
|
#BuildRequires: java-1.7.0-icedtea-devel
|
2008-09-13 14:10:14 +00:00
|
|
|
Summary: Java binding for BrlAPI
|
2008-01-07 11:40:14 +00:00
|
|
|
%description -n brlapi-java
|
|
|
|
This package provides the Java binding for BrlAPI.
|
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
%define version %{pkg_version}
|
|
|
|
|
2004-09-09 03:36:54 +00:00
|
|
|
%prep
|
2008-01-07 11:40:14 +00:00
|
|
|
%setup -q
|
2008-02-28 13:43:34 +00:00
|
|
|
%patch2 -p1 -b .gnusource
|
2008-09-13 14:10:14 +00:00
|
|
|
%patch3 -p1 -b .autoconf
|
|
|
|
%patch5 -p1 -b .parallel
|
2004-09-09 03:36:54 +00:00
|
|
|
|
|
|
|
%build
|
2008-09-17 15:59:49 +00:00
|
|
|
./autogen
|
2006-07-12 09:29:47 +00:00
|
|
|
%configure --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt
|
2008-01-07 11:40:14 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-09-09 03:36:54 +00:00
|
|
|
|
2006-07-12 09:29:47 +00:00
|
|
|
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)
|
2004-09-09 03:36:54 +00:00
|
|
|
do
|
2006-07-12 09:29:47 +00:00
|
|
|
mkdir -p "doc/${file%/*}"
|
|
|
|
cp -rp "${file}" "doc/${file}"
|
2004-09-09 03:36:54 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
2008-01-07 11:40:14 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-08-22 10:47:29 +00:00
|
|
|
make INSTALL_PROGRAM='$(INSTALL_SCRIPT)' install #install-programs install-help install-tables install-drivers install-manpage
|
2004-10-14 20:43:59 +00:00
|
|
|
install -m 644 Documents/brltty.conf "${RPM_BUILD_ROOT}%{_sysconfdir}"
|
2006-07-12 11:48:49 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/xbrlapi # whatever this is, we exclude it for now
|
2004-09-09 03:36:54 +00:00
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
ls ${RPM_BUILD_ROOT}/%{_libdir}/brltty/*.so | \
|
|
|
|
grep -v 'libbrlttybxw.so\|libbrlttyxas.so' | \
|
2007-03-05 14:52:34 +00:00
|
|
|
sed -e "s|$RPM_BUILD_ROOT||" >libs.filelist
|
|
|
|
|
2004-11-26 19:09:17 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-09-09 03:36:54 +00:00
|
|
|
%post
|
|
|
|
devices="/dev/vcsa /dev/vcsa0 /dev/vcc/a"
|
|
|
|
install=true
|
|
|
|
for device in ${devices}
|
|
|
|
do
|
|
|
|
if [ -c "${device}" ]
|
|
|
|
then
|
|
|
|
install=false
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if $install
|
|
|
|
then
|
2006-07-12 09:29:47 +00:00
|
|
|
device="$(set -- ${devices} && echo "${1}")"
|
2004-09-09 03:36:54 +00:00
|
|
|
mkdir -p "${device%/*}"
|
|
|
|
mknod -m o= "${device}" c 7 128
|
|
|
|
chmod 660 "${device}"
|
|
|
|
chown root.tty "${device}"
|
|
|
|
fi
|
2007-01-30 11:48:57 +00:00
|
|
|
exit 0
|
2004-09-09 03:36:54 +00:00
|
|
|
|
2007-03-05 14:52:34 +00:00
|
|
|
%files -f libs.filelist
|
2004-09-09 03:36:54 +00:00
|
|
|
%defattr(-,root,root)
|
2006-07-12 09:29:47 +00:00
|
|
|
%config(noreplace) /etc/brltty.conf
|
|
|
|
%{_bindir}/brltty
|
|
|
|
%{_bindir}/brltty-*
|
2007-08-22 10:47:29 +00:00
|
|
|
%{_bindir}/vstp
|
2007-03-05 14:52:34 +00:00
|
|
|
%dir %{_libdir}/brltty
|
2006-07-12 09:29:47 +00:00
|
|
|
/etc/brltty
|
2004-09-09 03:36:54 +00:00
|
|
|
%doc COPYING
|
|
|
|
%doc Documents/ChangeLog Documents/TODO
|
|
|
|
%doc Bootdisks/rhmkboot Bootdisks/rhmkroot
|
|
|
|
%doc doc/*
|
|
|
|
%doc /usr/share/man/man1/*
|
2006-07-12 09:29:47 +00:00
|
|
|
|
2007-03-05 14:52:34 +00:00
|
|
|
%files xw
|
|
|
|
%{_libdir}/brltty/libbrlttybxw.so
|
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
%files at-spi
|
|
|
|
%{_libdir}/brltty/libbrlttyxas.so
|
|
|
|
|
2006-07-12 09:29:47 +00:00
|
|
|
%files -n brlapi
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libbrlapi.so.*
|
2007-08-22 10:47:29 +00:00
|
|
|
%doc Documents/Manual-BrlAPI/English/BrlAPI.sgml Documents/Manual-BrlAPI/English/BrlAPI.txt
|
|
|
|
%doc Documents/Manual-BrlAPI/English/BrlAPI*.html
|
2006-07-12 09:29:47 +00:00
|
|
|
%doc Documents/README.Gnopernicus
|
|
|
|
|
|
|
|
%files -n brlapi-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libbrlapi.a
|
|
|
|
%{_libdir}/libbrlapi.so
|
|
|
|
%{_includedir}/brltty
|
2007-08-22 10:47:29 +00:00
|
|
|
%{_includedir}/brlapi*.h
|
2006-07-12 09:29:47 +00:00
|
|
|
%doc %{_mandir}/man3/*
|
2007-08-22 10:47:29 +00:00
|
|
|
%doc Documents/BrlAPIref/html
|
|
|
|
|
|
|
|
%files -n tcl-brlapi
|
|
|
|
%defattr(-,root,root)
|
2008-01-09 16:35:36 +00:00
|
|
|
%{tcl_sitearch}/brlapi-%{api_version}/libbrlapi_tcl.so
|
|
|
|
%{tcl_sitearch}/brlapi-%{api_version}/pkgIndex.tcl
|
2007-08-22 10:47:29 +00:00
|
|
|
|
|
|
|
%files -n python-brlapi
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/brlapi.so
|
2008-01-07 11:40:14 +00:00
|
|
|
%{python_sitearch}/Brlapi-%{api_version}-py%{pyver}.egg-info
|
|
|
|
|
|
|
|
%files -n brlapi-java
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_jnidir}/libbrlapi_java.so
|
|
|
|
%{_javadir}/brlapi.jar
|
2004-09-09 03:36:54 +00:00
|
|
|
|
2007-03-05 14:52:34 +00:00
|
|
|
|
2004-09-09 03:36:54 +00:00
|
|
|
%changelog
|
2009-02-24 05:51:11 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-29 16:36:41 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.10-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-09-17 15:59:49 +00:00
|
|
|
* Sat Sep 13 2008 Stepan Kasal <skasal@redhat.com> - 3.10-1
|
|
|
|
- new upstream release
|
|
|
|
- drop brltty-3.9-java-svn.patch, brltty-3.9-tcl85path.patch,
|
|
|
|
and brltty-3.9-pyxfix.patch, they are upstream
|
|
|
|
- fix BuildRoot
|
|
|
|
- fix many sub-packages' Requires on brlapi
|
|
|
|
|
2008-09-13 14:10:14 +00:00
|
|
|
* Wed Sep 10 2008 Stepan Kasal <skasal@redhat.com> - 3.9-3
|
|
|
|
- add brltty-3.9-autoconf.patch to fix to build with Autoconf 2.62
|
|
|
|
- add brltty-3.9-parallel.patch to fix race condition with parallel make
|
|
|
|
- add brltty-3.9-pyxfix.patch to fix build with current pyrex
|
|
|
|
- Summary lines shall not end with a dot
|
|
|
|
|
2008-02-28 13:43:34 +00:00
|
|
|
* Thu Feb 28 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-2.2
|
|
|
|
- glibc build fixes
|
|
|
|
- applied java reorganisations from svn
|
|
|
|
|
2008-02-20 05:28:38 +00:00
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.9-2.1
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-09 16:35:36 +00:00
|
|
|
* Wed Jan 09 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1.1
|
|
|
|
- specfile update to comply with tcl packaging guidelines
|
|
|
|
|
2008-01-07 11:40:14 +00:00
|
|
|
* Mon Jan 07 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1
|
|
|
|
- update to latest upstream (3.9)
|
|
|
|
|
|
|
|
* Tue Sep 18 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
|
|
|
|
- update to r3231 from svn
|
|
|
|
- added java binding subpackage
|
|
|
|
|
|
|
|
* Wed Aug 29 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
|
|
|
|
- update to r3231 from svn
|
|
|
|
|
2007-08-22 10:47:29 +00:00
|
|
|
* Tue Aug 21 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-1
|
|
|
|
- update to latest upstream
|
|
|
|
- added the at-spi driver, tcl and python bindings
|
|
|
|
- fixed the license tags
|
|
|
|
|
2007-03-05 14:52:34 +00:00
|
|
|
* Mon Mar 05 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-3
|
|
|
|
- added the XWindow driver
|
|
|
|
- build fix for newer byacc
|
|
|
|
|
2007-01-30 12:32:40 +00:00
|
|
|
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2.1
|
|
|
|
- quiet postinstall scriptlet, really fixes #224570
|
|
|
|
|
2007-01-30 11:48:57 +00:00
|
|
|
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2
|
|
|
|
- failsafe postinstall script, fixes #224570
|
|
|
|
- makefile fix - debuginfo extraction now works
|
|
|
|
|
2007-01-25 11:05:26 +00:00
|
|
|
* Thu Jan 25 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-1.1
|
|
|
|
- fix building with newer kernel-headers (#224149)
|
|
|
|
|
2006-07-12 09:29:47 +00:00
|
|
|
* Wed Jul 12 2006 Petr Rockai <prockai@redhat.com> - 3.7.2-1
|
|
|
|
- upgrade to latest upstream version
|
|
|
|
- split off brlapi and brlapi-devel packages
|
|
|
|
|
2006-07-12 05:29:13 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.2-12.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-07-02 10:50:31 +00:00
|
|
|
* Sun Jul 02 2006 Florian La Roche <laroche@redhat.com>
|
|
|
|
- for the post script require coreutils
|
|
|
|
|
2006-06-05 21:29:19 +00:00
|
|
|
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.2-11
|
|
|
|
- Added byacc BuildRequires, removed prereq, coreutils is always there
|
|
|
|
|
2006-02-11 02:12:25 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 11:11:40 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:39:49 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-03-16 17:35:31 +00:00
|
|
|
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> 3.2-10
|
|
|
|
- rebuild
|
|
|
|
|
2004-11-26 19:09:17 +00:00
|
|
|
* Fri Nov 26 2004 Florian La Roche <laroche@redhat.com>
|
|
|
|
- add a %%clean into .spec
|
|
|
|
|
2004-10-14 20:43:59 +00:00
|
|
|
* Thu Oct 14 2004 Adrian Havill <havill@redhat.com> 3.2-5
|
|
|
|
- chmod a-x for conf file (#116244)
|
|
|
|
|
2004-09-09 03:38:00 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 03:37:53 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 03:36:59 +00:00
|
|
|
* Tue Sep 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- prereq coreutils for mknod/chown/chmod
|
2004-09-09 03:36:54 +00:00
|
|
|
|
|
|
|
* Mon Jul 07 2003 Adrian Havill <havill@redhat.com> 3.2-2
|
|
|
|
- changed spec "Copyright" to "License"
|
|
|
|
- use %configure macro, %{_libdir} for non-ia32 archs
|
|
|
|
- removed unnecessary set and unset, assumed/default spec headers
|
|
|
|
- fixed unpackaged man page, duplicate /bin and /lib entries
|
|
|
|
- use plain install vs scripts for non-i386 buildsys
|