Browse Source

achieve robust subshell handling by consistently using '(...) || exit 0' constructs to make sure the scripts fail if a subshell fails

master
parent
commit
57dcbf7729
  1. 6
      accent/accent.spec
  2. 6
      acroread/acroread.spec
  3. 36
      apache/apache.spec
  4. 37
      aspell/aspell.spec
  5. 6
      bind8/bind8.spec
  6. 12
      bison/bison.spec
  7. 4
      bochs/bochs.spec
  8. 4
      bs/bs.spec
  9. 14
      cflow/cflow.spec
  10. 4
      coreutils/coreutils.spec
  11. 4
      db/db.spec
  12. 6
      dcoracle2/dcoracle2.spec
  13. 4
      docbook/docbook.spec
  14. 4
      dsh/dsh.spec
  15. 6
      dsniff/dsniff.spec
  16. 6
      dss/dss.spec
  17. 4
      exim/exim.spec
  18. 8
      expect/expect.spec
  19. 10
      flex/flex.spec
  20. 14
      gcc/gcc.spec
  21. 8
      gcc2/gcc2.spec
  22. 14
      gcc32/gcc32.spec
  23. 14
      gcc34/gcc34.spec
  24. 8
      gentle/gentle.spec
  25. 4
      ghostscript/ghostscript.spec
  26. 10
      giflib/giflib.spec
  27. 11
      gimp/gimp.spec
  28. 32
      imagemagick/imagemagick.spec
  29. 12
      infozip/infozip.spec
  30. 6
      ipaudit/ipaudit.spec
  31. 6
      ircd/ircd.spec
  32. 14
      ispell/ispell.spec
  33. 6
      j2ee/j2ee.spec
  34. 9
      j2se/j2se.spec
  35. 12
      j2se14/j2se14.spec
  36. 4
      jitterbug/jitterbug.spec
  37. 10
      kimwitu/kimwitu.spec
  38. 4
      libdnet/libdnet.spec
  39. 5
      libffi/libffi.spec
  40. 4
      lsof/lsof.spec
  41. 5
      make/make.spec
  42. 6
      memphis/memphis.spec
  43. 4
      mico/mico.spec
  44. 8
      mozilla/mozilla.spec
  45. 6
      mplayer/mplayer.spec
  46. 7
      ncurses/ncurses.spec
  47. 5
      nntpcache/nntpcache.spec
  48. 4
      noweb/noweb.spec
  49. 8
      ntp/ntp.spec
  50. 5
      openjade/openjade.spec
  51. 52
      openpkg/openpkg.spec
  52. 5
      openssl/openssl.spec
  53. 8
      perforce/perforce.spec
  54. 6
      perl-ars/perl-ars.spec
  55. 12
      perl-comp/perl-comp.spec
  56. 6
      perl-conv/perl-conv.spec
  57. 12
      perl-curses/perl-curses.spec
  58. 10
      perl-db/perl-db.spec
  59. 12
      perl-dbi/perl-dbi.spec
  60. 6
      perl-gd/perl-gd.spec
  61. 7
      perl-ssl/perl-ssl.spec
  62. 6
      perl-term/perl-term.spec
  63. 12
      perl-tk/perl-tk.spec
  64. 7
      perl-www/perl-www.spec
  65. 4
      perl/perl.spec
  66. 4
      perl56/perl56.spec
  67. 8
      petidomo/petidomo.spec
  68. 18
      postfix/postfix.spec
  69. 6
      precc/precc.spec
  70. 4
      procmail/procmail.spec
  71. 4
      qt/qt.spec
  72. 4
      ragel/ragel.spec
  73. 4
      rie/rie.spec
  74. 56
      samba/samba.spec
  75. 7
      samhain/samhain.spec
  76. 6
      sav/sav.spec
  77. 17
      sendmail/sendmail.spec
  78. 5
      slang/slang.spec
  79. 8
      smtpfeed/smtpfeed.spec
  80. 14
      tetex/tetex.spec
  81. 52
      tiff/tiff.spec
  82. 17
      tomcat/tomcat.spec
  83. 5
      tomcat4/tomcat4.spec
  84. 4
      tsmc/tsmc.spec
  85. 10
      uucp/uucp.spec
  86. 8
      uvscan/uvscan.spec
  87. 5
      vim/vim.spec
  88. 14
      vorbis-libs/vorbis-libs.spec
  89. 4
      vrrpd/vrrpd.spec
  90. 16
      whois/whois.spec
  91. 16
      xaw3d/xaw3d.spec
  92. 8
      xemacs/xemacs.spec
  93. 11
      xerces-c/xerces-c.spec
  94. 4
      xfig/xfig.spec
  95. 14
      xterm/xterm.spec
  96. 5
      zebra/zebra.spec

6
accent/accent.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Text
License: GPL
Version: 0.8
Release: 20030122
Release: 20030723
# list of sources
Source0: http://accent.compilertools.net/accent-%{version}.tar.gz
@ -58,8 +58,8 @@ AutoReqProv: no
%{l_shtool} subst -e 's;CC=.*;CC="%{l_cc} %{l_cflags -O} -c";' art/build
%build
( cd accent && ./build )
( cd art && ./build )
( cd accent && ./build ) || exit $?
( cd art && ./build ) || exit $?
ar cr libaccent.a art/art.o
%install

6
acroread/acroread.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Graphics
License: Commercial
Version: %{V_real}
Release: 20030711
Release: 20030723
# list of sources
Source0: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-%{V_comp}.tar.gz
@ -147,7 +147,7 @@ AutoReqProv: no
. /etc/rc.conf
fi
case ${linux_enable} in
[Yy][Ee][Ss])
[Yy][Ee][Ss] )
;;
* )
( echo "Acrobat Reader requires the Linux ABI in the kernel."
@ -157,7 +157,7 @@ AutoReqProv: no
) | %{l_rpmtool} msg -b
;;
esac
)
) || exit $?
;;
esac
fi

36
apache/apache.spec

@ -60,7 +60,7 @@ Distribution: OpenPKG [BASE]
Group: Web
License: ASF
Version: %{V_apache}
Release: 20030722
Release: 20030723
# package options (suexec related)
%option with_suexec yes
@ -409,7 +409,7 @@ AutoReqProv: no
./configure \
--with-apache=../apache_%{V_apache} \
--expert --force
)
) || exit $?
%endif
# optionally pre-configure Apache for mod_php, mod_php3 and mod_dav
@ -429,7 +429,7 @@ AutoReqProv: no
--libexecdir=%{l_prefix}/lib/apache \
--datadir=%{l_prefix}/share/apache \
--localstatedir=%{l_prefix}/var/apache
)
) || exit $?
%endif
# optionally prepare mod_perl
@ -462,7 +462,7 @@ AutoReqProv: no
rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3
%{l_shtool} subst -e "s;^\\(PERL = \\).*;\\1 $perl;" \
../apache_%{V_apache}/src/modules/perl/mod_perl.config
)
) || exit $?
%endif
# optionally prepare mod_php
@ -615,7 +615,7 @@ AutoReqProv: no
config_vars.mk
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix}
)
) || exit $?
%endif
# optionally prepare mod_php3
@ -658,7 +658,7 @@ AutoReqProv: no
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix}
)
) || exit $?
%endif
# optionally prepare mod_dav
@ -675,7 +675,7 @@ AutoReqProv: no
--with-apache=../apache_%{V_apache}
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install
)
) || exit $?
%endif
# optionally prepare mod_layout
@ -684,14 +684,14 @@ AutoReqProv: no
mkdir ../apache_%{V_apache}/src/modules/layout
cp * ../apache_%{V_apache}/src/modules/layout/ 2>/dev/null || true
chmod -R u+w ../apache_%{V_apache}/src/modules/layout
)
) || exit $?
%endif
# optionally prepare mod_macro
%if "%{with_mod_macro}" == "yes"
( cd mod_macro-%{V_mod_macro}
cp mod_macro.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# optionally prepare mod_auth_pam
@ -699,14 +699,14 @@ AutoReqProv: no
( cd mod_auth_pam-%{V_mod_auth_pam}
sed -e '234N;s/\n//' -e '239N;s/\n//' <mod_auth_pam.c \
>../apache_%{V_apache}/src/modules/extra/mod_auth_pam.c
)
) || exit $?
%endif
# optionally prepare mod_auth_ldap
%if "%{with_mod_auth_ldap}" == "yes"
( cd modauthldap
cp mod_auth_ldap.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# optionally prepare mod_gzip
@ -719,35 +719,35 @@ AutoReqProv: no
( cd mod_fastcgi-%{V_mod_fastcgi}
mkdir ../apache_%{V_apache}/src/modules/fastcgi
cp -rp * ../apache_%{V_apache}/src/modules/fastcgi/
)
) || exit $?
%endif
# optionally prepare mod_throttle
%if "%{with_mod_throttle}" == "yes"
( cd mod_throttle-*
cp mod_throttle.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# optionally prepare mod_access_referer
%if "%{with_mod_access_referer}" == "yes"
( cd mod_access_referer-%{V_mod_access_referer}
cp mod_access_referer.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# optionally prepare mod_roaming
%if "%{with_mod_roaming}" == "yes"
( cd mod_roaming-%{V_mod_roaming}
cp mod_roaming.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# optionally prepare mod_relocate
%if "%{with_mod_relocate}" == "yes"
( cd mod_relocate-%{V_mod_relocate}
cp mod_relocate.c ../apache_%{V_apache}/src/modules/extra/
)
) || exit $?
%endif
# configure Apache
@ -852,7 +852,7 @@ AutoReqProv: no
%endif
--enable-module=so
%{l_make} %{l_mflags -O} build-quiet
)
) || exit $?
%install
# install Apache
@ -874,7 +874,7 @@ AutoReqProv: no
mv $RPM_BUILD_ROOT%{l_prefix}/share/apache/cgi-bin \
$RPM_BUILD_ROOT%{l_prefix}/cgi/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/cgi/test-cgi
)
) || exit $?
%if "%{with_mod_perl}" == "yes"
# cleanup for mod_perl

37
aspell/aspell.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [BASE]
Group: Text
License: GPL
Version: %{V_aspell}
Release: 20030708
Release: 20030723
# list of sources
Source0: ftp://ftp.gnu.org/gnu/aspell/aspell-%{V_aspell}.tar.gz
@ -70,21 +70,22 @@ AutoReqProv: no
%setup2 -q -T -D -a 2
%build
# configure GNU aspell
cd aspell-%{V_aspell}
CC="%{l_cc}" \
CXX="%{l_cxx}" \
CFLAGS="%{l_cflags -O}" \
CXXFLAGS="%{l_cxxflags -O}" \
CPPFLAGS="%{l_cppflags}" \
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/aspell \
--enable-curses-include=%{l_prefix}/include \
--enable-curses="%{l_ldflags} -lncurses" \
--disable-shared
# build GNU aspell
( cd aspell-%{V_aspell}
CC="%{l_cc}" \
CXX="%{l_cxx}" \
CFLAGS="%{l_cflags -O}" \
CXXFLAGS="%{l_cxxflags -O}" \
CPPFLAGS="%{l_cppflags}" \
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/aspell \
--enable-curses-include=%{l_prefix}/include \
--enable-curses="%{l_ldflags} -lncurses" \
--disable-shared
%{l_make} %{l_mflags -O}
)
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
@ -99,7 +100,7 @@ AutoReqProv: no
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/lib/aspell
)
) || exit $?
# prepare dictionary installation
( echo "ASPELL = $RPM_BUILD_ROOT%{l_prefix}/bin/aspell"
@ -116,13 +117,13 @@ AutoReqProv: no
( cd aspell-en-%{V_aspell_en}
cat ../Makefile.head Makefile.pre >Makefile
%{l_make} %{l_mflags} install
)
) || exit $?
# install GNU aspell German (DE) dictionary
( cd aspell-de-%{V_aspell_de}
cat ../Makefile.head Makefile.pre >Makefile
%{l_make} %{l_mflags} install
)
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

6
bind8/bind8.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: DNS
License: GPL
Version: 8.4.1
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
@ -96,7 +96,7 @@ Conflicts: bind
( cd src
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT INSTALL_LIB=""
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
)
) || exit $?
# strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/mkservdb
@ -114,7 +114,7 @@ Conflicts: bind
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man$i
%{l_shtool} install -c *.$i $RPM_BUILD_ROOT%{l_prefix}/man/man$i/
done
)
) || exit $?
# remove superfluous manual pages
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/mkdep.1

12
bison/bison.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [CORE]
Group: Language
License: GPL
Version: %{V_release}
Release: 20030604
Release: 20030723
# package options
%option with_beta yes
@ -71,7 +71,7 @@ AutoReqProv: no
%setup1 -q -T -D -a 1
( cd bison-%{V_beta}
%patch -p0
)
) || exit $?
%endif
%build
@ -82,7 +82,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} -f Makefile %{l_mflags}
)
) || exit $?
%if "%{with_beta}" == "yes"
( cd bison-%{V_beta}
CC="%{l_cc}" \
@ -91,7 +91,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} -f Makefile %{l_mflags}
)
) || exit $?
%endif
%install
@ -103,11 +103,11 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/bin/bison-beta
mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison.1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man1/bison-beta.1
)
) || exit $?
%endif
( cd bison-%{V_release}
%{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias

4
bochs/bochs.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Misc
License: LGPL
Version: 2.0.2
Release: 20030721
Release: 20030723
# list of sources
Source0: http://osdn.dl.sourceforge.net/sourceforge/bochs/bochs-%{version}.tar.gz
@ -124,7 +124,7 @@ AutoReqProv: no
%{l_gzip} -9 fonts/vga.pcf
x11_bindir=`%{l_prefix}/etc/rc --query x11_bindir`
$x11_bindir/mkfontdir fonts
)
) || exit $?
# provide executable wrapper which finds the VGA font
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

4
bs/bs.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [JUNK]
Group: Network
License: GNU
Version: %{V_major}%{V_patch}
Release: 20030722
Release: 20030723
# list of sources
Source0: http://osdn.dl.sourceforge.net/sourceforge/bigsister/big-sister-%{version}.tar.gz
@ -89,7 +89,7 @@ AutoReqProv: no
# install skins manually
(cd skins && %{l_tar} cf - *) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/libexec/bs/www/skins && %{l_tar} xf -)
(cd $RPM_BUILD_ROOT%{l_prefix}/libexec/bs/www/skins && %{l_tar} xf -) || exit $?
find $RPM_BUILD_ROOT%{l_prefix}/libexec/bs/www/skins -type d -exec chmod 755 {} \;
find $RPM_BUILD_ROOT%{l_prefix}/libexec/bs/www/skins -type f -exec chmod 644 {} \;

14
cflow/cflow.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [PLUS]
Group: Language
License: PD
Version: %{V_cflow}
Release: 20030704
Release: 20030723
# list of sources
Source0: http://www.ibiblio.org/pub/Linux/devel/lang/c/cflow-%{V_cflow}.tar.gz
@ -72,13 +72,15 @@ AutoReqProv: no
CC="%{l_cc}" \
OPT="%{l_cflags -O}" \
PREFIX=%{l_prefix} \
CFLOW_SHELL=%{l_bash} )
CFLOW_SHELL=%{l_bash}
) || exit $?
( cd cflow2vcg-%{V_cflow2vcg}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure
cd src
%{l_make} %{l_mflags} )
%{l_make} %{l_mflags}
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -92,10 +94,12 @@ AutoReqProv: no
%{l_shtool} install -c -s -m 755 \
prcc prcg $RPM_BUILD_ROOT%{l_prefix}/libexec/cflow/
%{l_shtool} install -c -m 644 \
cflow.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ )
cflow.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
) || exit $?
( cd cflow2vcg-%{V_cflow2vcg}
%{l_shtool} install -c -s -m 755 \
src/cflow2vcg $RPM_BUILD_ROOT%{l_prefix}/bin/ )
src/cflow2vcg $RPM_BUILD_ROOT%{l_prefix}/bin/
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

4
coreutils/coreutils.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Utility
License: GPL
Version: 5.0.1
Release: 20030716
Release: 20030723
# package options
%option with_legacy no
@ -101,7 +101,7 @@ AutoReqProv: no
for i in g*; do
ln -s $i `echo "$i" | sed -e 's;^g;;'`
done
)
) || exit $?
%endif
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias

4
db/db.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
Group: Database
License: BSD
Version: %{V_version}.%{V_revision}
Release: 20030605
Release: 20030723
# package options
%option with_compat no
@ -101,7 +101,7 @@ AutoReqProv: no
( cd build_unix
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
)
) || exit $?
rm -rf $RPM_BUILD_ROOT%{l_prefix}/docs
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%if "%{with_compat}" == "no"

6
dcoracle2/dcoracle2.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: Open Source
Version: 1.2
Release: 20030707
Release: 20030723
# list of sources
Source0: http://www.zope.org/Members/matt/dco2/DCOracle2-%{version}.tgz
@ -61,7 +61,7 @@ AutoReqProv: no
( ORACLE_HOME="`%{l_prefix}/etc/rc --query oracle_home`"
export ORACLE_HOME
MAKE="%{l_make}" %{l_make} %{l_mflags -O} DCOracle2/dco2.so
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -70,7 +70,7 @@ AutoReqProv: no
( ORACLE_HOME="`%{l_prefix}/etc/rc --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py install --root=$RPM_BUILD_ROOT
)
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

4
docbook/docbook.spec

@ -44,7 +44,7 @@ Distribution: OpenPKG [PLUS]
Group: SGML
License: BSD
Version: 4.2
Release: 20030721
Release: 20030723
# list of sources
Source0: http://www.oasis-open.org/docbook/xml/%{V_dtd_xml}/docbook-xml-%{V_dtd_xml}.zip
@ -80,7 +80,7 @@ AutoReqProv: no
for zip in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
base=`echo $zip | sed -e 's;^.*/\([^/]*\)\.zip$;\1;'`
mkdir $base
(cd $base; %{l_prefix}/bin/unzip -q -x $zip)
( cd $base; %{l_prefix}/bin/unzip -q -x $zip ) || exit $?
done
for tgz in %{SOURCE6} %{SOURCE7}; do
%{l_gzip} -d -c $tgz | %{l_tar} -xf -

4
dsh/dsh.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [PLUS]
Group: Shell
License: GPL
Version: %{V_dsh}
Release: 20030717
Release: 20030723
# list of sources
Source0: http://www.netfort.gr.jp/~dancer/software/downloads/dsh-%{V_dsh}.tar.gz
@ -74,7 +74,7 @@ AutoReqProv: no
%{l_shtool} subst -e 's;ssize_t;int;g' -- libdshconfig.c
%{l_make} %{l_mflags -O}
rm -f .libs/*.la*
)
) || exit $?
# build dsh
%{l_shtool} subst \

6
dsniff/dsniff.spec

@ -49,7 +49,7 @@ Distribution: OpenPKG [EVAL]
Group: Network
License: BSD-style
Version: %{V_dsniff}
Release: 20030707
Release: 20030723
# list of sources
Source0: http://www.monkey.org/~dugsong/dsniff/dsniff-%{V_dsniff}.tar.gz
@ -90,7 +90,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
) || exit $?
( cd libnids-%{V_libnids}
PATH="`pwd`/../Libnet-%{V_libnet}:$PATH"
define="LIBNET_LIL_ENDIAN"
@ -104,7 +104,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
) || exit $?
CC="%{l_cc}"
CFLAGS="%{l_cflags -O}"
CFLAGS="$CFLAGS -I`pwd`/Libnet-%{V_libnet}/include"

6
dss/dss.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Video
License: APSL
Version: %{V_opkg}
Release: 20030722
Release: 20030723
# list of sources
Source0: http://www.opensource.apple.com/projects/streaming/source/DSS-%{V_dss}.src.tar.gz
@ -218,7 +218,7 @@ AutoReqProv: no
QTFileTools/QTSampleLister.tproj \
QTFileTools/QTTrackInfo.tproj; \
do
(cd $dir && %{l_make} %{l_mflags -O} -f Makefile.POSIX)
( cd $dir && %{l_make} %{l_mflags -O} -f Makefile.POSIX ) || exit $?
done
%install
@ -265,7 +265,7 @@ AutoReqProv: no
touch qtusers
touch qtgroups
echo 'realm Streaming Server' >qtusers
)
) || exit $?
# install run commands
%{l_shtool} install -c -m 755 %{l_value -s -a} \

4
exim/exim.spec

@ -35,7 +35,7 @@ Distribution: OpenPKG [JUNK]
Group: Mail
License: GPL
Version: 4.20
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -156,7 +156,7 @@ Conflicts: sendmail, postfix, ssmtp
ln -s ../bin/exim sendmail
ln -s ../bin/exim mailq
ln -s ../bin/exim rmail
)
) || exit $?
( echo "#!/bin/sh"
echo "%{l_prefix}/sbin/sendmail -bi"

8
expect/expect.spec

@ -46,7 +46,7 @@ Distribution: OpenPKG [BASE]
Group: Language
License: GPL
Version: %{V_expect}
Release: 20030722
Release: 20030723
# list of sources
Source0: http://expect.nist.gov/expect.tar.gz
@ -80,7 +80,7 @@ AutoReqProv: no
--disable-load \
--disable-shared
%{l_make} %{l_mflags -O}
)
) || exit $?
( cd expect-%{V_expect}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
@ -91,7 +91,7 @@ AutoReqProv: no
--disable-load \
--disable-shared
%{l_make} %{l_mflags -O} expect
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -103,7 +103,7 @@ AutoReqProv: no
expect $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c -m 644 \
expect.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/
)
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

10
flex/flex.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [CORE]
Group: Language
License: BSD
Version: %{V_release}
Release: 20030402
Release: 20030723
# package options
%option with_beta yes
@ -78,7 +78,7 @@ AutoReqProv: no
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags}
)
) || exit $?
%if "%{with_beta}" == "yes"
( cd flex-%{V_beta}
CC="%{l_cc}" \
@ -87,7 +87,7 @@ AutoReqProv: no
--prefix=%{l_prefix} \
--disable-nls
%{l_make} %{l_mflags}
)
) || exit $?
%endif
%install
@ -103,12 +103,12 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/lib/libfl-beta.a
mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man1/flex-beta.1
)
) || exit $?
%endif
( cd flex-%{V_release_maj}
%{l_make} %{l_mflags} install
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++
)
) || exit $?
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

14
gcc/gcc.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [CORE]
Group: Language
License: GPL
Version: %{V_full}
Release: 20030722
Release: 20030723
# package options
%option with_cxx yes
@ -191,7 +191,8 @@ Provides: gcc = %{version}-%{release}
# perform the standard installation procedure
( cd obj
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT )
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
# cleanup installation tree
mv $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.a \
@ -237,15 +238,18 @@ Provides: gcc = %{version}-%{release}
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for file in *; do
mv ${file} ${file}%{V_comp}
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/info
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
%endif
# determine installation file list

8
gcc2/gcc2.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: GPL
Version: 2.95.3
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
@ -140,17 +140,17 @@ AutoReqProv: no
for file in *; do
mv ${file} ${file}2
done
)
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/info
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\12\2;'`
done
)
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\12\2;'`
done
)
) || exit $?
# cleanup tree
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libiberty.a

14
gcc32/gcc32.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [PLUS]
Group: Language
License: GPL
Version: %{V_full}
Release: 20030704
Release: 20030723
# package options
%option with_cxx yes
@ -178,7 +178,8 @@ Provides: gcc = %{version}-%{release}
# perform the standard installation procedure
( cd obj
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT )
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
# cleanup installation tree
mv $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.a \
@ -224,15 +225,18 @@ Provides: gcc = %{version}-%{release}
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for file in *; do
mv ${file} ${file}%{V_comp}
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/info
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
%endif
# determine installation file list

14
gcc34/gcc34.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: GPL
Version: %{V_full}s%{V_snap}
Release: 20030710
Release: 20030723
# package options
%option with_cxx yes
@ -179,7 +179,8 @@ Provides: gcc = %{version}-%{release}
# perform the standard installation procedure
( cd obj
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT )
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
# cleanup installation tree
mv $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.a \
@ -225,15 +226,18 @@ Provides: gcc = %{version}-%{release}
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for file in *; do
mv ${file} ${file}%{V_comp}
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/info
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
for file in *; do
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done )
done
) || exit $?
%endif
# determine installation file list

8
gentle/gentle.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Text
License: GPL
Version: 97
Release: 20030113
Release: 20030723
# list of sources
Source0: http://www.first.gmd.de/gentle/gentle-%{version}.tar.gz
@ -64,9 +64,9 @@ AutoReqProv: no
%{l_shtool} subst -e 's;cc;%{l_cc} %{l_cflags -O};' reflex/build
%build
( cd gentle && ./build )
( cd lib && ./build )
( cd reflex && ./build )
( cd gentle && ./build ) || exit $?
( cd lib && ./build ) || exit $?
( cd reflex && ./build ) || exit $?
ar cr libgentle.a gentle/grts.o lib/*.o
%install

4
ghostscript/ghostscript.spec

@ -42,7 +42,7 @@ Distribution: OpenPKG [BASE]
Group: Graphics
License: Aladdin
Version: %{V_real}
Release: 20030708
Release: 20030723
# package options
%option with_x11 yes
@ -124,7 +124,7 @@ AutoReqProv: no
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags} -f src/unix-gcc.mak install DEVICE_DEVS="" \
prefix=$RPM_BUILD_ROOT%{l_prefix}
)
) || exit $?
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/fonts
%{l_shtool} install -c fonts/* \

10
giflib/giflib.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Graphics
License: LGPL
Version: 4.1.0
Release: 20020405
Release: 20030723
# list of sources
Source0: ftp://prtr-13.ucsc.edu/pub/libungif/giflib-%{version}.tar.gz
@ -73,7 +73,7 @@ AutoReqProv: no
--without-x \
--disable-shared
%{l_make} %{l_mflags -O}
)
) || exit $?
( cd libungif-%{version}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
@ -82,16 +82,16 @@ AutoReqProv: no
--without-x \
--disable-shared
%{l_make} %{l_mflags -O}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
( cd giflib-%{version}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
)
) || exit $?
( cd libungif-%{version}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
)
) || exit $?
rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

11
gimp/gimp.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Graphics
License: GPL
Version: 1.2.5
Release: 20030711
Release: 20030723
# list of sources
Source0: ftp://ftp.gimp.org/pub/gimp/v1.2/v%{version}/gimp-%{version}.tar.bz2
@ -86,13 +86,16 @@ AutoReqProv: no
rm -f gimp; mv gimp-[0-9].[0-9]* gimp
rm -f gimptool; mv gimptool-[0-9].[0-9]* gimptool
rm -f gimp-remote; mv gimp-remote-[0-9].[0-9]* gimp-remote
rm -f gimp-config; ln gimptool gimp-config )
rm -f gimp-config; ln gimptool gimp-config
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
rm -f gimp.1; mv gimp-[0-9].[0-9]*.1 gimp.1
rm -f gimptool.1; mv gimptool-[0-9].[0-9]*.1 gimptool.1
rm -f gimp-remote.1; mv gimp-remote-[0-9].[0-9]*.1 gimp-remote.1 )
rm -f gimp-remote.1; mv gimp-remote-[0-9].[0-9]*.1 gimp-remote.1
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man5
rm -f gimprc.5; mv gimprc-[0-9].[0-9]*.5 gimprc.5 )
rm -f gimprc.5; mv gimprc-[0-9].[0-9]*.5 gimprc.5
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

32
imagemagick/imagemagick.spec

@ -42,7 +42,7 @@ Distribution: OpenPKG [BASE]
Group: Graphics
License: GPL
Version: %{V_major}.%{V_minor}
Release: 20030708
Release: 20030723
# package options
%option with_perl no
@ -120,20 +120,20 @@ AutoReqProv: no
AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
%if "%{with_perl}" == "yes"
( cd PerlMagick
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/lib/perl
%{l_shtool} subst \
-e "s;-L\\%{l_prefix}/lib;-L$RPM_BUILD_ROOT%{l_prefix}/lib;g" \
-e "s;-I\\%{l_prefix}/include;-I$RPM_BUILD_ROOT%{l_prefix}/include;g" \
Makefile.PL
%{l_prefix}/bin/perl Makefile.PL \
PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
PERL=%{l_prefix}/bin/perl \
FULLPERL=%{l_prefix}/bin/perl
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install
)
( cd PerlMagick
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/lib/perl
%{l_shtool} subst \
-e "s;-L\\%{l_prefix}/lib;-L$RPM_BUILD_ROOT%{l_prefix}/lib;g" \
-e "s;-I\\%{l_prefix}/include;-I$RPM_BUILD_ROOT%{l_prefix}/include;g" \
Makefile.PL
%{l_prefix}/bin/perl Makefile.PL \
PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
PERL=%{l_prefix}/bin/perl \
FULLPERL=%{l_prefix}/bin/perl
%{l_make} %{l_mflags}
%{l_make} %{l_mflags} install
) || exit $?
%endif
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
@ -147,7 +147,7 @@ AutoReqProv: no
rm -rf share/ImageMagick/images
rmdir share/ImageMagick >/dev/null 2>&1 || true
rm -f lib/libMagick.la
)
) || exit $?
%if "%{with_perl}" != "yes"
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

12
infozip/infozip.spec

@ -38,8 +38,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Archiver
License: BSD
Version: 20030710
Release: 20030710
Version: 20030723
Release: 20030723
# list of sources
Source0: ftp://ftp.info-zip.org/pub/infozip/src/zip%{V_zip_real}.tar.gz
@ -67,7 +67,7 @@ AutoReqProv: no
%build
( cd zip-%{V_zip_here}
%{l_make} %{l_mflags} -f unix/Makefile generic
)
) || exit $?
( cd unzip-%{V_unzip_here}
os=generic
case "%{l_target}" in
@ -76,7 +76,7 @@ AutoReqProv: no
*-freebsd* ) os=freebsd ;;
esac
%{l_make} %{l_mflags} -f unix/Makefile $os
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -85,12 +85,12 @@ AutoReqProv: no
%{l_make} %{l_mflags} -f unix/Makefile install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
)
) || exit $?
( cd unzip-%{V_unzip_here}
%{l_make} %{l_mflags} -f unix/Makefile install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
)
) || exit $?
chmod -R u+w $RPM_BUILD_ROOT%{_prefix}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

6
ipaudit/ipaudit.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [JUNK]
Group: Network
License: GPL
Version: 0.95
Release: 20030710
Release: 20030723
# list of sources
Source0: http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tgz
@ -88,13 +88,13 @@ AutoReqProv: no
%{l_shtool} install -c -m 755 \
$i $RPM_BUILD_ROOT%{l_prefix}/bin/
done
)
) || exit $?
( cd man/man1
for i in ipaudit ipstrings total; do
%{l_shtool} install -c -m 644 \
$i.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
done
)
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

6
ircd/ircd.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Network
License: BSD
Version: 2.10.3p3
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -93,7 +93,7 @@ AutoReqProv: no
ircd_conf_dir=%{l_prefix}/etc/ircd \
ircd_var_dir=%{l_prefix}/var/ircd \
ircd_log_dir=%{l_prefix}/var/ircd
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -106,7 +106,7 @@ AutoReqProv: no
ircd_conf_dir=$RPM_BUILD_ROOT%{l_prefix}/etc/ircd \
ircd_var_dir=$RPM_BUILD_ROOT%{l_prefix}/var/ircd \
ircd_log_dir=$RPM_BUILD_ROOT%{l_prefix}/var/ircd
)
) || exit $?
mv $RPM_BUILD_ROOT%{l_prefix}/sbin/chkconf \
$RPM_BUILD_ROOT%{l_prefix}/sbin/ircd-chkconf
mv $RPM_BUILD_ROOT%{l_prefix}/etc/ircd/example.conf \

14
ispell/ispell.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
Group: Text
License: BSD
Version: %{V_ispell}
Release: 20030716
Release: 20030723
# list of sources
Source0: http://fmg-www.cs.ucla.edu/geoff/tars/ispell-%{V_ispell}.tar.gz
@ -66,7 +66,9 @@ AutoReqProv: no
%patch -p0
%{l_gzip} -d -c %{SOURCE words.gz} >$RPM_BUILD_DIR/words
mkdir hk-deutsch
(cd hk-deutsch; %{l_gzip} -d -c %{SOURCE hk-deutsch.tar.gz} | %{l_tar} xf -)
( cd hk-deutsch
%{l_gzip} -d -c %{SOURCE hk-deutsch.tar.gz} | %{l_tar} xf -
) || exit $?
%{l_bzip2} -d -c %{SOURCE igerman98-%{V_igerman98}.tar.bz2} | %{l_tar} xf -
%build
@ -105,13 +107,13 @@ AutoReqProv: no
alphabeta.txt roemisch.txt zusammen.txt | \
sort -u >all.words
../buildhash all.words deutsch.aff deutsch.hash
)
) || exit $?
( cd igerman98-%{V_igerman98}
%{l_shtool} subst -e 's;munchlist;../munchlist;g' Makefile
%{l_make} %{l_mflags} \
UNSQ=cat BUILDHASH=`pwd`/../buildhash \
german.hash 2>/dev/null
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -138,13 +140,13 @@ AutoReqProv: no
deutsch.aff $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch-old.aff
%{l_shtool} install -c -m 644 \
deutsch.hash $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch-old.hash
)
) || exit $?
( cd igerman98-%{V_igerman98}
%{l_shtool} install -c -m 644 \
german.aff $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch.aff
%{l_shtool} install -c -m 644 \
german.hash $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch.hash
)
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

6
j2ee/j2ee.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: Commercial
Version: %{V_openpkg}
Release: 20030719
Release: 20030723
# list of sources
Source0: http://java.sun.com/j2se/::/j2sdkee-%{V_sunjava}-solsparc.sh
@ -112,7 +112,7 @@ AutoReqProv: no
exit 1
;;
esac
)
) || exit $?
# activate binaries
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
@ -121,7 +121,7 @@ AutoReqProv: no
deploytool runclient verifier; do
ln -s ../libexec/j2ee/bin/$bin .
done
)
) || exit $?
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \

9
j2se/j2se.spec

@ -42,7 +42,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: Commercial
Version: %{V_openpkg}
Release: 20030719
Release: 20030723
# package options
%option with_native yes
@ -81,7 +81,6 @@ Conflicts: j2se14
%setup -q -c j2se -T
%build
# no-op
%install
rm -rf $RPM_BUILD_ROOT
@ -106,7 +105,7 @@ Conflicts: j2se14
echo "yes" | sh %{SOURCE j2sdk-%{V_lnx_dist}-linux-i586.bin} >/dev/null
mv jdk%{V_lnx_fsys} j2se
find j2se/bin -type f -print | xargs chmod u+w
( cd j2se; %{l_patch} -p0 <%{SOURCE j2se.patch} )
( cd j2se; %{l_patch} -p0 <%{SOURCE j2se.patch} ) || exit $?
brandelf -t Linux \
`find j2se/bin/ -type f -print` \
>/dev/null 2>&1 || true
@ -126,7 +125,7 @@ Conflicts: j2se14
exit 1
;;
esac
)
) || exit $?
# post-adjustments to installation area
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/j2se/demo 2>/dev/null || true
@ -142,7 +141,7 @@ Conflicts: j2se14
serialver tnameserv; do
ln -s ../libexec/j2se/bin/$bin .
done
)
) || exit $?
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \

12
j2se14/j2se14.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: Commercial
Version: %{V_openpkg}
Release: 20030721
Release: 20030723
# list of sources
Source0: http://java.sun.com/j2se/::/j2sdk-%{V_sunjava}-linux-i586.bin
@ -120,7 +120,7 @@ Conflicts: j2se
;;
esac
mv $pkgdir j2se14
)
) || exit $?
# fix vendor distribution
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/j2se14/bin
@ -135,7 +135,7 @@ Conflicts: j2se
find . -type f -print | xargs chmod u+w
;;
esac
)
) || exit $?
# optionally brand ELF binaries (FreeBSD only)
case "%{l_target}" in
@ -171,9 +171,11 @@ Conflicts: j2se
orbd policytool rmic rmid rmiregistry serialver servertool \
tnameserv; do
ln -s ../libexec/j2se14/bin/$bin .
done )
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/cgi
ln -s ../libexec/j2se14/java-rmi.cgi java-rmi.cgi )
ln -s ../libexec/j2se14/java-rmi.cgi java-rmi.cgi
) || exit $?
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \

4
jitterbug/jitterbug.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Database
License: GPL
Version: 1.6.2.3
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.openpkg.org/sources/DST/jitterbug/ossp-jitterbug-%{version}.tar.gz
@ -90,7 +90,7 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/etc/jitterbug/
cp -rp var/* var/.[a-z]* \
$RPM_BUILD_ROOT%{l_prefix}/var/jitterbug/bugdb/
)
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/jitterbug/*' \

10
kimwitu/kimwitu.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [PLUS]
Group: Converter
License: GPL
Version: %{V_here}
Release: 20020715
Release: 20030723
# list of sources
Source0: ftp://ftp.cs.utwente.nl/pub/src/kimwitu/kc-distr.V%{V_real}.tar.gz
@ -67,10 +67,10 @@ AutoReqProv: no
%setup -q -n kc-distr.V%{V_real}
%build
( cd src
%{l_make} %{l_mflags -O} \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" )
cd src
%{l_make} %{l_mflags -O} \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}"
%install
rm -rf $RPM_BUILD_ROOT

4
libdnet/libdnet.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Network
License: MIT-style
Version: 1.7
Release: 20030322
Release: 20030723
# list of sources
Source0: http://osdn.dl.sourceforge.net/sourceforge/libdnet/libdnet-%{version}.tar.gz
@ -60,7 +60,7 @@ AutoReqProv: no
%build
case "%{l_target}" in
*-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache
*-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache ;;
esac
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \

5
libffi/libffi.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: LGPL
Version: 20030208
Release: 20030630
Release: 20030723
# list of sources
Source0: libffi.tar.gz
@ -90,7 +90,8 @@ AutoReqProv: no
%install
rm -rf $RPM_BUILD_ROOT
( cd gcc/libffi
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" )
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

4
lsof/lsof.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Filesystem
License: BSD
Version: 4.68
Release: 20030620
Release: 20030723
# list of sources
Source0: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}.tar.gz
@ -72,7 +72,7 @@ AutoReqProv: no
( cd lsof_%{version}_src
%{l_shtool} install -c -s lsof $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c lsof.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
)
) || exit $?
setgid=""
case "%{l_target}" in
*-freebsd* ) setgid="kmem" ;;

5
make/make.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
Group: Development
License: GPL
Version: 3.80
Release: 20030109
Release: 20030723
# list of sources
Source0: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
@ -79,7 +79,8 @@ AutoReqProv: no
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
( cd $RPM_BUILD_ROOT%{l_prefix}
ln bin/make bin/gmake
ln man/man1/make.1 man/man1/gmake.1 )
ln man/man1/make.1 man/man1/gmake.1
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

6
memphis/memphis.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Compiler
License: GPL
Version: 1.6
Release: 20020822
Release: 20030723
# list of sources
Source0: http://memphis.compilertools.net/memphis-%{version}.tar.gz
@ -61,8 +61,8 @@ AutoReqProv: no
%{l_shtool} subst -e 's;gcc;%{l_cc} %{l_cflags -O};' mrts/build
%build
( cd memphis && ./build )
( cd mrts && ./build )
( cd memphis && ./build ) || exit $?
( cd mrts && ./build ) || exit $?
ar cr libmemphis.a mrts/mrts.o
%install

4
mico/mico.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: System
License: LGPL/GPL
Version: 2.3.10
Release: 20030722
Release: 20030723
# package options
%option with_ssl no
@ -152,7 +152,7 @@ AutoReqProv: no
%if "%{with_tcl}" == "yes"
mv libmicotcl%{version}.a libmicotcl.a
%endif
)
) || exit $?
# generate files listing
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

8
mozilla/mozilla.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Web
License: MPL
Version: %{V_mozilla}
Release: 20030717
Release: 20030723
# package options
%option with_mailnews no
@ -188,7 +188,7 @@ AutoReqProv: no
# workaround run-time startup problems
mkdir .autoreg
)
) || exit $?
# generate manual page for startup convinience wrapper
%{l_prefix}/bin/pod2man \
@ -206,8 +206,8 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/man/man1
# move files into temporary installation tree
(cd dist/bin && %{l_tar} -chf - . ) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf -)
( cd dist/bin && %{l_tar} -chf - . ) |\
( cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf - ) || exit $?
# add startup convinience wrapper
%{l_shtool} install -c -m 755 %{l_value -s -a} \

6
mplayer/mplayer.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Video
License: GPL and others
Version: %{V_mplayer}
Release: 20030707
Release: 20030723
# build options
%option with_gui no
@ -181,7 +181,7 @@ AutoReqProv: no
( cd $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/Skin
%{l_bzip2} -dc %{SOURCE Blue-%{V_blue}.tar.bz2} | %{l_tar} -xvf -
%{l_shtool} mkln -s -f Blue default
)
) || exit $?
%endif
# install fonts for OSD and subtitles
@ -193,7 +193,7 @@ AutoReqProv: no
( %{l_shtool} mkdir -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer
%{l_bzip2} -dc %{SOURCE win32codecs.tar.bz2} | %{l_tar} -xvf -
)
) || exit $?
%{l_bzip2} -dc %{SOURCE qt5dlls.tar.bz2} | %{l_tar} -xvf -
mv -f qt5dlls/* $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/win32codecs/
%endif

7
ncurses/ncurses.spec

@ -67,7 +67,7 @@ Distribution: OpenPKG [BASE]
Group: Terminal
License: GPL
Version: %{V_base}.%{V_patchL}
Release: 20030720
Release: 20030723
# list of sources
Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
@ -120,7 +120,8 @@ AutoReqProv: no
-e 's;gzip -dc;%{l_gzip} -dc;' \
-e 's;patch -p1;%{l_patch} -p1;' \
patchbase.sh
sh patchbase.sh )
sh patchbase.sh
) || exit $?
for patchfile in \
%{expand:%(i=1; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)}
do
@ -161,7 +162,7 @@ AutoReqProv: no
done
cd ..
done
)
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

5
nntpcache/nntpcache.spec vendored

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: News
License: BSD
Version: 3.0.1
Release: 20030721
Release: 20030723
# package options
%option with_fsl yes
@ -123,7 +123,8 @@ AutoReqProv: no
( cd $RPM_BUILD_ROOT%{l_prefix}/etc/nntpcache
for file in *-dist; do
mv $file `echo $file | sed -e 's;-dist$;;'`
done )
done
) || exit $?
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \

4
noweb/noweb.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Text
License: GPL
Version: 2.10c
Release: 20020821
Release: 20030723
# list of sources
Source0: ftp://ftp.eecs.harvard.edu/pub/nr/noweb-%{version}.tgz
@ -94,7 +94,7 @@ AutoReqProv: no
-e "s;$RPM_BUILD_ROOT%{l_prefix}/share/noweb;%{l_prefix}/share/noweb;g" \
bin/nodefs bin/noroff bin/noroots bin/notangle bin/nountangle \
bin/noweave bin/noweb bin/nuweb2noweb share/noweb/pipedocs
)
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

8
ntp/ntp.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
Group: Network
License: BSD-style
Version: 4.1.2
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -86,19 +86,19 @@ AutoReqProv: no
-e 's;\(CONFIG_FILE[^"]*"\)/etc/ntp.conf;\1%{l_prefix}/etc/ntp/ntp.conf;' \
include/ntp_config.h ntpdate/ntptime_config.c
%{l_make} %{l_mflags -O}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
( cd ntp-%{version}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
( cd ntp-doc
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man5
%{l_shtool} install -c -m 644 *.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man8
%{l_shtool} install -c -m 644 *.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
)
) || exit $?
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/ntp
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE ntp.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/ntp/

5
openjade/openjade.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: SGML
License: GPL
Version: 1.3.2
Release: 20030707
Release: 20030723
# list of sources
Source0: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz
@ -80,7 +80,8 @@ AutoReqProv: no
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
datadir=$RPM_BUILD_ROOT%{l_prefix}/share/sgml/openjade )
datadir=$RPM_BUILD_ROOT%{l_prefix}/share/sgml/openjade
) || exit $?
%{l_shtool} install -c -m 644 \
dsssl/* $RPM_BUILD_ROOT%{l_prefix}/share/sgml/openjade/
rm -f $RPM_BUILD_ROOT%{l_prefix}/share/sgml/openjade/ChangeLog

52
openpkg/openpkg.spec

@ -39,7 +39,7 @@
# o any cc(1)
# the package version/release
%define V_openpkg 20030722
%define V_openpkg 20030723
# the used software versions
%define V_rpm 4.0.2
@ -312,7 +312,7 @@ Provides: OpenPKG
( cd gzip-%{V_gzip}
CC="${l_cc}" ./configure
${l_make}
)
) || exit $?
l_gzip="`pwd`/gzip-%{V_gzip}/gzip"; export l_gzip
echo "l_gzip=\"$l_gzip\"; export l_gzip" >>.buildenv
@ -342,7 +342,7 @@ Provides: OpenPKG
echo "ac_cv_path_ed_PROGRAM=\${ac_cv_path_ed_PROGRAM=$false}" >>config.cache
CC="${l_cc}" ./configure --disable-largefile
${l_make}
(mv patch ..; ${l_make} clean || true; mv ../patch .)
( mv patch ..; ${l_make} clean || true; mv ../patch . ) || exit $?
) || exit $?
l_patch="`pwd`/patch-%{V_patch}/patch"; export l_patch
echo "l_patch=\"$l_patch\"; export l_patch" >>.buildenv
@ -366,7 +366,7 @@ Provides: OpenPKG
( cd make-%{V_make}
CC="${l_cc}" ./configure --disable-nls --disable-largefile
${l_make}
(mv make ..; ${l_make} clean || true; mv ../make .)
( mv make ..; ${l_make} clean || true; mv ../make . ) || exit $?
) || exit $?
l_make="`pwd`/make-%{V_make}/make"; export l_make
echo "l_make=\"$l_make\"; export l_make" >>.buildenv
@ -391,7 +391,7 @@ Provides: OpenPKG
echo "ac_cv_func_textdomain=no"
echo "ac_cv_func_bindtextdomain=no"
echo "ac_cv_lib_intl_bindtextdomain=no"
) >config.cache || exit $?
) >config.cache
CC="${l_cc}"
./configure \
--cache-file=./config.cache \
@ -400,7 +400,7 @@ Provides: OpenPKG
--without-gnu-malloc \
--disable-nls
${l_make} || exit $?
(mv bash ..; ${l_make} clean || true; mv ../bash .)
( mv bash ..; ${l_make} clean || true; mv ../bash . ) || exit $?
) || exit $?
# build GNU tar tool
@ -416,7 +416,7 @@ Provides: OpenPKG
--prefix=%{l_prefix} \
--disable-nls
${l_make} || exit $?
(mv src/tar ..; ${l_make} clean || true; mv ../tar src/)
( mv src/tar ..; ${l_make} clean || true; mv ../tar src/ ) || exit $?
) || exit $?
# build BZIP2 library
@ -445,13 +445,14 @@ Provides: OpenPKG
--disable-ipv6 \
--with-zlib=`pwd`/../zlib-%{V_zlib}
${l_make} || exit $?
(mv src/curl ..; ${l_make} clean || true; mv ../curl ./src)
( mv src/curl ..; ${l_make} clean || true; mv ../curl ./src ) || exit $?
) || exit $?
# build Berkeley-DB library
( cd db-%{V_db}/build_unix
# avoid dependency to pthread
case `sh ../dist/config.guess` in
*-*-osf* ) echo 'db_cv_mutex=${db_cv_mutex=UNIX/msem_init}' >config.cache ;; # avoid dependency to pthread
*-*-osf* ) echo 'db_cv_mutex=${db_cv_mutex=UNIX/msem_init}' >config.cache ;;
esac
CC="${l_cc}" ../dist/configure
${l_make} libdb.a || exit $?
@ -628,27 +629,27 @@ Provides: OpenPKG
( cd curl-%{V_curl}
cp src/curl $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/curl
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/curl
)
) || exit $?
( cd bzip2-%{V_bzip2}
cp bzip2 $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/bzip2
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/bzip2
)
) || exit $?
( cd gzip-%{V_gzip}
cp gzip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/gzip
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/gzip
)
) || exit $?
( cd patch-%{V_patch}
cp patch $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/patch
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/patch
)
) || exit $?
( cd tar-%{V_tar}
cp src/tar $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/tar
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/tar
)
) || exit $?
( cd bash-%{V_bash}
cp bash $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/bash
strip $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/bash
)
) || exit $?
sed -e "s;@l_prefix@;%{l_prefix};g" \
<`SOURCE rpmx.sh` >$RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/rpmx.sh
chmod a+x $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/rpmx.sh
@ -1122,12 +1123,11 @@ Provides: OpenPKG
done
if [ ".$found" = .0 ]; then
cp -p /etc/rc.conf /etc/rc.conf.bak
(
grep -v local_startup /etc/rc.conf.bak
( grep -v local_startup /etc/rc.conf.bak
echo "local_startup=\"/etc/rc.d $local_startup\""
) >/etc/rc.conf
fi
)
) || exit $?
# install transfer script
rm -f /etc/rc.d/${name}.sh >/dev/null 2>&1
( echo "#!/bin/sh"
@ -1282,7 +1282,7 @@ Provides: OpenPKG
ln init.d/${name} rc3.d/S99${name}
ln init.d/${name} rc0.d/K00${name}
ln init.d/${name} rc1.d/K00${name}
)
) || exit $?
fi
;;
OSF1/V5.* )
@ -1304,7 +1304,7 @@ Provides: OpenPKG
( cd /sbin
ln -s ../init.d/${name} rc3.d/S99${name}
ln -s ../init.d/${name} rc0.d/K00${name}
)
) || exit $?
fi
;;
HP-UX/* )
@ -1326,7 +1326,7 @@ Provides: OpenPKG
( cd /sbin
ln -s ../init.d/${name} rc2.d/S900${name}
ln -s ../init.d/${name} rc1.d/K100${name}
)
) || exit $?
fi
;;
Darwin/* )
@ -1420,7 +1420,7 @@ Provides: OpenPKG
echo ") >>\$1"
) >$EDITOR
chmod a+x $EDITOR
(PATH="$PATH:/usr/bin"; crontab -e)
( PATH="$PATH:/usr/bin"; crontab -e ) || exit $?
rm -f $EDITOR
fi
;;
@ -1513,17 +1513,17 @@ Provides: OpenPKG
FreeBSD/* | NetBSD/* )
cp /etc/master.passwd /etc/master.passwd.bak && \
grep -v "^${usr}:" /etc/master.passwd.bak >/etc/master.passwd
(PATH="$PATH:/usr/sbin"; pwd_mkdb -p /etc/master.passwd)
( PATH="$PATH:/usr/sbin"; pwd_mkdb -p /etc/master.passwd ) || exit $?
;;
Linux/* | SunOS/5.* )
cp /etc/passwd /etc/passwd.bak && \
grep -v "^${usr}:" /etc/passwd.bak >/etc/passwd
(PATH="$PATH:/usr/sbin"; pwconv)
( PATH="$PATH:/usr/sbin"; pwconv ) || exit $?
;;
OSF1/V5.* )
cp /etc/passwd /etc/passwd.bak && \
grep -v "^${usr}:" /etc/passwd.bak >/etc/passwd
(PATH="$PATH:/usr/sbin"; mkpasswd /etc/passwd)
( PATH="$PATH:/usr/sbin"; mkpasswd /etc/passwd ) || exit $?
;;
HP-UX/* )
cp /etc/passwd /etc/passwd.bak && \
@ -1671,7 +1671,7 @@ Provides: OpenPKG
echo "rm -f \$1.bak"
) >$EDITOR
chmod a+x $EDITOR
(PATH="$PATH:/usr/bin"; crontab -e)
( PATH="$PATH:/usr/bin"; crontab -e ) || exit $?
rm -f $EDITOR
;;
esac

5
openssl/openssl.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
Group: Cryptography
License: BSD-style
Version: 0.9.7b
Release: 20030708
Release: 20030723
# package options
%option with_zlib no
@ -108,7 +108,8 @@ AutoReqProv: no
for file in `cd $dir; echo *`; do
mv $dir/$file $dir/openssl_$file
done
done )
done
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/openssl/openssl.cnf' \

8
perforce/perforce.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: SCM
License: Commercial
Version: 2003.1
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.openpkg.org/sources/DST/perforce/perforce-%{version}.tar.bz2
@ -74,7 +74,7 @@ AutoReqProv: no
( cd c4-1.6
%{l_make} %{l_mflags} \
CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -104,13 +104,13 @@ AutoReqProv: no
%{SOURCE p4guide.pdf} %{SOURCE p4sag.pdf} \
%{SOURCE cmdref.pdf} %{SOURCE p4ftp.pdf} \
$RPM_BUILD_ROOT%{l_prefix}/share/perforce/
)
) || exit $?
( cd c4-1.6
%{l_shtool} install -c -m 755 \
c4 $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c -m 644 \
c4.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
)
) || exit $?
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.perforce} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

6
perl-ars/perl-ars.spec

@ -38,8 +38,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [EVAL]
Group: Language
License: Commercial
Version: 20030722
Release: 20030722
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/ARS/ARSperl-%{V_arsperl}.tgz
@ -102,7 +102,7 @@ AutoReqProv: no
echo "1;"
) >t/config.cache
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build and install Remedy::ARSTools (including prerequisites)
%{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}

12
perl-comp/perl-comp.spec

@ -38,8 +38,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030709
Release: 20030709
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Compress/Compress-Zlib-%{V_compress_zlib}.tar.gz
@ -83,24 +83,24 @@ AutoReqProv: no
-e 's;^\(INCLUDE[^=]*\)=.*;\1= %{l_prefix}/include;' \
config.in
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
( cd Compress-LZO-%{V_compress_lzo}
%{l_shtool} subst \
-e 's:^#\($LZO_INCLUDE[^=]*\)=.*:\1= "%{l_cppflags lzo}";:' \
-e 's:^#\($LZO_LIB[^=]*\)=.*:\1= "%{l_ldflags}";:' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
( cd Compress-Bzip2-%{V_compress_bzip2}
%{l_shtool} subst \
-e 's:^#\($Bzip2_INCLUDE[^=]*\)=.*:\1= "%{l_cppflags}";:' \
-e 's:^#\($Bzip2_LIB[^=]*\)=.*:\1= "%{l_ldflags}";:' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
( cd IO-Zlib-%{V_io_zlib}
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# perform common epilog operations
%{l_prefix}/bin/perl-openpkg epilog

6
perl-conv/perl-conv.spec

@ -44,8 +44,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030721
Release: 20030721
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Convert/Convert-ASN1-%{V_convert_asn1}.tar.gz
@ -103,7 +103,7 @@ AutoReqProv: no
-e 's;\./configure;./configure --cache-file=./config.cache;' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
%{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}

12
perl-curses/perl-curses.spec

@ -40,8 +40,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030721
Release: 20030721
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Curses/Curses-%{V_curses}.tar.gz
@ -77,7 +77,9 @@ AutoReqProv: no
%setup3 -q -T -D -a 3
%setup4 -q -T -D -a 4
%setup5 -q -T -D -a 5
(cd Curses-UI-%{V_curses_ui} && %{l_patch} -p0 <%{PATCH perl-curses.patch})
( cd Curses-UI-%{V_curses_ui} &&\
%{l_patch} -p0 <%{PATCH perl-curses.patch}
) || exit $?
%build
@ -101,7 +103,7 @@ AutoReqProv: no
-e 's:my $libs;:my $libs = "%{l_ldflags} -lpanel -lmenu -lform -lncurses";:' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install PANELS MENUS FORMS
)
) || exit $?
# build Curses::UI
%{l_prefix}/bin/perl-openpkg install -d Curses-UI-%{V_curses_ui}
@ -123,7 +125,7 @@ AutoReqProv: no
-e 's;-I/usr/local/include/cdk;%{l_cppflags cdk};' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# perform common epilog operations
%{l_prefix}/bin/perl-openpkg epilog

10
perl-db/perl-db.spec

@ -37,8 +37,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030616
Release: 20030616
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/BerkeleyDB/BerkeleyDB-%{V_berkeleydb}.tar.gz
@ -76,7 +76,7 @@ AutoReqProv: no
echo "LIB = %{l_prefix}/lib"
) >config.in
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build DB_File
( cd DB_File-%{V_db_file}
@ -87,12 +87,12 @@ AutoReqProv: no
) >config.in
%{l_shtool} subst -e "s;INSTALLDIRS => .perl.,;;" Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build DB_File::Lock
( cd DB_File-Lock-%{V_db_file_lock}
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# perform common epilog operations
%{l_prefix}/bin/perl-openpkg epilog

12
perl-dbi/perl-dbi.spec

@ -43,8 +43,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030704
Release: 20030704
Version: 20030723
Release: 20030723
# package options
%option with_dbd_mysql no
@ -130,7 +130,7 @@ AutoReqProv: no
( cd DBD-mysql-%{V_dbd_mysql}
# (determines MySQL header/lib paths via mysql_config in $PATH)
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
%endif
%if "%{with_dbd_pg}" == "yes"
@ -140,7 +140,7 @@ AutoReqProv: no
POSTGRES_HOME=%{l_prefix}
export POSTGRES_HOME
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
%endif
%if "%{with_dbd_oracle}" == "yes"
@ -149,7 +149,7 @@ AutoReqProv: no
ORACLE_HOME="`%{l_prefix}/etc/rc --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
%endif
%if "%{with_dbd_odbc}" == "yes"
@ -159,7 +159,7 @@ AutoReqProv: no
DBROOT=
export ODBCHOME DBROOT
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
%endif
# perform common epilog operations

6
perl-gd/perl-gd.spec

@ -44,8 +44,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030710
Release: 20030710
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/GD/GD-%{V_gd}.tar.gz
@ -106,7 +106,7 @@ AutoReqProv: no
GD_INC="%{l_cppflags freetype2 .}" \
GD_LIBS="%{l_ldflags} -lfreetype" \
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build and install individual modules
%{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}

7
perl-ssl/perl-ssl.spec

@ -37,8 +37,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030614
Release: 20030614
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-%{V_net_ssleay}.tar.gz
@ -74,7 +74,8 @@ AutoReqProv: no
( cd Crypt-SSLeay-%{V_crypt_ssleay}
%{l_shtool} subst \
-e 's;^\(my @POSSIBLE_SSL_DIRS = qw(\)[^)]*\().*\)$;\1%{l_prefix}\2;' \
Makefile.PL )
Makefile.PL
) || exit $?
# build and install individual modules
%{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} %{l_prefix}

6
perl-term/perl-term.spec

@ -44,8 +44,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030707
Release: 20030707
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Term/TermReadKey-%{V_term_readkey}.tar.gz
@ -117,7 +117,7 @@ AutoReqProv: no
%{l_prefix}/bin/perl-openpkg install \
--includedir=%{l_prefix}/include/readline \
--libdir=%{l_prefix}/lib
)
) || exit $?
# perform common epilog operations
%{l_prefix}/bin/perl-openpkg epilog

12
perl-tk/perl-tk.spec

@ -64,8 +64,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030719
Release: 20030719
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/Tk/Tk-%{V_tk}.tar.gz
@ -183,7 +183,7 @@ AutoReqProv: no
%{l_prefix}/bin/perl-openpkg install \
X11INC=`%{l_prefix}/etc/rc --query x11_incdir` \
X11LIB=`%{l_prefix}/etc/rc --query x11_libdir`
)
) || exit $?
# build Tk::TIFF
( cd Tk-TIFF-%{V_tk_tiff}
@ -192,12 +192,12 @@ AutoReqProv: no
-e 's;-L/usr/local/lib;%{l_ldflags};' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build Tk::JPEG
( cd Tk-JPEG-%{V_tk_jpeg}
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build Tk::PNG
( cd Tk-PNG-%{V_tk_png}
@ -206,7 +206,7 @@ AutoReqProv: no
-e 's;-lpng -lz;%{l_ldflags} -lpng -lz;' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg install
)
) || exit $?
# build remaining modules
%{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}

7
perl-www/perl-www.spec

@ -48,8 +48,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
Version: 20030721
Release: 20030721
Version: 20030723
Release: 20030723
# list of sources
Source0: http://www.cpan.org/modules/by-module/URI/URI-%{V_uri}.tar.gz
@ -136,7 +136,8 @@ AutoReqProv: no
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for prog in *.pl; do
mv $prog `echo $prog | sed -e 's;\.pl$;;'`
done )
done
) || exit $?
# perform common epilog operations
%{l_prefix}/bin/perl-openpkg epilog

4
perl/perl.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
Group: Language
License: GPL/Artistic
Version: 5.8.0
Release: 20030708
Release: 20030723
# list of sources
Source0: ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz
@ -98,7 +98,7 @@ AutoReqProv: no
echo *.h sys/*.h |\
xargs $RPM_BUILD_ROOT%{l_prefix}/bin/perl \
$RPM_BUILD_ROOT%{l_prefix}/bin/h2ph -h -d $installarchlib
)
) || exit $?
# post-adjustments to installation tree
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/perl%{version}

4
perl56/perl56.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Language
License: GPL/Artistic
Version: 5.6.1
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz
@ -102,7 +102,7 @@ Conflicts: perl < %{version}, perl > %{version}
echo *.h sys/*.h |\
xargs $RPM_BUILD_ROOT%{l_prefix}/bin/perl \
$RPM_BUILD_ROOT%{l_prefix}/bin/h2ph -h -d $installarchlib
)
) || exit $?
# post-adjustments to installation tree
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/perl%{version}

8
petidomo/petidomo.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Mail
License: GPL
Version: 4.0b1
Release: 20030721
Release: 20030723
# package options
%option with_fsl yes
@ -78,13 +78,13 @@ AutoReqProv: no
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/petidomo
%{l_make} %{l_mflags}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
( cd petidomo-%{version}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
)
) || exit $?
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/petidomo
rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/petidomo
rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/petidomo
@ -98,7 +98,7 @@ AutoReqProv: no
%{l_shtool} install -c -m - \
-e "s;@l_hostname@;${l_hostname};g" %{l_value -s -a} \
* $RPM_BUILD_ROOT%{l_prefix}/etc/petidomo/
)
) || exit $?
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \

18
postfix/postfix.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [BASE]
Group: Mail
License: IPL
Version: %{V_postfix}
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -129,7 +129,7 @@ Conflicts: sendmail, ssmtp, exim
%patch0 -p0
# apply pflogsumm patch
(cd pflogsumm-%{V_pflogsumm} && %{l_patch} -p0 <%{PATCH1})
( cd pflogsumm-%{V_pflogsumm} && %{l_patch} -p0 <%{PATCH1} ) || exit $?
# apply WHOSON patch
%if "%{with_whoson}" == "yes"
@ -241,7 +241,8 @@ Conflicts: sendmail, ssmtp, exim
relocated sample-* transport virtual \
main.cf master.cf main.cf.default; do
mv $cfg sample/
done )
done
) || exit $?
# install default configuration
%{l_shtool} install -c -m 644 %{l_value -s -a} \
@ -254,7 +255,8 @@ Conflicts: sendmail, ssmtp, exim
flush incoming private saved
%{l_shtool} mkdir -f -p -m 730 maildrop
%{l_shtool} mkdir -f -p -m 710 public
%{l_shtool} mkdir -f -p -m 755 log pid )
%{l_shtool} mkdir -f -p -m 755 log pid
) || exit $?
# install addons
( cd pflogsumm-%{V_pflogsumm}
@ -262,7 +264,8 @@ Conflicts: sendmail, ssmtp, exim
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' \
pflogsumm.pl $RPM_BUILD_ROOT%{l_prefix}/sbin/pflogsumm
%{l_shtool} install -c -m 644 \
pflogsumm.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ )
pflogsumm.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
) || exit $?
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
@ -272,7 +275,8 @@ Conflicts: sendmail, ssmtp, exim
# adjust installation to avoid file name conflicts
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man8
mv master.8 postfix_master.8 )
mv master.8 postfix_master.8
) || exit $?
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
@ -325,7 +329,7 @@ Conflicts: sendmail, ssmtp, exim
%{l_rc} postfix stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/postfix/log/postfix.log* >/dev/null 2>&1 || true
# remove generated configuration files
(cd $RPM_INSTALL_PREFIX/etc/postfix/; %{l_make} clean >/dev/null 2>&1 || true)
( cd $RPM_INSTALL_PREFIX/etc/postfix/; %{l_make} clean >/dev/null 2>&1 || true ) || true
# remove generated run-time files and directories
rm -rf $RPM_INSTALL_PREFIX/etc/postfix/prng_exch
rm -rf $RPM_INSTALL_PREFIX/var/postfix/pid/*

6
precc/precc.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Compiler
License: Open Source
Version: 2.51e
Release: 20030706
Release: 20030723
# list of sources
Source0: ftp://oboe.it.uc3m.es/pub/Programs/precc-%{version}.tgz
@ -66,7 +66,7 @@ AutoReqProv: no
./configure \
--prefix=$RPM_BUILD_ROOT%{l_prefix}
%{l_make} %{l_mflags -O} binary library
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -81,7 +81,7 @@ AutoReqProv: no
%{l_make} %{l_mflags} \
install-bin install-lib \
install-inc install-doc
)
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
mv $RPM_BUILD_ROOT%{l_prefix}/include/*.h \
$RPM_BUILD_ROOT%{l_prefix}/include/precc/

4
procmail/procmail.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Mail
License: GPL
Version: 3.22
Release: 20030721
Release: 20030723
# package options
%option with_fsl yes
@ -98,7 +98,7 @@ AutoReqProv: no
done
echo "$dirlist" |\
%{l_make} %{l_mflags} autoconf.h CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
)
) || exit $?
%{l_shtool} subst \
-e 's;\(#define.*SENDMAIL[^"]*"\)[^"]*\(".*\);\1%{l_prefix}/sbin/sendmail\2;' \
autoconf.h

4
qt/qt.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: XWindow
License: GPL
Version: 3.1.2
Release: 20030509
Release: 20030723
# list of sources
Source0: ftp://ftp.trolltech.com/pub/qt/source/qt-x11-free-%{version}.tar.bz2
@ -67,7 +67,7 @@ AutoReqProv: no
for i in qmotifwidget.h qmotif.h qxtwidget.h qmotifdialog.h; do
rm -f $i
done
)
) || exit $?
%build
# display a warning that this package is a beast

4
ragel/ragel.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Compiler
License: GPL
Version: 1.5.4
Release: 20030714
Release: 20030723
# list of sources
Source0: http://www.essemage.com/ragel/ragel-%{version}.tar.gz
@ -70,7 +70,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags}
( cd doc && %{l_make} ragel.1 )
( cd doc && %{l_make} ragel.1 ) || exit $?
%install
rm -rf $RPM_BUILD_ROOT

4
rie/rie.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Compiler
License: GPL
Version: 1.0.6
Release: 20030530
Release: 20030723
# list of sources
Source0: ftp://ftp.is.titech.ac.jp/pub/Rie/rie-%{version}.tar.gz
@ -82,7 +82,7 @@ AutoReqProv: no
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
)
) || exit $?
%{l_shtool} install -c -m 644 \
rie-doc/rie-manual.ps $RPM_BUILD_ROOT%{l_prefix}/share/rie/
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

56
samba/samba.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Filesystem
License: GPL
Version: 2.2.8a
Release: 20030722
Release: 20030723
# package options
%option with_pam no
@ -66,37 +66,35 @@ AutoReqProv: no
%setup -q
%build
( cd source
CC="%{l_cc}"
CFLAGS="%{l_cflags -O}"
CPPFLAGS="%{l_cppflags openssl}"
LDFLAGS="%{l_ldflags}"
CC="%{l_cc}"
CFLAGS="%{l_cflags -O}"
CPPFLAGS="%{l_cppflags openssl}"
LDFLAGS="%{l_ldflags}"
%if "%{with_pam}" == "yes"
CPPFLAGS="$CPPFLAGS -I`%{l_prefix}/etc/rc --query pam_incdir`" \
LDFLAGS="$LDFLAGS -L`%{l_prefix}/etc/rc --query pam_libdir`" \
CPPFLAGS="$CPPFLAGS -I`%{l_prefix}/etc/rc --query pam_incdir`" \
LDFLAGS="$LDFLAGS -L`%{l_prefix}/etc/rc --query pam_libdir`" \
%endif
export CC
export CFLAGS
export LDFLAGS
./configure \
--prefix=%{l_prefix} \
--localstatedir=%{l_prefix}/var/samba/run \
--sysconfdir=%{l_prefix}/etc/samba \
--with-privatedir=%{l_prefix}/var/samba/run \
--with-sambaconfdir=%{l_prefix}/etc/samba \
--with-lockdir=%{l_prefix}/var/samba/run \
--with-swatdir=%{l_prefix}/share/samba \
--with-codepagedir=%{l_prefix}/share/samba \
--with-ssl --with-sslinc=%{l_prefix}/include \
--with-included-popt \
export CC
export CFLAGS
export LDFLAGS
./configure \
--prefix=%{l_prefix} \
--localstatedir=%{l_prefix}/var/samba/run \
--sysconfdir=%{l_prefix}/etc/samba \
--with-privatedir=%{l_prefix}/var/samba/run \
--with-sambaconfdir=%{l_prefix}/etc/samba \
--with-lockdir=%{l_prefix}/var/samba/run \
--with-swatdir=%{l_prefix}/share/samba \
--with-codepagedir=%{l_prefix}/share/samba \
--with-ssl --with-sslinc=%{l_prefix}/include \
--with-included-popt \
%if "%{with_pam}" == "yes"
--with-pam \
--with-pam \
%endif
--with-vfs
%{l_make} %{l_mflags -O} \
CONFIGFILE=%{l_prefix}/etc/samba/smb.conf \
LMHOSTSFILE=%{l_prefix}/etc/samba/smb.hosts
)
--with-vfs
%{l_make} %{l_mflags -O} \
CONFIGFILE=%{l_prefix}/etc/samba/smb.conf \
LMHOSTSFILE=%{l_prefix}/etc/samba/smb.hosts
%install
rm -rf $RPM_BUILD_ROOT
@ -120,7 +118,7 @@ AutoReqProv: no
CODEPAGEDIR=$RPM_BUILD_ROOT%{l_prefix}/share/samba \
CONFIGFILE=%{l_prefix}/etc/samba/smb.conf \
LMHOSTSFILE=%{l_prefix}/etc/samba/smb.hosts
)
) || exit $?
l_hostname=`%{l_shtool} echo -e %h%d`
%{l_shtool} install -c -m 644 %{l_value -s -a} \
-e "s;@l_hostname@;$l_hostname;g" \

7
samhain/samhain.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: System
License: GPL
Version: 1.7.9
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -64,8 +64,7 @@ AutoReqProv: no
%prep
%setup -q -c samhain-%{version}
%{l_gzip} -d -c samhain-%{version}.tar.gz |\
%{l_tar} xf -
%{l_gzip} -d -c samhain-%{version}.tar.gz | %{l_tar} xf -
%build
cd samhain-%{version}
@ -101,7 +100,7 @@ AutoReqProv: no
%{l_make} %{l_mflags} \
install-program install-man install-data \
DESTDIR=$RPM_BUILD_ROOT
)
) || exit $?
chmod -R a+r $RPM_BUILD_ROOT%{l_prefix}/man
case "%{l_target}" in
*-freebsd* ) rc="samhainrc.freebsd" ;;

6
sav/sav.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Filesystem
License: Commercial/Free-Trail
Version: %{V_full}
Release: 20030722
Release: 20030723
# list of sources
Source0: http://www.sophos.com/downloads/ide/%{V_short}_ides.zip
@ -75,7 +75,7 @@ AutoReqProv: no
%{l_gzip} -d -c $engine | %{l_tar} xf -
( mkdir ides; cd ides;
%{l_prefix}/bin/unzip -x %{SOURCE0}
)
) || exit $?
%build
# no-op
@ -96,7 +96,7 @@ AutoReqProv: no
-m $RPM_BUILD_ROOT%{l_prefix}/man \
-s $RPM_BUILD_ROOT%{l_prefix}/share/sav \
-ni -nssi -nrm
)
) || exit $?
for ide in ides/*.ide; do
%{l_shtool} install -c -m 644 \
$ide $RPM_BUILD_ROOT%{l_prefix}/share/sav/

17
sendmail/sendmail.spec

@ -96,7 +96,8 @@ Conflicts: ssmtp, exim, postfix
# apply patches for MySQL map support
( cd sendmail-%{version}
%{l_patch} -p1 <%{PATCH sendmail.patch} )
%{l_patch} -p1 <%{PATCH sendmail.patch}
) || exit $?
# make install process unprivileged
( cd sendmail-%{version}
@ -110,12 +111,12 @@ Conflicts: ssmtp, exim, postfix
-e 's;chgrp;true;g' \
-e 's;chmod;true;g' \
devtools/bin/install.sh
)
) || exit $?
# add own M4 stuff to Sendmail configuration set
( cd sendmail-%{version}
%{l_tar} xf %{SOURCE cf.tar}
)
) || exit $?
# override platform-specific definitions
( cd sendmail-%{version}
@ -125,7 +126,7 @@ Conflicts: ssmtp, exim, postfix
-e 's;\(include *<paths.h>.*\);\1\n#ifdef _PATH_SENDMAIL\n#undef _PATH_SENDMAIL\n#endif;g' \
-e '/undef *_PATH_SENDMAILPID/d' \
include/sendmail/pathnames.h include/sm/conf.h
)
) || exit $?
%build
# build Sendmail
@ -250,7 +251,7 @@ Conflicts: ssmtp, exim, postfix
%endif
# remember the Sendmail M4 stuff for re-configuration
(%{l_tar} cf $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.tar cf)
( %{l_tar} cf $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.tar cf ) || exit $?
compress $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.tar
%{l_shtool} install -c -m 644 cf/README \
$RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.README
@ -341,9 +342,9 @@ Conflicts: ssmtp, exim, postfix
%post
if [ $1 -eq 1 ]; then
(cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} all >/dev/null 2>&1 || true)
( cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} all >/dev/null 2>&1 || true ) || true
elif [ $1 -gt 1 ]; then
(cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} clean all >/dev/null 2>&1 || true)
( cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} clean all >/dev/null 2>&1 || true ) || true
$RPM_INSTALL_PREFIX/etc/rc sendmail reload >/dev/null 2>&1 || true
fi
@ -352,7 +353,7 @@ Conflicts: ssmtp, exim, postfix
$RPM_INSTALL_PREFIX/etc/rc sendmail stop >/dev/null 2>&1 || true
( cd $RPM_INSTALL_PREFIX/etc/sendmail/;
%{l_make} distclean >/dev/null 2>&1 || true
)
) || true
d=$RPM_INSTALL_PREFIX/var/sendmail/mqueue/.hoststat/*
if [ ."$d" != . ]; then
rm -rf $d

5
slang/slang.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Terminal
License: BSD
Version: 1.4.9
Release: 20030323
Release: 20030723
# list of sources
Source0: ftp://space.mit.edu/pub/davis/slang/v1.4/slang-%{version}.tar.bz2
@ -67,7 +67,8 @@ AutoReqProv: no
%install
rm -rf $RPM_BUILD_ROOT
( cd src
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix} )
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
) || exit $?
rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

8
smtpfeed/smtpfeed.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Mail
License: GPL
Version: 1.18
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -79,7 +79,7 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
) || exit $?
# build smtpfeed daemon
( cd smtpfeedd
@ -88,7 +88,7 @@ AutoReqProv: no
LIBS="%{l_fsl_libs}" \
./configure
%{l_make} %{l_mflags}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -104,7 +104,7 @@ AutoReqProv: no
smtpfeed.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
%{l_shtool} install -c -m 644 \
/dev/null $RPM_BUILD_ROOT%{l_prefix}/var/smtpfeed/smtpfeed.log
)
) || exit $?
%{l_shtool} install -c -s -m 755 \
smtpfeedd/smtpfeedd $RPM_BUILD_ROOT%{l_prefix}/sbin/
%{l_shtool} install -c -m 755 %{l_value -s -a} \

14
tetex/tetex.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [BASE]
Group: Text
License: GPL
Version: %{V_src}
Release: 20030614
Release: 20030723
# package options
%option with_x11 no
@ -79,13 +79,13 @@ AutoReqProv: no
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/share/texmf
%{l_gzip} -d -c %{SOURCE tetex-texmf-%{V_texmf}.tar.gz} |\
(umask 0 && cd $RPM_BUILD_ROOT%{l_prefix}/share/texmf && %{l_tar} xf -)
( umask 0 && cd $RPM_BUILD_ROOT%{l_prefix}/share/texmf && %{l_tar} xf - ) || exit $?
# add XMLTeX (XML parsing via TeX)
( cd $RPM_BUILD_ROOT%{l_prefix}/share/texmf/tex
%{l_prefix}/bin/unzip -x %{SOURCE base.zip}
mv base xmltex
)
) || exit $?
( echo ""
echo "# XMLTeX (XML parsing via TeX) [does not work as expected here]"
echo "# xmltex latex language.dat xmltex.ini"
@ -126,7 +126,7 @@ AutoReqProv: no
%{l_prefix}/bin/unzip -x %{SOURCE passivetex.zip}
rm -f ChangeLog Makefile README.passivetex send
rm -rf test
)
) || exit $?
# minor fixes to the teTeX sources
%{l_shtool} subst -e "s;\|O_SYNC;;g" libs/libwww/HTMemLog.c
@ -172,7 +172,7 @@ AutoReqProv: no
`find . -type f -print`
eval "make all"
%{l_shtool} subst -e 's;readlink;tetex-readlink;g' mktexlsr
)
) || exit $?
# build the sources
# (we cannot use %{l_make}, because teTeX dislikes absolute paths
@ -204,8 +204,8 @@ AutoReqProv: no
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
ln -s tex xmltex
ln -s pdftex pdfxmltex
)
)
) || exit $?
) || exit $?
# create dynamically generated font directory
%{l_shtool} mkdir -f -p -m 755 \

52
tiff/tiff.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Graphics
License: GPL
Version: 3.5.7
Release: 20030715
Release: 20030723
# list of sources
Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-v%{version}.tar.gz
@ -78,31 +78,31 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/include/tiff \
$RPM_BUILD_ROOT%{l_prefix}/man/man1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man3
(cd libtiff && %{l_tar} cf - libtiff.*) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/lib && %{l_tar} xf -)
(cd libtiff && %{l_tar} cf - *.h) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/include/tiff && %{l_tar} xf -)
(cd tools
for tool in *; do
if [ -x $tool ]; then
echo $tool
fi
done
) | (cd tools && xargs %{l_tar} cf -) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/bin && %{l_tar} xf -)
(cd man/apps && %{l_tar} cf - *.1) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/man/man1 && %{l_tar} xf -)
(cd man/lib
for manpage in *.3t; do
base=`echo $manpage | sed -e 's;\.3t$;;'`
mv $base.3t $base.3
echo $base.3
done
) | (cd man/lib && xargs %{l_tar} cf -) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/man/man3 && %{l_tar} xf -)
(cd $RPM_BUILD_ROOT%{l_prefix}/lib
rm -f libtiff.so* libtiff.def 2>&1 || true
)
( cd libtiff && %{l_tar} cf - libtiff.*) |\
( cd $RPM_BUILD_ROOT%{l_prefix}/lib && %{l_tar} xf - ) || exit $?
( cd libtiff && %{l_tar} cf - *.h) |\
( cd $RPM_BUILD_ROOT%{l_prefix}/include/tiff && %{l_tar} xf - ) || exit $?
( cd tools
for tool in *; do
if [ -x $tool ]; then
echo $tool
fi
done
) | (cd tools && xargs %{l_tar} cf - ) |\
( cd $RPM_BUILD_ROOT%{l_prefix}/bin && %{l_tar} xf - ) || exit $?
( cd man/apps && %{l_tar} cf - *.1) |\
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1 && %{l_tar} xf -) || exit $?
( cd man/lib
for manpage in *.3t; do
base=`echo $manpage | sed -e 's;\.3t$;;'`
mv $base.3t $base.3
echo $base.3
done
) | ( cd man/lib && xargs %{l_tar} cf - ) |\
(cd $RPM_BUILD_ROOT%{l_prefix}/man/man3 && %{l_tar} xf -) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/lib
rm -f libtiff.so* libtiff.def 2>&1 || true
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

17
tomcat/tomcat.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Web
License: Apache Software License 1.1
Version: 3.3.1a
Release: 20030722
Release: 20030723
# list of sources
Source0: http://jakarta.apache.org/builds/jakarta-tomcat/release/v%{version}/bin/jakarta-tomcat-%{version}.tar.gz
@ -72,15 +72,16 @@ AutoReqProv: no
# unpack vendor distribution and relocate to final location
%{l_tar} -cf - --exclude lib/test \
bin/*.sh conf lib webapps |\
( umask 022; \
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/; \
%{l_tar} -xf - )
( umask 022; \
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/; \
%{l_tar} -xf -
) || exit $?
# patch vendor distribution
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat
cat %{SOURCE tomcat.patch} |\
sed -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0
)
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat
cat %{SOURCE tomcat.patch} |\
sed -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0
) || exit $?
# move conf to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf \

5
tomcat4/tomcat4.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Web
License: Apache Software License 1.1
Version: 4.1.24
Release: 20030722
Release: 20030723
# list of sources
Source0: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v%{version}/bin/jakarta-tomcat-%{version}.tar.gz
@ -75,7 +75,8 @@ Conflicts: tomcat
bin/*.sh bin/*.jar common conf server shared webapps |\
( umask 022
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/
%{l_tar} -xf - )
%{l_tar} -xf -
) || exit $?
# move ${jkHome}/conf to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf \

4
tsmc/tsmc.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: Converter
License: Commercial
Version: 5.1.6.2
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/v516/TIVsm-BA.i386.rpm
@ -181,7 +181,7 @@ AutoReqProv: no
) | %{l_rpmtool} msg -b
;;
esac
)
) || exit $?
;;
*-linux*)
( echo "Please make sure you have the vendor libstdc++ 2.9 package installed:"

10
uucp/uucp.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Communication
License: GPL
Version: 1.07
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.gnu.org/gnu/uucp/uucp-%{version}.tar.gz
@ -65,7 +65,7 @@ AutoReqProv: no
-e 's;chown;true;g' \
-e 's;chgrp;true;g' \
`find . -name Makefile.in -print`
)
) || exit $?
%build
( cd uucp-%{version}
@ -78,13 +78,13 @@ AutoReqProv: no
--with-oldconfigdir=%{l_prefix}/etc/uucp \
--with-user=%{l_musr}
%{l_make} %{l_mflags}
)
) || exit $?
( cd uucpd
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure
%{l_make} %{l_mflags}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -101,7 +101,7 @@ AutoReqProv: no
$RPM_BUILD_ROOT%{l_prefix}/var/uucp/log
( cd uucp-%{version}
%{l_make} %{l_mflags} install install-info AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
%{l_shtool} install -c -s -m 755 \
uucpd/uucpd $RPM_BUILD_ROOT%{l_prefix}/sbin/
%{l_shtool} install -c -m 640 %{l_value -s -a} \

8
uvscan/uvscan.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [EVAL]
Group: Filesystem
License: Commercial/Free-Trial
Version: %{V_engine}.%{V_datfiles}
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/dat-%{V_datfiles}.tar
@ -75,10 +75,10 @@ AutoReqProv: no
esac
( mkdir engine; cd engine
%{l_gzip} -d -c $engine | %{l_tar} xf -
)
) || exit $?
( mkdir datfiles; cd datfiles;
%{l_tar} xf %{SOURCE0}
)
) || exit $?
%build
@ -92,7 +92,7 @@ AutoReqProv: no
( cd engine
(echo "n"; echo "n"; echo "n"; echo "n"; echo "n") |\
./install-uvscan $RPM_BUILD_ROOT%{l_prefix}/libexec/uvscan/
)
) || exit $?
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/uvscan/uninstall-uvscan
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/uvscan/uvscan.1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man1/uvscan.1

5
vim/vim.spec

@ -38,7 +38,7 @@ Distribution: OpenPKG [CORE]
Group: Editor
License: Charityware
Version: %{V_vl}.%{V_pl}
Release: 20030719
Release: 20030723
# package options
%option with_x11 no
@ -186,7 +186,8 @@ AutoReqProv: no
rm -rf $RPM_BUILD_ROOT
( cd vim%{V_vs}/src
%{l_make} %{l_mflags} install \
prefix=$RPM_BUILD_ROOT%{l_prefix} )
prefix=$RPM_BUILD_ROOT%{l_prefix}o
) || exit $?
# strip down installation hierarchy
strip $RPM_BUILD_ROOT%{l_prefix}/bin/vim

14
vorbis-libs/vorbis-libs.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [PLUS]
Group: Audio
License: LGPL
Version: %{V_whole}
Release: 20030704
Release: 20030723
# list of sources
Source0: http://www.vorbis.com/files/%{V_whole}/unix/libao-%{V_libao}.tar.gz
@ -78,7 +78,7 @@ AutoReqProv: no
--enable-shared \
--enable-static
%{l_make} %{l_mflags -O}
)
) || exit $?
# build libogg
( cd libogg-%{V_libogg}
@ -90,7 +90,7 @@ AutoReqProv: no
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
)
) || exit $?
# build libvorbis
ogg_libdir="`pwd`/libogg-%{V_libogg}/src"
@ -113,7 +113,7 @@ AutoReqProv: no
-e "s;-L$ogg_libdir/\\.libs/*;;" \
-e "s;-L$ogg_libdir/*;;" \
lib/*.la lib/.libs/*.la
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
@ -126,13 +126,13 @@ AutoReqProv: no
-e 's;^\(dlname\)=.*;\1="";' \
-e 's;^\(library_names\)=.*;\1="";' \
$RPM_BUILD_ROOT%{l_prefix}/lib/libao.la
)
) || exit $?
( cd libogg-%{V_libogg}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
( cd libvorbis-%{V_libvorbis}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
# strip installation
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc

4
vrrpd/vrrpd.spec

@ -35,7 +35,7 @@ Distribution: OpenPKG [JUNK]
Group: Networking
License: BSD
Version: 0.8.7
Release: 20030722
Release: 20030723
# package options
%option with_fsl yes
@ -79,7 +79,7 @@ AutoReqProv: no
case "%{l_target}" in
*-freebsd* ) ;;
* ) echo "Sorry, this package currently supports FreeBSD 4 only" |\
%{l_rpmtool} msg -t error; exit 1
%{l_rpmtool} msg -t error; exit 1 ;;
esac
/usr/bin/make CC=/usr/bin/cc

16
whois/whois.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: DNS
License: GPL
Version: 4.6.6
Release: 20030620
Release: 20030723
# list of sources
Source0: http://www.linux.it/~md/software/whois_%{version}.tar.gz
@ -57,10 +57,16 @@ AutoReqProv: no
ldflags=""
case "%{l_target}" in
*-solaris* ) ldflags="-lnsl -lsocket" ;;
*-freebsd* ) %{l_shtool} subst -e "s;# define HAVE_GETOPT_LONG;/* # define HAVE_GETOPT_LONG */;" \
-e "s;# define ENABLE_NLS;/* # define ENABLE_NLS */;" \
-e "s;# define LOCALEDIR "/usr/local/share/locale";/* # define LOCALEDIR "/usr/local/share/locale"*/;" config.h
*-solaris* )
ldflags="-lnsl -lsocket"
;;
*-freebsd* )
%{l_shtool} subst \
-e "s;# define HAVE_GETOPT_LONG;/* # define HAVE_GETOPT_LONG */;" \
-e "s;# define ENABLE_NLS;/* # define ENABLE_NLS */;" \
-e "s;# define LOCALEDIR "/usr/local/share/locale";/* # define LOCALEDIR "/usr/local/share/locale"*/;" \
config.h
;;
esac
%{l_make} %{l_mflags} \

16
xaw3d/xaw3d.spec

@ -24,13 +24,13 @@
##
# FIXME: ms: This is rather nasty, but various platforms have different
# requirements after xmkmf gets through with xaw3d's Imakefile.
# The requirements for any given single platform are actually
# less than what is specified.
# FIXME: ms: requirements after xmkmf gets through with xaw3d's Imakefile.
# FIXME: ms: The requirements for any given single platform are actually
# FIXME: ms: less than what is specified.
# FIXME: ms: Passing 'LD=ld' to make, and the next block explicitly
# building a static library should be removed when a better
# solution (such as implementing imake templates into the x11
# package) is found.
# FIXME: ms: building a static library should be removed when a better
# FIXME: ms: solution (such as implementing imake templates into the x11
# FIXME: ms: package) is found.
# package information
Name: xaw3d
@ -42,7 +42,7 @@ Distribution: OpenPKG [EVAL]
Group: XWindow
License: GPL
Version: 1.5
Release: 20030704
Release: 20030723
# list of sources
Source0: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/Xaw3d-%{version}.tar.gz
@ -69,7 +69,7 @@ AutoReqProv: no
%build
cd xc/lib/Xaw3d/
%{l_shtool} mkdir -f -p -m 755 X11/Xaw3d
(cd X11/Xaw3d; ln -s ../../*.h .)
( cd X11/Xaw3d; ln -s ../../*.h . ) || exit $?
PATH=$PATH:`%{l_prefix}/etc/rc --query x11_bindir`
%{l_shtool} subst \
-e 's;^#[ ]*\(EXTRA_DEFINES.*\);\1;' \

8
xemacs/xemacs.spec

@ -24,8 +24,8 @@
##
# package versions
%define V_xemacs 21.4.13
%define V_sumo 2003-06-29
%define V_xemacs 21.4.13
%define V_sumo 2003-06-29
# package information
Name: xemacs
@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Editor
License: GPL
Version: %{V_xemacs}
Release: 20030709
Release: 20030723
# package options
%option with_gtk yes
@ -123,7 +123,7 @@ AutoReqProv: no
# install optional sumo package cluster
( cd $RPM_BUILD_ROOT/%{l_prefix}/lib/xemacs
%{l_gzip} -dc %{SOURCE xemacs-sumo-%{V_sumo}.tar.gz} | %{l_tar} -xvf -
)
) || exit $?
%endif
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir

11
xerces-c/xerces-c.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
Group: Web
License: Apache Software License 1.1
Version: %{V_opkg}
Release: 20030722
Release: 20030723
# package options
%option with_pth no
@ -95,12 +95,13 @@ AutoReqProv: no
%if "%{with_threads}" == "yes"
os="freebsd"
pt="pthread"
case "%{l_target}" in
%if "%{with_pth}" == "yes"
*-freebsd*) os=freebsd; pt=pth ;;
bsdpt=pth
%else
*-freebsd*) os=freebsd; pt=pthread ;;
bsdpt=pthread
%endif
case "%{l_target}" in
*-freebsd*) os=freebsd; pt=$bsdpt ;;
*-linux*) os=linux; pt=pthread ;;
*-solaris*) os=solaris; pt=pthread ;;
*-irix*) os=irix; pt=sproc ;;
@ -119,7 +120,7 @@ AutoReqProv: no
*-hpux-10.*) os=hp-10 ;;
*-hpux-11.*) os=hp-11 ;;
*-aix*) os=aix ;;
esac ;
esac
%endif
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \

4
xfig/xfig.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
Group: XWindow
License: MIT-style
Version: 3.2.4
Release: 20030717
Release: 20030723
# list of sources
Source0: http://www.xfig.org/xfigdist/xfig.%{version}.code_only.tar.gz
@ -114,7 +114,7 @@ AutoReqProv: no
-e 's;^\(#include \)"Fig"$;\1"Fig-classic";' \
Fig-color Fig
rm -f Fig-color
)
) || exit $?
# generate file list
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \

14
xterm/xterm.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [PLUS]
Group: XWindow
License: X11
Version: %{V_whole}
Release: 20030717
Release: 20030723
# list of sources
Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
@ -92,7 +92,7 @@ AutoReqProv: no
--disable-vt52 \
--disable-active-icon
%{l_make} %{l_mflags -O}
)
) || exit $?
( cd xtermset-%{V_xtermset}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
@ -100,26 +100,26 @@ AutoReqProv: no
--cache-file=./config.cache \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
) || exit $?
( cd xtermcontrol-%{V_xtermcontrol}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
( cd xterm-%{V_xterm}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
)
) || exit $?
( cd xtermset-%{V_xtermset}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
( cd xtermcontrol-%{V_xtermcontrol}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
) || exit $?
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \

5
zebra/zebra.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
Group: Network
License: GPL
Version: 0.93b
Release: 20030722
Release: 20030723
# list of sources
Source0: ftp://ftp.zebra.org/pub/zebra/zebra-%{version}.tar.gz
@ -92,7 +92,8 @@ AutoReqProv: no
# rebuild vtysh command list
( cd vtysh
%{l_shtool} subst -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' extract.pl
%{l_make} %{l_mflags} rebuild )
%{l_make} %{l_mflags} rebuild
) || exit $?
# build package
%{l_make} %{l_mflags -O}

Loading…
Cancel
Save