[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpms/tetex-prosper (doesn't build in FC3)



Michael,

Strange. It doesn't build in a FC3 system (but it does build in
FC4/rawhide system):
----------
+ unset DISPLAY
+ rm -rf /var/tmp/tetex-prosper-1.5-1-root-jpo
+ install -d -m 755
/var/tmp/tetex-prosper-1.5-1-root-jpo/usr/share/texmf/tex/latex/prosper/contrib/img
+ install -d -m 755
/var/tmp/tetex-prosper-1.5-1-root-jpo/usr/share/texmf/tex/latex/prosper/designer
+ install -d -m 755
/var/tmp/tetex-prosper-1.5-1-root-jpo/usr/share/texmf/tex/latex/prosper/img
+ install -d -m 755
/var/tmp/tetex-prosper-1.5-1-root-jpo/usr/share/texmf/doc/latex/prosper
+ dos2unix -k contrib/PPRmancini.sty
dos2unix: converting file contrib/PPRmancini.sty to UNIX format ...
dos2unix: problems converting file contrib/PPRmancini.sty
error: Bad exit status from /var/tmp/rpm-tmp.341 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.341 (%install)
make: *** [i386] Error 1
----------

I think it is better to replace dos2unix by sed (and also move the
file modification into the %prep section). See patch attached.


Regards,
jpo
-- 
José Pedro Oliveira
* mailto: jpo di uminho pt * http://gsd.di.uminho.pt/~jpo *
* gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B *
http://conferences.yapceurope.org/2005/ * http://braga.yapceurope.org/
--- tetex-prosper.spec.1	2005-06-07 12:40:17.000000000 +0100
+++ tetex-prosper.spec	2005-06-07 13:19:53.000000000 +0100
@@ -23,7 +23,7 @@
 BuildArch:      noarch
 
 BuildRequires:  /usr/bin/kpsewhich
-BuildRequires:  dos2unix
+BuildRequires:  sed >= 3.95
 Requires:       tetex-latex tetex-dvips 
 Requires:       ghostscript >= 6.0
 Requires(post):	  /usr/bin/texhash
@@ -42,6 +42,7 @@
 
 %prep
 %setup -q -n prosper
+%{__sed} -i 's/\r//' contrib/PPRmancini.sty
 
 %build
 
@@ -53,7 +54,6 @@
 install -d -m 755 %buildroot%{texpkgdir}/img
 install -d -m 755 %buildroot%{texpkgdoc}
 
-dos2unix -k contrib/PPRmancini.sty
 install -p -m 644 *.{cls,sty} %buildroot%{texpkgdir}/
 install -p -m 644 contrib/*.{ps,sty,tex} %buildroot%{texpkgdir}/contrib/
 install -p -m 644 contrib/img/*.{eps,gif,ps} %buildroot%{texpkgdir}/contrib/img/

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]