jaydoubleu / rpms / brltty

Forked from rpms/brltty 2 years ago
Clone
f326de9
%define pkg_version 3.10
f326de9
%define api_version 0.5.2
Tomas Janousek e2b1266
Tomas Janousek ae11bd2
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Tomas Janousek ae11bd2
%{!?pyver: %define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v")}
Tomas Janousek ae11bd2
Tomas Janousek ae11bd2
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
Tomas Janousek ae11bd2
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
Tomas Janousek e2b1266
cvsdist a88e837
Name: brltty
Tomas Janousek e2b1266
Version: %{pkg_version}
6d8a274
Release: 5%{?dist}
Tomas Janousek e2b1266
License: GPLv2+
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
f326de9
Patch2: brltty-gnusource.patch
6cc4c5d
Patch3: brltty-3.9-autoconf.patch
f51fa9b
Patch4: brltty-cppflags.patch
f326de9
Patch5: brltty-parallel.patch
f326de9
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
6cc4c5d
Summary: Braille display driver for Linux/Unix
prockai 18a6927
BuildRequires: byacc, glibc-kernheaders
Tomas Janousek 7eecaf9
# BuildRequires: ocaml
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
Tomas Janousek b3f626f
%package xw
Tomas Janousek b3f626f
Requires: %{name}
6cc4c5d
Summary: XWindow driver for BRLTTY
Tomas Janousek b3f626f
Group: System Environment/Daemons
Tomas Janousek e2b1266
License: GPLv2+
Tomas Janousek b3f626f
BuildRequires: libSM-devel libICE-devel libX11-devel libXaw-devel libXext-devel libXt-devel libXtst-devel
Tomas Janousek b3f626f
%description xw
Tomas Janousek b3f626f
This package provides the XWindow driver for BRLTTY.
Tomas Janousek b3f626f
Tomas Janousek e2b1266
%package at-spi
Tomas Janousek e2b1266
Requires: %{name}
6cc4c5d
Summary: AtSpi driver for BRLTTY
Tomas Janousek e2b1266
Group: System Environment/Daemons
Tomas Janousek e2b1266
License: GPLv2+
Tomas Janousek e2b1266
BuildRequires: at-spi-devel
Tomas Janousek e2b1266
%description at-spi
Tomas Janousek e2b1266
This package provides the AtSpi driver for BRLTTY.
Tomas Janousek e2b1266
prockai c95485f
%package -n brlapi
Tomas Janousek e2b1266
Version: %{api_version}
prockai c95485f
Group: Applications/System
Tomas Janousek e2b1266
License: LGPLv2+
6cc4c5d
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
Tomas Janousek e2b1266
Version: %{api_version}
prockai c95485f
Group: Development/System
Tomas Janousek e2b1266
License: LGPLv2+
f326de9
Requires: brlapi = %{api_version}-%{release}
6cc4c5d
Summary: Headers, static archive, and documentation for BrlAPI
prockai c95485f
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
Tomas Janousek e2b1266
%package -n tcl-brlapi
Tomas Janousek e2b1266
Version: %{api_version}
Tomas Janousek e2b1266
Group: Development/System
Tomas Janousek e2b1266
License: LGPLv2+
f326de9
Requires: brlapi = %{api_version}-%{release}
Tomas Janousek ae11bd2
BuildRequires: tcl-devel tcl
6cc4c5d
Summary: Tcl binding for BrlAPI
Tomas Janousek e2b1266
%description -n tcl-brlapi
Tomas Janousek e2b1266
This package provides the Tcl binding for BrlAPI.
Tomas Janousek e2b1266
Tomas Janousek e2b1266
%package -n python-brlapi
Tomas Janousek e2b1266
Version: %{api_version}
Tomas Janousek e2b1266
Group: Development/System
Tomas Janousek e2b1266
License: LGPLv2+
f326de9
Requires: brlapi = %{api_version}-%{release}
Tomas Janousek e2b1266
BuildRequires: Pyrex
6cc4c5d
Summary: Python binding for BrlAPI
Tomas Janousek e2b1266
%description -n python-brlapi
Tomas Janousek e2b1266
This package provides the Python binding for BrlAPI.
Tomas Janousek e2b1266
Tomas Janousek 7eecaf9
%package -n brlapi-java
Tomas Janousek 7eecaf9
Version: %{api_version}
Tomas Janousek 7eecaf9
Group: Development/System
Tomas Janousek 7eecaf9
License: LGPLv2+
f326de9
Requires: brlapi = %{api_version}-%{release}
f51fa9b
## temporary work around, java-devel is not resolved consistently acrss archs
Tomas Janousek 7eecaf9
BuildRequires: java-devel
f51fa9b
#BuildRequires: java-1.5.0-gcj-devel
6cc4c5d
Summary: Java binding for BrlAPI
Tomas Janousek 7eecaf9
%description -n brlapi-java
Tomas Janousek 7eecaf9
This package provides the Java binding for BrlAPI.
Tomas Janousek 7eecaf9
Tomas Janousek e2b1266
%define version %{pkg_version}
Tomas Janousek e2b1266
cvsdist a88e837
%prep
Tomas Janousek 7eecaf9
%setup -q
Tomas Janousek 37c9aa8
%patch2 -p1 -b .gnusource
6cc4c5d
%patch3 -p1 -b .autoconf
f51fa9b
%patch4 -p1 -b .cppflags
6cc4c5d
%patch5 -p1 -b .parallel
cvsdist a88e837
cvsdist a88e837
%build
f326de9
./autogen
f51fa9b
for i in -I/usr/lib/jvm/java/include{,/linux}; do
f51fa9b
      java_inc="$java_inc $i"
f51fa9b
done
f51fa9b
# there is no curses packages in BuildRequires, so the package builds
f51fa9b
# without them in mock; let's express this decision explicitly
f51fa9b
%configure CPPFLAGS="$java_inc" --without-curses \
f51fa9b
  --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt
f51fa9b
cat config.log
f51fa9b
#exit 1
Tomas Janousek 7eecaf9
make %{?_smp_mflags}
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
Tomas Janousek 7eecaf9
rm -rf $RPM_BUILD_ROOT
Tomas Janousek e2b1266
make INSTALL_PROGRAM='$(INSTALL_SCRIPT)' install #install-programs install-help install-tables install-drivers install-manpage
havill 7d6c3ee
install -m 644 Documents/brltty.conf "${RPM_BUILD_ROOT}%{_sysconfdir}"
prockai 5b800bd
rm -f ${RPM_BUILD_ROOT}/usr/bin/xbrlapi # whatever this is, we exclude it for now
cvsdist a88e837
Tomas Janousek e2b1266
ls ${RPM_BUILD_ROOT}/%{_libdir}/brltty/*.so | \
Tomas Janousek e2b1266
    grep -v 'libbrlttybxw.so\|libbrlttyxas.so' | \
Tomas Janousek b3f626f
    sed -e "s|$RPM_BUILD_ROOT||" >libs.filelist
Tomas Janousek b3f626f
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
   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
fi
Tomas Janousek 57b8547
exit 0
cvsdist a88e837
Tomas Janousek b3f626f
%files -f libs.filelist
cvsdist a88e837
%defattr(-,root,root)
prockai c95485f
%config(noreplace) /etc/brltty.conf
prockai c95485f
%{_bindir}/brltty
prockai c95485f
%{_bindir}/brltty-*
Tomas Janousek e2b1266
%{_bindir}/vstp
Tomas Janousek b3f626f
%dir %{_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
Tomas Janousek b3f626f
%files xw
Tomas Janousek b3f626f
%{_libdir}/brltty/libbrlttybxw.so
Tomas Janousek b3f626f
Tomas Janousek e2b1266
%files at-spi
Tomas Janousek e2b1266
%{_libdir}/brltty/libbrlttyxas.so
Tomas Janousek e2b1266
prockai c95485f
%files -n brlapi
prockai c95485f
%defattr(-,root,root)
prockai c95485f
%{_libdir}/libbrlapi.so.*
Tomas Janousek e2b1266
%doc Documents/Manual-BrlAPI/English/BrlAPI.sgml Documents/Manual-BrlAPI/English/BrlAPI.txt
Tomas Janousek e2b1266
%doc Documents/Manual-BrlAPI/English/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
Tomas Janousek e2b1266
%{_includedir}/brlapi*.h
prockai c95485f
%doc %{_mandir}/man3/*
Tomas Janousek e2b1266
%doc Documents/BrlAPIref/html
Tomas Janousek e2b1266
Tomas Janousek e2b1266
%files -n tcl-brlapi
Tomas Janousek e2b1266
%defattr(-,root,root)
f51fa9b
%{tcl_sitearch}/brlapi-%{api_version}
Tomas Janousek e2b1266
Tomas Janousek e2b1266
%files -n python-brlapi
Tomas Janousek e2b1266
%defattr(-,root,root)
Tomas Janousek e2b1266
%{python_sitearch}/brlapi.so
Tomas Janousek 7eecaf9
%{python_sitearch}/Brlapi-%{api_version}-py%{pyver}.egg-info
Tomas Janousek 7eecaf9
Tomas Janousek 7eecaf9
%files -n brlapi-java
Tomas Janousek 7eecaf9
%defattr(-,root,root)
Tomas Janousek 7eecaf9
%{_jnidir}/libbrlapi_java.so
Tomas Janousek 7eecaf9
%{_javadir}/brlapi.jar
cvsdist a88e837
Tomas Janousek b3f626f
cvsdist a88e837
%changelog
6d8a274
* Tue May 12 2009 Stepan Kasal <skasal@redhat.com> - 3.10-5
6d8a274
- rebuild after java-1.5.0-gcj rebuild
6d8a274
f51fa9b
* Thu Apr 30 2009 Stepan Kasal <skasal@redhat.com> - 3.10-4
f51fa9b
- own the tcl subdirectory (#474032)
f51fa9b
- set CPPFLAGS to java include dirs, so that the java bindings build with
f51fa9b
  any java implementation (#498964)
f51fa9b
- add --without-curses; there is no curses package BuildRequired anyway
f51fa9b
6c9a6db
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-3
6c9a6db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6c9a6db
3c99a8f
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.10-2
3c99a8f
- Rebuild for Python 2.6
3c99a8f
f326de9
* Sat Sep 13 2008 Stepan Kasal <skasal@redhat.com> - 3.10-1
f326de9
- new upstream release
f326de9
- drop brltty-3.9-java-svn.patch, brltty-3.9-tcl85path.patch,
f326de9
  and brltty-3.9-pyxfix.patch, they are upstream
f326de9
- fix BuildRoot
f326de9
- fix many sub-packages' Requires on brlapi
f326de9
6cc4c5d
* Wed Sep 10 2008 Stepan Kasal <skasal@redhat.com> - 3.9-3
6cc4c5d
- add brltty-3.9-autoconf.patch to fix to build with Autoconf 2.62
6cc4c5d
- add brltty-3.9-parallel.patch to fix race condition with parallel make
6cc4c5d
- add brltty-3.9-pyxfix.patch to fix build with current pyrex
6cc4c5d
- Summary lines shall not end with a dot
6cc4c5d
Tomas Janousek 37c9aa8
* Thu Feb 28 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-2.2
Tomas Janousek 37c9aa8
- glibc build fixes
Tomas Janousek 37c9aa8
- applied java reorganisations from svn
Tomas Janousek 37c9aa8
f4dcdca
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.9-2.1
f4dcdca
- Autorebuild for GCC 4.3
f4dcdca
Tomas Janousek ae11bd2
* Wed Jan 09 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1.1
Tomas Janousek ae11bd2
- specfile update to comply with tcl packaging guidelines
Tomas Janousek ae11bd2
Tomas Janousek 7eecaf9
* Mon Jan 07 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1
Tomas Janousek 7eecaf9
- update to latest upstream (3.9)
Tomas Janousek 7eecaf9
Tomas Janousek 7eecaf9
* Tue Sep 18 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
Tomas Janousek 7eecaf9
- update to r3231 from svn
Tomas Janousek 7eecaf9
- added java binding subpackage
Tomas Janousek 7eecaf9
Tomas Janousek 7eecaf9
* Wed Aug 29 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
Tomas Janousek 7eecaf9
- update to r3231 from svn
Tomas Janousek 7eecaf9
Tomas Janousek e2b1266
* Tue Aug 21 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-1
Tomas Janousek e2b1266
- update to latest upstream
Tomas Janousek e2b1266
- added the at-spi driver, tcl and python bindings
Tomas Janousek e2b1266
- fixed the license tags
Tomas Janousek e2b1266
Tomas Janousek b3f626f
* Mon Mar 05 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-3
Tomas Janousek b3f626f
- added the XWindow driver
Tomas Janousek b3f626f
- build fix for newer byacc
Tomas Janousek b3f626f
Tomas Janousek 68de005
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2.1
Tomas Janousek 68de005
- quiet postinstall scriptlet, really fixes #224570
Tomas Janousek 68de005
Tomas Janousek 57b8547
* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2
Tomas Janousek 57b8547
- failsafe postinstall script, fixes #224570
Tomas Janousek 57b8547
- makefile fix - debuginfo extraction now works
Tomas Janousek 57b8547
Tomas Janousek 96dcaf2
* Thu Jan 25 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-1.1
Tomas Janousek 96dcaf2
- fix building with newer kernel-headers (#224149)
Tomas Janousek 96dcaf2
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