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