Skip to content

Commit 5c8035e

Browse files
author
foobar
committed
This file needed an update..
1 parent 3eb6d65 commit 5c8035e

File tree

1 file changed

+15
-36
lines changed

1 file changed

+15
-36
lines changed

makerpm

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
PREFIX="php"
77
TARDIR="`basename \`pwd\``"
88
RELEASE=${1:-1}
9-
VERSION=${2:-`echo $TARDIR | sed "s/$PREFIX//g"`}
9+
VERSION=${2:-`echo $TARDIR | sed "s/$PREFIX-//g"`}
1010

1111
if [ "$VERSION" = "" ]
1212
then cat <<"EOH"
@@ -24,23 +24,22 @@ echo -n "Building RPM version $VERSION, release: $RELEASE "
2424
sleep 1 ; echo -n . ; sleep 1 ; echo -n . ; sleep 1 ; echo -n .
2525
echo
2626

27-
TAR=php$VERSION.tar.gz
28-
SPEC=php$VERSION.spec
27+
TAR=php-$VERSION.tar.gz
28+
SPEC=php-$VERSION.spec
2929

3030
# write out the .spec file
3131
sed -e "s/PVERSION/$VERSION/g" \
3232
-e "s/PRELEASE/$RELEASE/g" \
3333
-e "s/TARDIR/$TARDIR/g" \
3434
> $SPEC <<'EOF'
35-
Summary: PHP4b1 - a powerful scripting language for HTML
35+
Summary: PHP 4 - A powerful scripting language
3636
Name: mod_php4
3737
Version: PVERSION
3838
Release: PRELEASE
3939
Group: Networking/Daemons
40-
Source0: http://www.php.net/distributions/php%{PACKAGE_VERSION}.tar.gz
41-
#Source1: php3-manual.tar.gz
40+
Source0: http://www.php.net/distributions/php-%{PACKAGE_VERSION}.tar.gz
4241
Copyright: GPL
43-
BuildRoot: /tmp/php3-root
42+
BuildRoot: /tmp/php4-root
4443
Requires: webserver
4544
4645
%description
@@ -57,59 +56,36 @@ chown -R root.root .
5756
%build
5857
# first the standalone (why can't you build both at once?)
5958
# need to run this under sh or it breaks
60-
cd ext/wddx
61-
ln -s /usr/src/redhat/BUILD/apache_1.3.9/src/lib/expat-lite ./xml
62-
cd ../..
6359
6460
sh ./configure --prefix=/usr \
65-
--without-gd \
6661
--with-config-file-path=/usr/lib \
6762
--enable-force-cgi-redirect \
68-
--enable-debugger=yes \
6963
--enable-safe-mode \
7064
--with-exec-dir=/usr/bin \
7165
--with-mysql=/usr \
7266
--with-imap=/usr \
7367
--with-pdflib=/usr \
74-
--with-system-regex \
75-
--enable-track-vars \
76-
--with-ttf \
77-
--with-zlib \
78-
--with-xml=/usr/src/redhat/BUILD/apache_1.3.9/src/lib/expat-lite \
79-
--with-wddx \
80-
81-
# ldap don't work
82-
# --with-ldap=/usr \
83-
84-
# system regex conflicts with apache_ssl for some reason
68+
--with-zlib=/usr \
69+
--enable-xml \
70+
--enable-wddx
8571
8672
make
8773
mv php php.keepme
8874
8975
# then the apache module
9076
rm config.cache
9177
sh ./configure --prefix=/usr \
92-
--without-gd \
9378
--with-apxs=/usr/sbin/apxs \
9479
--enable-versioning \
9580
--with-config-file-path=/usr/lib \
96-
--enable-debugger=yes \
9781
--enable-safe-mode \
9882
--with-exec-dir=/usr/bin \
9983
--with-mysql=/usr \
10084
--with-imap=/usr \
10185
--with-pdflib=/usr \
102-
--with-system-regex \
103-
--enable-track-vars \
104-
--with-ttf \
105-
--with-zlib \
106-
--with-xml=/usr/src/redhat/BUILD/apache_1.3.9/src/lib/expat-lite \
107-
--with-wddx \
108-
109-
# ldap don't work
110-
# --with-ldap=/usr \
111-
112-
# system regex conflicts with apache_ssl for some reason
86+
--with-zlib=/usr \
87+
--enable-xml \
88+
--enable-wddx
11389
11490
make clean
11591
make
@@ -127,6 +103,9 @@ install -m 755 php $RPM_BUILD_ROOT/usr/bin
127103
rm -rf $RPM_BUILD_ROOT
128104
129105
%changelog
106+
* Fri Jun 29 2001 Jani Taskinen <sniper@iki.fi>
107+
- Removed some useless configure options. Made the tar names correct.
108+
130109
* Sun Apr 30 2000 Joey Smith <joey@samaritan.com>
131110
- Small fix: Description still referred to package as PHP3.
132111

0 commit comments

Comments
 (0)