]> git.pld-linux.org Git - packages/apr-util.git/blame - apr-util.spec
Release 5 (by relup.sh)
[packages/apr-util.git] / apr-util.spec
CommitLineData
b1652f3f 1# NOTE: drop freetds bcond if/when upstream removes the rest of dbd-freetds code
a7e1e844 2#
30276236 3# Conditional build:
b1652f3f 4%bcond_with freetds # without FreeTDS (sybdb) DBD module [unsupported since 1.6.0]
48e7a7b5
AG
5%bcond_without mysql # without MySQL DBD module
6%bcond_without odbc # without ODBC DBD module
92c6255c
JB
7%bcond_with oracle # with Oracle DBD module (BR: proprietary libs)
8%bcond_without pgsql # without PostgreSQL DBD module
9%bcond_with sqlite2 # with SQLite 2.x DBD module
10%bcond_without sqlite3 # without SQLite3 DBD module
11%bcond_without ldap # without LDAP module
b95223bc
JB
12%bcond_without nss # without NSS crypto module
13%bcond_without openssl # without OpenSSL crypto module
14%bcond_without tests # don't perform "make check"
f53e9eb5 15
b1802398
JB
16# define dbver db50
17%if 0%{!?dbver:1}
f53e9eb5 18 %if "%{pld_release}" == "th"
4aaa3621 19 %define dbver db53
f53e9eb5 20 %endif
f53e9eb5
ER
21 %if "%{pld_release}" == "ac"
22 %define dbver db42
23 %endif
b1802398 24%endif
f53e9eb5 25
72a05a99 26Summary: A companion library to Apache Portable Runtime
1cdce4f9 27Summary(pl.UTF-8): Biblioteka towarzysząca Apache Portable Runtime
72a05a99 28Name: apr-util
f7adb7f5 29Version: 1.6.1
dec3f2ee 30Release: 5
72a05a99 31Epoch: 1
30276236 32License: Apache v2.0
72a05a99 33Group: Libraries
4078c8d7 34Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
f7adb7f5 35# Source0-md5: 8ff5dc36fa39a2a3db1df196d3ed6086
90687e98 36Patch0: %{name}-link.patch
155bafb5 37Patch1: %{name}-config-noldap.patch
16929f4d 38Patch2: %{name}-libtool.patch
d12a4eaf 39Patch3: %{name}-flags.patch
72a05a99 40URL: http://apr.apache.org/
b2d4bebb 41BuildRequires: apr-devel >= 1:1.6.0
f7e14f7d 42BuildRequires: autoconf >= 2.59
16929f4d 43%if "%{pld_release}" == "th"
92c6255c 44BuildRequires: db-devel >= 4.7
16929f4d 45%endif
f53e9eb5
ER
46%if "%{pld_release}" == "ac"
47BuildRequires: db-devel >= 4.2
48BuildConflicts: db4.5-devel
7b70f674 49%endif
77bbdc19 50BuildRequires: expat-devel
92c6255c 51%{?with_freetds:BuildRequires: freetds-devel}
fed4b95d 52BuildRequires: libtool
e753ced3 53%{?with_mysql:BuildRequires: mysql-devel}
b95223bc 54%{?with_nss:BuildRequires: nss-devel}
16929f4d 55%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
b95223bc 56%{?with_openssl:BuildRequires: openssl-devel}
e753ced3 57%{?with_pgsql:BuildRequires: postgresql-devel}
7b70f674 58BuildRequires: rpm >= 4.4.9-56
40238ac3 59%{?with_sqlite2:BuildRequires: sqlite-devel >= 2}
4078c8d7 60%{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
c10367e4 61%{?with_odbc:BuildRequires: unixODBC-devel}
ab046b66 62BuildRequires: which
b2d4bebb 63Requires: apr >= 1:1.6.0
b1652f3f 64%{!?with_freetds:Obsoletes: apr-util-dbd-freetds}
72a05a99
AM
65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67%define _includedir /usr/include/apr-util
68
69%description
70A companion library to Apache Portable Runtime.
71
61c4246a
JR
72%description -l pl.UTF-8
73Biblioteka towarzysząca dla biblioteki Apache Portable Runtime
74(przenośnej biblioteki uruchomieniowej).
77bbdc19 75
b95223bc
JB
76%package crypto-nss
77Summary: APR cryptographic module using Mozilla NSS library
78Summary(pl.UTF-8): Moduł kryptograficzny APR wykorzystujący bibliotekę Mozilla NSS
c10367e4
AM
79Group: Libraries
80Requires: %{name} = %{epoch}:%{version}-%{release}
81
b95223bc
JB
82%description crypto-nss
83APR cryptographic module using Mozilla NSS library.
c10367e4 84
b95223bc
JB
85%description crypto-nss -l pl.UTF-8
86Moduł kryptograficzny APR wykorzystujący bibliotekę Mozilla NSS.
87
88%package crypto-openssl
89Summary: APR cryptographic module using OpenSSL library
90Summary(pl.UTF-8): Moduł kryptograficzny APR wykorzystujący bibliotekę OpenSSL
91Group: Libraries
92Requires: %{name} = %{epoch}:%{version}-%{release}
93
94%description crypto-openssl
95APR cryptographic module using OpenSSL library.
96
97%description crypto-openssl -l pl.UTF-8
98Moduł kryptograficzny APR wykorzystujący bibliotekę OpenSSL.
c10367e4 99
92c6255c
JB
100%package dbd-freetds
101Summary: DBD driver for FreeTDS (Sybase/MS SQL)
102Summary(pl.UTF-8): Sterownik DBD dla FreeTDS (Sybase/MS SQL)
103Group: Libraries
104Requires: %{name} = %{epoch}:%{version}-%{release}
105
106%description dbd-freetds
107DBD driver for FreeTDS (Sybase/MS SQL).
108
109%description dbd-freetds -l pl.UTF-8
110Sterownik DBD dla FreeTDS (Sybase/MS SQL).
111
40238ac3
ER
112%package dbd-mysql
113Summary: DBD driver for MySQL
1cdce4f9 114Summary(pl.UTF-8): Sterownik DBD dla MySQL-a
a7e1e844 115License: GPL
40238ac3
ER
116Group: Libraries
117Requires: %{name} = %{epoch}:%{version}-%{release}
40238ac3
ER
118
119%description dbd-mysql
120DBD driver for MySQL.
121
61c4246a 122%description dbd-mysql -l pl.UTF-8
a7e1e844
JB
123Sterownik DBD dla MySQL-a.
124
48e7a7b5
AG
125%package dbd-odbc
126Summary: DBD driver for ODBC
127Summary(pl.UTF-8): Sterownik DBD dla ODBC
128License: GPL
129Group: Libraries
130Requires: %{name} = %{epoch}:%{version}-%{release}
131
132%description dbd-odbc
133DBD driver for ODBC.
134
135%description dbd-odbc -l pl.UTF-8
136Sterownik DBD dla ODBC.
137
92c6255c
JB
138%package dbd-oracle
139Summary: DBD driver for Oracle
140Summary(pl.UTF-8): Sterownik DBD dla Oracle'a
141Group: Libraries
142Requires: %{name} = %{epoch}:%{version}-%{release}
143
144%description dbd-oracle
145DBD driver for Oracle.
146
147%description dbd-oracle -l pl.UTF-8
148Sterownik DBD dla Oracle'a.
149
40238ac3
ER
150%package dbd-pgsql
151Summary: DBD driver for PostgreSQL
1cdce4f9 152Summary(pl.UTF-8): Sterownik DBD dla PostgreSQL-a
40238ac3
ER
153Group: Libraries
154Requires: %{name} = %{epoch}:%{version}-%{release}
155
156%description dbd-pgsql
157DBD driver for PostgreSQL.
158
61c4246a 159%description dbd-pgsql -l pl.UTF-8
a7e1e844
JB
160Sterownik DBD dla PostgreSQL-a.
161
40238ac3
ER
162%package dbd-sqlite2
163Summary: DBD driver for SQLite 2
1cdce4f9 164Summary(pl.UTF-8): Sterownik DBD dla SQLite 2
40238ac3
ER
165Group: Libraries
166Requires: %{name} = %{epoch}:%{version}-%{release}
167
168%description dbd-sqlite2
a7e1e844
JB
169DBD driver for SQLite 2.
170
61c4246a 171%description dbd-sqlite2 -l pl.UTF-8
a7e1e844 172Sterownik DBD dla SQLite 2.
40238ac3
ER
173
174%package dbd-sqlite3
175Summary: DBD driver for SQLite 3
1cdce4f9 176Summary(pl.UTF-8): Sterownik DBD dla SQLite 3
40238ac3
ER
177Group: Libraries
178Requires: %{name} = %{epoch}:%{version}-%{release}
179
180%description dbd-sqlite3
a7e1e844
JB
181DBD driver for SQLite 3.
182
61c4246a 183%description dbd-sqlite3 -l pl.UTF-8
a7e1e844 184Sterownik DBD dla SQLite 3.
40238ac3 185
b95223bc
JB
186%package dbm-db
187Summary: DBM driver for DB
188Summary(pl.UTF-8): Sterownik DBM dla DB
189Group: Libraries
190Requires: %{name} = %{epoch}:%{version}-%{release}
191
192%description dbm-db
193DBM driver for DB.
194
195%description dbm-db -l pl.UTF-8
196Sterownik DBM dla DB.
197
92c6255c
JB
198%package ldap
199Summary: APR LDAP driver
200Summary(pl.UTF-8): Sterownik APR dla LDAP
201Group: Libraries
202Requires: %{name} = %{epoch}:%{version}-%{release}
203
204%description ldap
205APR LDAP driver.
206
207%description ldap -l pl.UTF-8
208Sterownik APR dla LDAP.
209
72a05a99 210%package devel
77bbdc19 211Summary: Header files and development documentation for apr-util
1cdce4f9 212Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr-util
72a05a99 213Group: Development/Libraries
77bbdc19 214Requires: %{name} = %{epoch}:%{version}-%{release}
b2d4bebb 215Requires: apr-devel >= 1:1.6.0
93be47f8 216Requires: expat-devel
72a05a99
AM
217
218%description devel
77bbdc19
JB
219Header files and development documentation for apr-util.
220
61c4246a
JR
221%description devel -l pl.UTF-8
222Pliki nagłówkowe i dokumentacja programisty do apr-util.
72a05a99
AM
223
224%package static
225Summary: Static apr-util library
1cdce4f9 226Summary(pl.UTF-8): Statyczna biblioteka apr-util
72a05a99 227Group: Development/Libraries
77bbdc19 228Requires: %{name}-devel = %{epoch}:%{version}-%{release}
72a05a99
AM
229
230%description static
231Static apr-util library.
232
61c4246a 233%description static -l pl.UTF-8
77bbdc19
JB
234Statyczna biblioteka apr-util.
235
72a05a99 236%prep
33c0565f 237%setup -q
90687e98 238%patch0 -p1
2a086b24 239%patch1 -p1
16929f4d 240%patch2 -p1
b1802398 241%patch3 -p1
d77c67c3 242
ad0b28d7
AM
243echo '
244<Layout PLD>
245 prefix: %{_prefix}
246 exec_prefix: %{_exec_prefix}
247 bindir: %{_bindir}
248 sbindir: %{_sbindir}
249 libdir: %{_libdir}
250 libexecdir: %{_libdir}/apr
251 mandir: %{_mandir}
252 sysconfdir: %{_sysconfdir}
253 datadir: %{_datadir}
254 installbuilddir: %{_datadir}/build
255 includedir: %{_includedir}
256 localstatedir: %{_localstatedir}
257 runtimedir: %{_localstatedir}/run
2c9c8118 258 libsuffix: -${APRUTIL_MAJOR_VERSION}
ad0b28d7
AM
259</Layout>
260' > config.layout
261
72a05a99 262%build
d94db474
AM
263./buildconf \
264 --with-apr=%{_datadir}/apr
33c0565f 265
72a05a99 266%configure \
ad0b28d7 267 --enable-layout=PLD \
33c0565f 268 --with-apr=%{_bindir}/apr-1-config \
7e89f5b8 269 --with-berkeley-db=%{_prefix} \
b95223bc 270 --with-crypto \
b1802398 271 --with-dbm=%{dbver} \
92c6255c
JB
272 --with-iconv=%{_prefix} \
273%if %{with ldap}
274 --with-ldap \
275 --with-ldap-include=%{_prefix}/include \
276 --with-ldap-lib=%{_libdir} \
7b70f674 277%endif
b95223bc
JB
278 %{?with_nss:--with-nss} \
279 %{?with_openssl:--with-openssl} \
92c6255c 280 %{!?with_freetds:--without-freetds} \
dbda5121 281 %{?with_mysql:--with-mysql=%{_prefix}} \
48e7a7b5 282 %{!?with_odbc:--without-odbc} \
92c6255c 283 %{?with_oracle:--with-oracle} \
e753ced3 284 %{!?with_pgsql:--without-pgsql} \
40238ac3 285 %{!?with_sqlite2:--without-sqlite2} \
c31ea3e4 286 %{!?with_sqlite3:--without-sqlite3}
33c0565f 287
d77c67c3
ER
288%{__make} \
289 CC="%{__cc}"
290
1f395ae1
AM
291%{?with_tests:%{__make} -j1 check}
292
72a05a99
AM
293%install
294rm -rf $RPM_BUILD_ROOT
295
296%{__make} install \
297 DESTDIR=$RPM_BUILD_ROOT
48e7a7b5 298
f7e14f7d 299%{__rm} $RPM_BUILD_ROOT%{_libdir}/apr-util-1/*.{la,a}
72a05a99 300
72a05a99
AM
301%clean
302rm -rf $RPM_BUILD_ROOT
303
77bbdc19
JB
304%post -p /sbin/ldconfig
305%postun -p /sbin/ldconfig
306
72a05a99
AM
307%files
308%defattr(644,root,root,755)
92c6255c 309%doc CHANGES NOTICE README
27418c3e
JB
310%attr(755,root,root) %{_libdir}/libaprutil-1.so.*.*.*
311%attr(755,root,root) %ghost %{_libdir}/libaprutil-1.so.0
92c6255c
JB
312%dir %{_libdir}/apr-util-1
313
b95223bc
JB
314%if %{with nss}
315%files crypto-nss
c10367e4 316%defattr(644,root,root,755)
b95223bc
JB
317%attr(755,root,root) %{_libdir}/apr-util-1/apr_crypto_nss-1.so
318%attr(755,root,root) %{_libdir}/apr-util-1/apr_crypto_nss.so
319%endif
320
321%if %{with openssl}
322%files crypto-openssl
323%defattr(644,root,root,755)
324%attr(755,root,root) %{_libdir}/apr-util-1/apr_crypto_openssl-1.so
325%attr(755,root,root) %{_libdir}/apr-util-1/apr_crypto_openssl.so
326%endif
c10367e4 327
92c6255c
JB
328%if %{with freetds}
329%files dbd-freetds
330%defattr(644,root,root,755)
331%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_freetds-1.so
332%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_freetds.so
333%endif
40238ac3 334
40238ac3
ER
335%if %{with mysql}
336%files dbd-mysql
337%defattr(644,root,root,755)
92c6255c
JB
338%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_mysql-1.so
339%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_mysql.so
340%endif
341
58900fcc 342%if %{with odbc}
48e7a7b5
AG
343%files dbd-odbc
344%defattr(644,root,root,755)
345%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_odbc-1.so
346%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_odbc.so
347%endif
348
92c6255c
JB
349%if %{with oracle}
350%files dbd-oracle
351%defattr(644,root,root,755)
352%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_oracle-1.so
353%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_oracle.so
40238ac3
ER
354%endif
355
356%if %{with pgsql}
357%files dbd-pgsql
358%defattr(644,root,root,755)
92c6255c
JB
359%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_pgsql-1.so
360%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_pgsql.so
40238ac3
ER
361%endif
362
363%if %{with sqlite2}
364%files dbd-sqlite2
365%defattr(644,root,root,755)
92c6255c
JB
366%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_sqlite2-1.so
367%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_sqlite2.so
40238ac3
ER
368%endif
369
370%if %{with sqlite3}
371%files dbd-sqlite3
372%defattr(644,root,root,755)
92c6255c
JB
373%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_sqlite3-1.so
374%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbd_sqlite3.so
40238ac3 375%endif
92c6255c 376
b95223bc
JB
377%files dbm-db
378%defattr(644,root,root,755)
379%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbm_db-1.so
380%attr(755,root,root) %{_libdir}/apr-util-1/apr_dbm_db.so
381
92c6255c
JB
382%if %{with ldap}
383%files ldap
384%defattr(644,root,root,755)
385%attr(755,root,root) %{_libdir}/apr-util-1/apr_ldap-1.so
386%attr(755,root,root) %{_libdir}/apr-util-1/apr_ldap.so
40238ac3 387%endif
72a05a99
AM
388
389%files devel
390%defattr(644,root,root,755)
27418c3e
JB
391%attr(755,root,root) %{_bindir}/apu-1-config
392%attr(755,root,root) %{_libdir}/libaprutil-1.so
393%{_libdir}/libaprutil-1.la
72a05a99
AM
394%{_libdir}/aprutil.exp
395%{_includedir}
33c0565f 396%{_pkgconfigdir}/apr-util-1.pc
72a05a99
AM
397
398%files static
399%defattr(644,root,root,755)
27418c3e 400%{_libdir}/libaprutil-1.a
This page took 0.145843 seconds and 4 git commands to generate.