--- parrot.spec 2009-02-02 13:58:31.000000000 +0100 +++ parrot.spec.new 2009-02-03 16:00:20.000000000 +0100 @@ -47,6 +47,14 @@ tools/dev/mk_manifests.pl %build + +if test "%{_vendor}" = "suse" +then + LIBS='-lncurses -lm' +else + LIBS='-lcurses -lm' +fi + %{__perl} Configure.pl \ --prefix=%{_usr} \ --libdir=%{_libdir} \ @@ -59,7 +67,7 @@ --parrot_is_shared \ --lex=/usr/bin/flex \ --yacc=/usr/bin/yacc \ - --libs='-lcurses -lm' + --libs="$LIBS" export LD_LIBRARY_PATH=$( pwd )/blib/lib make @@ -75,8 +83,8 @@ export LD_LIBRARY_PATH=$( pwd )/blib/lib make install DESTDIR=$RPM_BUILD_ROOT -# Drop the docs so rpm can pick them up itself. -rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot +# Drop the docs so rpm can pick them up itself. (necessary for SuSE) +rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # Force permissions on doc directories. find docs examples -type d -exec chmod 755 {} \;