Le Mardi 16 Juillet 2002 12:41, Florent BERANGER a écrit :
> http://mielke.cc/brltty/
>
> rpm and src.rpm are availables on download page.
> I'll try to make a Mdk package.
> --------------


I've tryed to make a src.rpm for Mdk but I have an error
at build step :

bash-2.05a$ rpm -ba brltty-3.0-2.spec
Executing(%prep): /bin/sh -e
/home/cosmicflo/rpm/tmp/rpm-tmp.66209
+ umask 022
+ cd /home/cosmicflo/rpm/BUILD
+ cd /home/cosmicflo/rpm/BUILD
+ rm -rf brltty-3.0
+ /usr/bin/bzip2 -dc
/home/cosmicflo/rpm/SOURCES/brltty-3.0.tar.bz2
+ tar -xvvf -
drwxr-xr-x dave/family       0 2002-07-14 01:02:16 brltty-3.0/
drwxr-xr-x dave/family       0 2002-07-14 01:02:16
brltty-3.0/Alva/
drwxr-xr-x dave/family       0 2001-03-26 03:47:31
brltty-3.0/Alva/alva_api.library/
-rw-r--r-- dave/family   16588 1998-10-05 16:26:22
brltty-3.0/Alva/alva_api.library/alva_api.a
...
-rw-r--r-- dave/family    3642 2002-04-12 00:56:49
brltty-3.0/tones_soundcard.c
-rw-r--r-- dave/family    2189 2002-07-11 14:00:37
brltty-3.0/tones_speaker.c
-rw-r--r-- dave/family   11068 2002-04-12 00:56:49
brltty-3.0/tunes.c
-rw-r--r-- dave/family    2108 2002-04-12 00:57:37
brltty-3.0/tunes.h
-rw-r--r-- dave/family    5391 2002-04-12 00:56:49
brltty-3.0/tunetest.c
-rw-r--r-- dave/family    2583 2002-04-12 00:56:49
brltty-3.0/txt2hlp.c
-rw-r--r-- dave/family     317 2002-06-04 03:52:37
brltty-3.0/cfmakeraw.c
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd brltty-3.0
+ exit 0
Executing(%build): /bin/sh -e
/home/cosmicflo/rpm/tmp/rpm-tmp.64065
+ umask 022
+ cd /home/cosmicflo/rpm/BUILD
+ cd brltty-3.0
+ set -e
+ make
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2  -c main.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 \
        '-DHOME_DIR="/etc/brltty"' \
        '-DBRLLIBS="al bl bn cb ec eu ht lt md mn mb pm ts
va vh vd vs vo"' \
        '-DSPKLIBS="al bl cb es fv gs tv"' \
        '-DBRLDEV="/dev/ttyS0"' \
        '-DTEXTTRANS="text.simple.tbl"' \
        '-DATTRTRANS="attributes.tbl"' \
                -c config.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c route.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c misc.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
ctb_compile.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
ctb_translate.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c tunes.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
tones_speaker.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
tones_soundcard.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
tones_sequencer.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c
tones_adlib.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c adlib.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2 -c cut.c
gcc -Wall -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -O2
'-DLIB_PATH="/lib/brltty"'  -c spk_load.c
In file included from spk_load.c:31:
spk_driver.h:56: conflicting types for `noSpeech'
spk.h:42: previous declaration of `noSpeech'
make: *** [spk_load.o] Erreur 1
error: Bad exit status from
/home/cosmicflo/rpm/tmp/rpm-tmp.64065 (%build)


RPM build errors:
    Bad exit status from
/home/cosmicflo/rpm/tmp/rpm-tmp.64065 (%build)
bash-2.05a$


here my spec file :

Name: brltty
Version: 3.0
Release: 2

Copyright: GPL
Packager: Florent BERANGER
Group: System Environment/Daemons
URL: http://mielke.cc/brltty/
Source:
http://mielke.cc/brltty/releases/%{name}-%{version}.tar.bz2

AutoProv: 0

AutoReq: 0
Requires: ld-linux.so.2
Requires: libc.so.6
Requires: libdl.so.2
Requires: libm.so.6
Requires: /bin/sh

Summary: Braille display driver for Linux.
%description
BRLTTY is a background process (daemon) which provides
access to the Linux 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
set -e

make

directory="doc"
mkdir -p "${directory}"
for file in */README* */*.txt
do
   mkdir -p "${directory}/${file%/*}"
   cp -rp "${file}" "${directory}/${file}"
done
unset file directory

%install
set -e

make INSTALL_ROOT="${RPM_BUILD_ROOT}" install-programs
install-help install-tables install-drivers
install DOCS/brltty.conf "${RPM_BUILD_ROOT}/etc"

%post
set -e

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 access device ${device}..."
   mkdir -p "${device%/*}"
   mknod -m o= "${device}" c 7 128
   chmod 660 "${device}"
   chown root.tty "${device}"
   echo "done."
fi
unset device install devices

%files
%doc README* COPYING
%doc DOCS/ChangeLog DOCS/TODO
%doc DOCS/FAQ.html DOCS/FAQ.txt
%doc DOCS/Manual.sgml DOCS/Manual.txt DOCS/Manual-HTML
%doc DOCS/Manual-ger.sgml DOCS/Manual-ger.txt
DOCS/Manual-ger-HTML
%doc doc/*
%config(noreplace) /etc/brltty.conf
/sbin/brltty
/sbin/install-brltty
/etc/brltty
/lib/brltty


%changelog
* Tue Jul 16 2002 Florent BERANGER
<[EMAIL PROTECTED]> 3.0-1mdk
- initial Mandrake package

Is anyone can help me please ?
Thanks,
  Florent
--------------
Profitez de l'offre exceptionnelle Tiscali !
"Internet Gratuit le Jour"
Cliquez ici, http://register.tiscali.fr/forfaits_ls/
Offre soumise à conditions.



Reply via email to