1
# $Id: packages,v 1.7 2004/08/09 09:17:14 dexter Exp $
3
# Environment variables:
4
# without_test=%{$without_test} - don't run `make test'
6
%define without_test %{?$without_test:1}%{!?$without_test:0}
1
8
Source: libcgi-ssi-perl
4
11
Maintainer: Piotr Roszatycki <dexter@debian.org>
5
Standards-Version: 3.5.6
6
Upstream-Source: <URL:http://www.cpan.org/modules/by-module/CGI/>
12
Standards-Version: 3.6.1
13
Upstream-Source: <URL:http://www.cpan.org/modules/by-module/CGI/CGI-SSI-([0-9.]*)\.tar.gz>
7
14
Description: perl CGI::SSI - Use SSI from CGI scripts
9
Bugs: debbugs://bugs.debian.org
11
16
Copyright 2000 James Tolley All Rights Reserved.
27
32
License along with this system, in /usr/share/common-licenses/GPL; if not,
28
33
write to the Free Software Foundation, Inc., 59 Temple Place - Suite
29
34
330, Boston, MA 02111-1307, USA.
35
Build-Depends-Indep: perl (>= 5.8)
36
%if %{!?without_test:1}
37
Build-Depends-Indep: libhtml-simpleparse-perl
38
Build-Depends-Indep: perl-modules
39
Build-Depends-Indep: libwww-perl
40
Build-Depends-Indep: liburi-perl
41
Build-Depends-Indep: libtimedate-perl
36
if [ "${DEB_BUILD_OPTIONS#*debug}" != "$DEB_BUILD_OPTIONS" ]; then
45
CFLAGS=${CFLAGS:--Wall -g}
46
if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
39
51
PERL=${PERL:-/usr/bin/perl}
40
version=$($PERL -e 'printf "%.3f", $]')
41
if dpkg --compare-versions "$version" lt "5.006"; then
44
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CC="$CC"
47
$PERL Makefile.PL INSTALLDIRS=vendor # sid
48
make OPTIMIZE="$CFLAGS" CC="$CC"
52
$PERL Makefile.PL INSTALLDIRS=vendor
53
make CC="$CC" OPTIMIZE="$CFLAGS"
54
%if %{!?without_test:1}
51
58
test -f Makefile && touch Makefile && make distclean || true
53
60
Package: libcgi-ssi-perl
55
Depends: libhtml-simpleparse-perl, libwww-perl, liburi-perl, libtimedate-perl, []
62
Depends: libhtml-simpleparse-perl
66
Depends: libtimedate-perl
56
68
Description: perl CGI::SSI - Use SSI from CGI scripts
57
69
CGI::SSI is meant to be used as an easy way to filter shtml through CGI
58
70
scripts in a loose imitation of Apache's mod_include. If you're using
64
76
PERL=${PERL:-/usr/bin/perl}
65
version=$($PERL -e 'printf "%.3f", $]')
66
if dpkg --compare-versions "$version" lt "5.006"; then
68
archlib=$($PERL -MConfig -e 'print $Config{installarchlib}')
69
config="INSTALLDIRS=perl INSTALLMAN1DIR=$ROOT/usr/share/man/man1 INSTALLMAN3DIR=$ROOT/usr/share/man/man3 INSTALLPRIVLIB=$ROOT/usr/lib/perl5 INSTALLARCHLIB=$ROOT$archlib"
70
make pure_install $config
73
make install PREFIX=$ROOT/usr
77
make install PREFIX=$ROOT/usr
75
78
yada install -doc README
76
79
yada install -doc -as changelog Changes