diff --git a/.cvsignore b/.cvsignore index e69de29..0792b4a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +brltty-3.2.tar.gz diff --git a/brltty.spec b/brltty.spec new file mode 100644 index 0000000..53e72cd --- /dev/null +++ b/brltty.spec @@ -0,0 +1,85 @@ +Name: brltty +Version: 3.2 +Release: 2.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. + +%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. + +%prep +%setup -n %{name}-%{version} + +%build +%configure --with-install-root="${RPM_BUILD_ROOT}" +make + +directory="doc" +mkdir -p "${directory}" +for file in `find . -path "./${directory}" -prune -o \( -name 'README*' -o -name '*.txt' -o -name '*.html' -o -name '*.sgml' \) -print` +do + mkdir -p "${directory}/${file%/*}" + cp -rp "${file}" "${directory}/${file}" +done + +%install +make install-programs install-help install-tables install-drivers install-manpage +install Documents/brltty.conf "${RPM_BUILD_ROOT}/etc" +rm -f ${RPM_BUILD_ROOT}/bin/brltty +rm -f ${RPM_BUILD_ROOT}/bin/install-brltty +rm -rf ${RPM_BUILD_ROOT}/lib/brltty/* + +%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) +%doc COPYING +%doc Documents/ChangeLog Documents/TODO +%doc Bootdisks/rhmkboot Bootdisks/rhmkroot +%doc doc/* +%doc /usr/share/man/man1/* +%config(noreplace) /etc/brltty.conf +%{_bindir}/brltty +%{_bindir}/install-brltty +%{_libdir}/brltty/* +/etc/brltty + +%changelog +* Wed Aug 27 2003 Adrian Havill 3.2-2.1 +- bumped n-v-r + +* Mon Jul 07 2003 Adrian Havill 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 diff --git a/sources b/sources index e69de29..895b317 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fd87518e19657109987832cf7134958c brltty-3.2.tar.gz