~ubuntu-branches/ubuntu/gutsy/libcgi-ssi-perl/gutsy

« back to all changes in this revision

Viewing changes to debian/packages

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Roszatycki
  • Date: 2004-08-09 11:16:17 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040809111617-c9bqf155kt13rt4w
Tags: 0.53-5
Remove Origin field and make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: packages,v 1.7 2004/08/09 09:17:14 dexter Exp $
 
2
 
 
3
# Environment variables:
 
4
#   without_test=%{$without_test}  - don't run `make test'
 
5
 
 
6
%define without_test %{?$without_test:1}%{!?$without_test:0}
 
7
 
1
8
Source: libcgi-ssi-perl
2
 
Section: web
 
9
Section: perl
3
10
Priority: extra
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
8
 
Origin: Debian
9
 
Bugs: debbugs://bugs.debian.org
10
15
Copyright: .
11
16
 Copyright 2000 James Tolley   All Rights Reserved.
12
17
 .
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.
30
 
Major-Changes:
31
 
 none
 
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
 
42
%endif
32
43
Build: sh
33
 
 CC=gcc
34
 
 CFLAGS="-O2 -Wall"
35
 
 LDFLAGS=
36
 
 if [ "${DEB_BUILD_OPTIONS#*debug}" != "$DEB_BUILD_OPTIONS" ]; then
37
 
     CFLAGS="$CFLAGS -g"
 
44
 CC=${CC:-gcc}
 
45
 CFLAGS=${CFLAGS:--Wall -g}
 
46
 if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
 
47
     CFLAGS="$CFLAGS -O0"
 
48
 else
 
49
     CFLAGS="$CFLAGS -O2"
38
50
 fi
39
51
 PERL=${PERL:-/usr/bin/perl}
40
 
 version=$($PERL -e 'printf "%.3f", $]')
41
 
 if dpkg --compare-versions "$version" lt "5.006"; then
42
 
     # potato
43
 
     $PERL Makefile.PL
44
 
     make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CC="$CC"
45
 
 else
46
 
     # sid
47
 
     $PERL Makefile.PL INSTALLDIRS=vendor # sid
48
 
     make OPTIMIZE="$CFLAGS" CC="$CC"
49
 
 fi
 
52
 $PERL Makefile.PL INSTALLDIRS=vendor
 
53
 make CC="$CC" OPTIMIZE="$CFLAGS"
 
54
%if %{!?without_test:1}
 
55
 make test
 
56
%endif
50
57
Clean: sh
51
58
 test -f Makefile && touch Makefile && make distclean || true
52
59
 
53
60
Package: libcgi-ssi-perl
54
61
Architecture: all
55
 
Depends: libhtml-simpleparse-perl, libwww-perl, liburi-perl, libtimedate-perl, []
 
62
Depends: libhtml-simpleparse-perl
 
63
Depends: perl-modules
 
64
Depends: libwww-perl
 
65
Depends: liburi-perl
 
66
Depends: libtimedate-perl
 
67
Depends: []
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
62
74
 script.
63
75
Install: sh
64
76
 PERL=${PERL:-/usr/bin/perl}
65
 
 version=$($PERL -e 'printf "%.3f", $]')
66
 
 if dpkg --compare-versions "$version" lt "5.006"; then
67
 
     # potato
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
71
 
 else
72
 
     # sid
73
 
     make install PREFIX=$ROOT/usr
74
 
 fi
 
77
 make install PREFIX=$ROOT/usr
75
78
 yada install -doc README
76
79
 yada install -doc -as changelog Changes
77
 
 yada strip
78
 
 yada perl
79
 
 yada dpkg-shlibdeps