brltty/brltty.spec

172 lines
5.0 KiB
RPMSpec
Raw Normal View History

Name: brltty
Version: 3.7.2
Release: 1
License: GPL
Group: System Environment/Daemons
URL: http://mielke.cc/brltty/
Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-InstallRoot
Summary: Braille display driver for Linux/Unix.
2006-07-02 10:50:31 +00:00
Requires(post): coreutils
2006-06-05 21:29:19 +00:00
BuildRequires: byacc
%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.
%package -n brlapi
Version: 0.4.1
Group: Applications/System
License: LGPL
Summary: Appliation Programming Interface for BRLTTY.
%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
Version: 0.4.1
Group: Development/System
License: LGPL
Requires: brlapi = 0.4.1
Summary: Headers, static archive, and documentation for BrlAPI.
%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.
%prep
%setup -n brltty-3.7.2
%build
%configure --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt
make
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)
do
mkdir -p "doc/${file%/*}"
cp -rp "${file}" "doc/${file}"
done
%install
make 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}"
rm ${RPM_BUILD_ROOT}/usr/bin/xbrlapi # whatever this is, we exclude it for now
2004-11-26 19:09:17 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%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
device="$(set -- ${devices} && echo "${1}")"
echo -n "Creating screen inspection device ${device}..."
mkdir -p "${device%/*}"
mknod -m o= "${device}" c 7 128
chmod 660 "${device}"
chown root.tty "${device}"
echo "done."
fi
%files
%defattr(-,root,root)
%config(noreplace) /etc/brltty.conf
%{_bindir}/brltty
%{_bindir}/brltty-*
%{_libdir}/brltty
/etc/brltty
%doc COPYING
%doc Documents/ChangeLog Documents/TODO
%doc Bootdisks/rhmkboot Bootdisks/rhmkroot
%doc doc/*
%doc /usr/share/man/man1/*
%files -n brlapi
%defattr(-,root,root)
%{_libdir}/libbrlapi.so.*
%doc Documents/BrlAPI.sgml Documents/BrlAPI.txt Documents/BrlAPI-HTML
%doc Documents/README.Gnopernicus
%files -n brlapi-devel
%defattr(-,root,root)
%{_libdir}/libbrlapi.a
%{_libdir}/libbrlapi.so
%{_includedir}/brltty
%doc %{_mandir}/man3/*
%doc Documents/BrlAPIref-HTML
%changelog
* 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)
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Sep 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- prereq coreutils for mknod/chown/chmod
* 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