Wed, 08 Aug 2012 00:07:34 +0200
Import package vendor original specs for necessary manipulations.
apr/apr.patch | file | annotate | diff | comparison | revisions | |
apr/apr.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/apr/apr.patch Wed Aug 08 00:07:34 2012 +0200 1.3 @@ -0,0 +1,25 @@ 1.4 +Index: apr-util-1.4.1/apu-config.in 1.5 +--- apr-util-1.4.1/apu-config.in.orig 2010-11-26 15:21:37.000000000 +0100 1.6 ++++ apr-util-1.4.1/apu-config.in 2011-12-14 09:09:13.000000000 +0100 1.7 +@@ -27,7 +27,7 @@ 1.8 + libdir="@libdir@" 1.9 + includedir="@includedir@" 1.10 + 1.11 +-LIBS="@APRUTIL_EXPORT_LIBS@" 1.12 ++LIBS="@APRUTIL_EXPORT_LIBS@ @LIBS@" 1.13 + INCLUDES="@APRUTIL_INCLUDES@" 1.14 + LDFLAGS="@APRUTIL_LDFLAGS@" 1.15 + LDAP_LIBS="@LDADD_ldap@" 1.16 +Index: apr-util-1.4.1/include/private/apu_select_dbm.h.in 1.17 +--- apr-util-1.4.1/include/private/apu_select_dbm.h.in.orig 2007-01-15 20:00:58.000000000 +0100 1.18 ++++ apr-util-1.4.1/include/private/apu_select_dbm.h.in 2011-12-14 09:09:13.000000000 +0100 1.19 +@@ -25,4 +25,9 @@ 1.20 + #define APU_USE_GDBM @apu_use_gdbm@ 1.21 + #define APU_USE_DB @apu_use_db@ 1.22 + 1.23 ++#define APU_HAVE_SDBM @apu_have_sdbm@ 1.24 ++#define APU_HAVE_NDBM @apu_have_ndbm@ 1.25 ++#define APU_HAVE_GDBM @apu_have_gdbm@ 1.26 ++#define APU_HAVE_DB @apu_have_db@ 1.27 ++ 1.28 + #endif /* !APU_SELECT_DBM_H */
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/apr/apr.spec Wed Aug 08 00:07:34 2012 +0200 2.3 @@ -0,0 +1,221 @@ 2.4 +## 2.5 +## apr.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package version 2.28 +%define V_apr 1.4.6 2.29 +%define V_apr_util 1.4.1 2.30 + 2.31 +# package information 2.32 +Name: apr 2.33 +Summary: Apache Portable Runtime 2.34 +URL: http://apr.apache.org/ 2.35 +Vendor: Apache Software Foundation 2.36 +Packager: OpenPKG Foundation e.V. 2.37 +Distribution: OpenPKG Community 2.38 +Class: BASE 2.39 +Group: Libraries 2.40 +License: Apache 2.41 +Version: %{V_apr} 2.42 +Release: 20120214 2.43 + 2.44 +# package options 2.45 +%option with_threads no 2.46 +%option with_db no 2.47 +%option with_gdbm no 2.48 +%option with_iconv no 2.49 +%option with_ldap no 2.50 +%option with_odbc no 2.51 +%option with_pgsql no 2.52 +%option with_mysql no 2.53 +%option with_sqlite no 2.54 + 2.55 +# list of sources 2.56 +Source0: http://www.apache.org/dist/apr/apr-%{V_apr}.tar.gz 2.57 +Source1: http://www.apache.org/dist/apr/apr-util-%{V_apr_util}.tar.gz 2.58 +Patch0: apr.patch 2.59 + 2.60 +# build information 2.61 +BuildPreReq: OpenPKG, openpkg >= 20100101, sed, make 2.62 +PreReq: OpenPKG, openpkg >= 20100101, sed 2.63 +BuildPreReq: expat 2.64 +PreReq: expat 2.65 +%if "%{with_db}" == "yes" 2.66 +BuildPreReq: db >= 4.6 2.67 +PreReq: db >= 4.6 2.68 +%endif 2.69 +%if "%{with_gdbm}" == "yes" 2.70 +BuildPreReq: gdbm 2.71 +PreReq: gdbm 2.72 +%endif 2.73 +%if "%{with_iconv}" == "yes" 2.74 +BuildPreReq: libiconv 2.75 +PreReq: libiconv 2.76 +%endif 2.77 +%if "%{with_ldap}" == "yes" 2.78 +BuildPreReq: openldap, openssl >= 0.9.8 2.79 +PreReq: openldap, openssl >= 0.9.8 2.80 +%endif 2.81 +%if "%{with_odbc}" == "yes" 2.82 +BuildPreReq: ODBC 2.83 +PreReq: ODBC 2.84 +%endif 2.85 +%if "%{with_pgsql}" == "yes" 2.86 +BuildPreReq: postgresql 2.87 +PreReq: postgresql 2.88 +%endif 2.89 +%if "%{with_mysql}" == "yes" 2.90 +BuildPreReq: mysql 2.91 +PreReq: mysql 2.92 +%endif 2.93 +%if "%{with_sqlite}" == "yes" 2.94 +BuildPreReq: sqlite 2.95 +PreReq: sqlite 2.96 +%endif 2.97 + 2.98 +%description 2.99 + Apache Portable Runtime (APR) is a library of C data structures 2.100 + and routines, forming a common system portability layer to as many 2.101 + operating systems as possible. 2.102 + 2.103 +%track 2.104 + prog apr = { 2.105 + version = %{V_apr} 2.106 + url = http://www.apache.org/dist/apr/ 2.107 + regex = apr-(__VER__)\.tar\.gz 2.108 + } 2.109 + prog apr:apr-util = { 2.110 + version = %{V_apr_util} 2.111 + url = http://www.apache.org/dist/apr/ 2.112 + regex = apr-util-(__VER__)\.tar\.gz 2.113 + } 2.114 + 2.115 +%prep 2.116 + %setup -q -c 2.117 + %setup -q -D -T -a 1 2.118 + %patch -p0 2.119 + 2.120 +%build 2.121 + ( cd apr-%{V_apr} 2.122 + CC="%{l_cc}" \ 2.123 + CFLAGS="%{l_cflags -O}" \ 2.124 + CONFIG_SHELL="/bin/sh" \ 2.125 + ./configure \ 2.126 + --enable-layout=GNU \ 2.127 + --prefix=%{l_prefix} \ 2.128 + --includedir=%{l_prefix}/include/apr \ 2.129 + --datadir=%{l_prefix}/share/apr \ 2.130 +%if "%{with_threads}" == "yes" 2.131 + --enable-threads \ 2.132 +%else 2.133 + --disable-threads \ 2.134 +%endif 2.135 + --enable-shared \ 2.136 + --enable-static 2.137 + %{l_make} %{l_mflags -O} 2.138 + ) || exit $? 2.139 + ( cd apr-util-%{V_apr_util} 2.140 + cp /dev/null config.cache 2.141 +%if "%{with_iconv}" == "no" 2.142 + ( echo "ac_cv_header_iconv_h=no" 2.143 + ) >config.cache 2.144 +%endif 2.145 + CC="%{l_cc}" \ 2.146 + CFLAGS="%{l_cflags -O}" \ 2.147 +%if "%{with_ldap}" == "yes" 2.148 + LIBS="-lssl -lcrypto" \ 2.149 +%endif 2.150 + ./configure \ 2.151 + --cache-file=./config.cache \ 2.152 + --enable-layout=GNU \ 2.153 + --prefix=%{l_prefix} \ 2.154 + --includedir=%{l_prefix}/include/apr \ 2.155 + --datadir=%{l_prefix}/share/apr \ 2.156 + --with-apr=`pwd`/../apr-%{V_apr} \ 2.157 +%if "%{with_db}" == "yes" 2.158 + --with-berkeley-db=%{l_prefix} \ 2.159 +%endif 2.160 +%if "%{with_gdbm}" == "yes" 2.161 + --with-gdbm=%{l_prefix} \ 2.162 +%endif 2.163 +%if "%{with_db}" == "yes" 2.164 + --with-dbm=db46 \ 2.165 +%else 2.166 +%if "%{with_gdbm}" == "yes" 2.167 + --with-dbm=gdbm \ 2.168 +%else 2.169 + --with-dbm=sdbm \ 2.170 +%endif 2.171 +%endif 2.172 + --with-expat=%{l_prefix} \ 2.173 +%if "%{with_iconv}" == "yes" 2.174 + --with-iconv=%{l_prefix} \ 2.175 +%endif 2.176 +%if "%{with_ldap}" == "yes" 2.177 + --with-ldap \ 2.178 + --with-ldap-include=%{l_prefix}/include/ \ 2.179 + --with-ldap-lib=%{l_prefix}/lib \ 2.180 +%endif 2.181 +%if "%{with_odbc}" == "yes" 2.182 + --with-odbc=%{l_prefix} \ 2.183 +%else 2.184 + --without-odbc \ 2.185 +%endif 2.186 +%if "%{with_pgsql}" == "yes" 2.187 + --with-pgsql=%{l_prefix} \ 2.188 +%else 2.189 + --without-pgsql \ 2.190 +%endif 2.191 +%if "%{with_mysql}" == "yes" 2.192 + --with-mysql=%{l_prefix} \ 2.193 +%else 2.194 + --without-mysql \ 2.195 +%endif 2.196 +%if "%{with_sqlite}" == "yes" 2.197 + --with-sqlite3=%{l_prefix} \ 2.198 +%else 2.199 + --without-sqlite3 \ 2.200 +%endif 2.201 + --enable-util-dso \ 2.202 + --enable-shared \ 2.203 + --enable-static 2.204 + %{l_make} %{l_mflags -O} 2.205 + ) || exit $? 2.206 + 2.207 +%install 2.208 + ( cd apr-%{V_apr} 2.209 + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 2.210 + ) || exit $? 2.211 + ( cd apr-util-%{V_apr_util} 2.212 + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 2.213 + ) || exit $? 2.214 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/apr.exp 2.215 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/aprutil.exp 2.216 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/apr-util-1/*.a 2.217 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la 2.218 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* 2.219 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.220 + 2.221 +%files -f files 2.222 + 2.223 +%clean 2.224 +