Browse Source

speclint police

master
parent
commit
ac449308f6
  1. 7
      ksh/ksh.spec
  2. 6
      ncurses/ncurses.spec
  3. 7
      pax/pax.spec
  4. 4
      spamassassin/spamassassin.spec
  5. 22
      tiff/tiff.spec

7
ksh/ksh.spec

@ -23,6 +23,7 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# package versions
%define V_pkg 20030422 %define V_pkg 20030422
%define V_ksh 2003-04-22 %define V_ksh 2003-04-22
%define V_init 2003-04-22 %define V_init 2003-04-22
@ -37,7 +38,7 @@ Distribution: OpenPKG [BASE]
Group: Shell Group: Shell
License: AT&T License: AT&T
Version: %{V_pkg} Version: %{V_pkg}
Release: 20030424 Release: 20030428
# list of sources # list of sources
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{V_ksh}.tgz Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{V_ksh}.tgz
@ -67,8 +68,8 @@ Conflicts: pdksh
%setup1 -q -T -D -a 1 %setup1 -q -T -D -a 1
%build %build
./bin/package read || true ./bin/package "read" || true
./bin/package make CC="%{l_cc}" ./bin/package "make" CC="%{l_cc}"
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT

6
ncurses/ncurses.spec

@ -55,7 +55,7 @@ Distribution: OpenPKG [BASE]
Group: Terminal Group: Terminal
License: GPL License: GPL
Version: %{V_base}.%{V_patchL} Version: %{V_base}.%{V_patchL}
Release: 20030420 Release: 20030428
# list of sources # list of sources
Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
@ -97,10 +97,10 @@ AutoReqProv: no
-e 's;patch -p1;%{l_patch} -p1;' \ -e 's;patch -p1;%{l_patch} -p1;' \
patchbase.sh patchbase.sh
sh patchbase.sh ) sh patchbase.sh )
for patch in \ for patchfile in \
%{expand:%(i=1; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)} %{expand:%(i=1; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)}
do do
%{l_gzip} -d -c $patch | %{l_patch} -p1 || true %{l_gzip} -d -c $patchfile | %{l_patch} -p1 || true
done done
%build %build

7
pax/pax.spec

@ -23,6 +23,7 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# package versions
%define V_here 20030422 %define V_here 20030422
%define V_init 2003-04-22 %define V_init 2003-04-22
%define V_base 2003-04-22 %define V_base 2003-04-22
@ -37,7 +38,7 @@ Distribution: OpenPKG [EVAL]
Group: Filesystem Group: Filesystem
License: AT&T License: AT&T
Version: %{V_here} Version: %{V_here}
Release: 20030424 Release: 20030428
# list of sources # list of sources
Source0: http://www.research.att.com/~gsf/download/tgz/ast-base.%{V_base}.tgz Source0: http://www.research.att.com/~gsf/download/tgz/ast-base.%{V_base}.tgz
@ -63,8 +64,8 @@ AutoReqProv: no
%setup1 -q -T -D -a 1 %setup1 -q -T -D -a 1
%build %build
./bin/package read || true ./bin/package "read" || true
./bin/package make CC="%{l_cc}" LDFLAGS="-static" ./bin/package "make" CC="%{l_cc}" LDFLAGS="-static"
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT

4
spamassassin/spamassassin.spec

@ -23,7 +23,7 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# FIXME: rse: build step is to be moved to the %build section when # FIXME: rse: build step is to be moved to the build section when
# FIXME: rse: perl-openpkg offers adequate support for this # FIXME: rse: perl-openpkg offers adequate support for this
# FIXME: cs: provide better default configuration # FIXME: cs: provide better default configuration
# FIXME: cs: spamc/spamd configuration not tested # FIXME: cs: spamc/spamd configuration not tested
@ -39,7 +39,7 @@ Distribution: OpenPKG [EVAL]
Group: Mail Group: Mail
License: GPL/Artistic License: GPL/Artistic
Version: 2.53 Version: 2.53
Release: 20030330 Release: 20030428
# list of sources # list of sources
Source0: http://www.spamassassin.org/released/Mail-SpamAssassin-%{version}.tar.gz Source0: http://www.spamassassin.org/released/Mail-SpamAssassin-%{version}.tar.gz

22
tiff/tiff.spec

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

Loading…
Cancel
Save