OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 05-Aug-2008 21:56:04 Branch: HEAD Handle: 2008080520560400 Added files: openpkg-src/apache-xslt apache-xslt.conf apache-xslt.patch apache-xslt.spec Log: new package: apache-xslt 20080804 (Apache Extension: XLST Transformation) Summary: Revision Changes Path 1.1 +6 -0 openpkg-src/apache-xslt/apache-xslt.conf 1.1 +33 -0 openpkg-src/apache-xslt/apache-xslt.patch 1.1 +126 -0 openpkg-src/apache-xslt/apache-xslt.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/apache-xslt/apache-xslt.conf ============================================================================ $ cvs diff -u -r0 -r1.1 apache-xslt.conf --- /dev/null 2008-08-05 21:56:03 +0200 +++ apache-xslt.conf 2008-08-05 21:56:04 +0200 @@ -0,0 +1,6 @@ +## +## apache-xslt.conf -- Apache configuration for mod_xslt +## + +LoadModule mxslt_module @l_prefix@/libexec/apache/mod_xslt.so + @@ . patch -p0 <<'@@ .' Index: openpkg-src/apache-xslt/apache-xslt.patch ============================================================================ $ cvs diff -u -r0 -r1.1 apache-xslt.patch --- /dev/null 2008-08-05 21:56:03 +0200 +++ apache-xslt.patch 2008-08-05 21:56:04 +0200 @@ -0,0 +1,33 @@ +Index: configure +--- configure.orig 2008-08-04 01:51:05 +0200 ++++ configure 2008-08-05 21:45:17 +0200 +@@ -22961,7 +22961,7 @@ + } + + # Check if we can link with libapr +- APR_LIB_NAME=`$APRC --apr-la-file | sed -e s/.*lib// -e s/\.la//` ++ APR_LIB_NAME="apr" + as_ac_Lib=`echo "ac_cv_lib_$APR_LIB_NAME''_apr_palloc" | $as_tr_sh` + { echo "$as_me:$LINENO: checking for apr_palloc in -l$APR_LIB_NAME" >&5 + echo $ECHO_N "checking for apr_palloc in -l$APR_LIB_NAME... $ECHO_C" >&6; } +@@ -23265,7 +23265,7 @@ + } + + # Check if we can link with libapr +- APU_LIB_NAME=`$APUC --apu-la-file | sed -e s/.*lib// -e s/\.la//` ++ APU_LIB_NAME="aprutil" + as_ac_Lib=`echo "ac_cv_lib_$APU_LIB_NAME''_apr_brigade_create" | $as_tr_sh` + { echo "$as_me:$LINENO: checking for apr_brigade_create in -l$APU_LIB_NAME" >&5 + echo $ECHO_N "checking for apr_brigade_create in -l$APU_LIB_NAME... $ECHO_C" >&6; } +Index: utils/Makefile.in +--- utils/Makefile.in.orig 2008-08-04 01:27:22 +0200 ++++ utils/Makefile.in 2008-08-05 21:48:52 +0200 +@@ -92,7 +92,7 @@ + $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ modxslt-perror.lo + + modxslt-parse: modxslt-parse.lo ../lib/libmodxslt$(LIB_VERSION).la Makefile +- $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ modxslt-parse.lo ../lib/libmodxslt$(LIB_VERSION).la ++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -static -o $@ modxslt-parse.lo ../lib/libmodxslt$(LIB_VERSION).la + + ../lib/libmodxslt$(LIB_VERSION).la: Makefile + $(MAKE) -C ../lib @DEFAULT_TARGET@ @@ . patch -p0 <<'@@ .' Index: openpkg-src/apache-xslt/apache-xslt.spec ============================================================================ $ cvs diff -u -r0 -r1.1 apache-xslt.spec --- /dev/null 2008-08-05 21:56:03 +0200 +++ apache-xslt.spec 2008-08-05 21:56:04 +0200 @@ -0,0 +1,126 @@ +## +## apache-xslt.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package version +%define V_dist 2008080400 +%define V_opkg 20080804 + +# package information +Name: apache-xslt +Summary: Apache Extension: XLST Transformation +URL: http://www.mod-xslt2.com/ +Vendor: Philipp Dunkel, Carlo Contavalli et al. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Web +License: GPL +Version: %{V_opkg} +Release: 20080805 + +# list of sources +Source0: http://www.mod-xslt2.com/software/archive/%{V_dist}/modxslt-%{V_dist}.tar.gz +Source1: apache-xslt.conf +Patch0: apache-xslt.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, make +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: apache, apr, libxml, libxslt, pcre +PreReq: apache, apr, libxml, libxslt, pcre +AutoReq: no +AutoReqProv: no + +%description + This is the XLST transformation module for the Apache HTTP + webserver. + +%track + prog apache-xslt = { + version = %{V_dist} + url = http://www.mod-xslt2.com/software/snapshots.xml + regex = modxslt-%{V_dist}\.tar\.gz + } + +%prep + %setup -q -n modxslt-%{V_dist} + %patch -p0 + +%build + # build module + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --with-sapi=apache2 \ + --with-apxs=%{l_prefix}/sbin/apxs \ + --with-apr-config=%{l_prefix}/bin/apr-1-config \ + --with-apu-config=%{l_prefix}/bin/apu-1-config \ + --with-xml2-config=%{l_prefix}/bin/xml2-config \ + --with-xslt-config=%{l_prefix}/bin/xslt-config \ + --with-pcre-config=%{l_prefix}/bin/pcre-config \ + --enable-extensions \ + --enable-xinclude \ + --enable-fallback-wraparound \ + --enable-exslt \ + --disable-thread + %{l_make} %{l_mflags} + +%install + # install module + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/apache + %{l_shtool} install -c -m 755 \ + utils/modxslt-parse \ + $RPM_BUILD_ROOT%{l_prefix}/bin/modxslt-parse + %{l_shtool} install -c -m 755 \ + sapi/apache2/.libs/mod_xslt.so \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/mod_xslt.so + %{l_shtool} install -c -m 644 %{l_value -s -a} \ + %{SOURCE apache-xslt.conf} \ + $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/apache/apache.d/apache-xslt.conf' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + +%post + # after upgrade, restart service + [ $1 -eq 2 ] || exit 0 + eval `%{l_rc} apache status 2>/dev/null` + [ ".$apache_active" = .yes ] && %{l_rc} apache restart + exit 0 + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org