3 %bcond_with tests # perform make test
5 Summary: Apache Portable Runtime
6 Summary(pl.UTF-8): Apache Portable Runtime - przenośna biblioteka uruchomieniowa
13 Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
14 # Source0-md5: 9ac9a00eaa190937fdbbde7b4f03ac1e
15 Patch0: %{name}-link.patch
16 Patch1: %{name}-libtool.patch
17 Patch2: %{name}-bug-46425.patch
18 URL: http://apr.apache.org/
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
21 BuildRequires: glibc-devel >= 6:2.9
22 %if "%{pld_release}" != "ac"
23 BuildRequires: libtool >= 2:2.2
25 BuildRequires: libtool
27 BuildRequires: libuuid-devel
29 BuildRequires: rpm >= 4.4.9-56
30 BuildRequires: rpm-pythonprov
31 BuildRequires: sed >= 4.0
32 %if "%{pld_release}" != "ac"
33 BuildRequires: uname(release) >= 2.6
34 Requires: uname(release) >= 2.6.13
36 # uuid.h misdetected from this one instead of libuuid-devel
37 BuildConflicts: ossp-uuid-devel < 1.6.2-6
39 Conflicts: kernel24-smp
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _includedir /usr/include/apr
43 %define _datadir /usr/share/apr
46 The mission of the Apache Portable Runtime (APR) project is to create
47 and maintain software libraries that provide a predictable and
48 consistent interface to underlying platform-specific implementations.
49 The primary goal is to provide an API to which software developers may
50 code and be assured of predictable if not identical behaviour
51 regardless of the platform on which their software is built, relieving
52 them of the need to code special-case conditions to work around or
53 take advantage of platform-specific deficiencies or features.
55 %description -l pl.UTF-8
56 Celem projektu APR (Apache Portable Runtime) jest stworzenie i
57 utrzymywanie bibliotek dostarczających przewidywalnego i spójnego
58 interfejsu do leżących u podstaw implementacji zależnych od platformy.
59 Głównym celem jest dostarczenie API, którego mogą używać programiści
60 mając pewność, że zachowuje się w sposób przewidywalny, jeśli nie
61 identyczny, niezależnie od platformy na jakiej oprogramowanie jest
62 budowane oraz bez potrzeby kodowania specjalnych warunków do
63 obchodzenia lub wykorzystywania specyficznych dla platform różnic lub
67 Summary: Header files and development documentation for apr
68 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr
69 Group: Development/Libraries
70 Requires: %{name} = %{epoch}:%{version}-%{release}
72 %if "%{pld_release}" != "ac"
73 Requires: libtool >= 2:2.2
77 Requires: libuuid-devel
78 Requires: python-modules
81 Header files and development documentation for apr.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe i dokumentacja programisty do apr.
87 Summary: Static apr library
88 Summary(pl.UTF-8): Statyczna biblioteka apr
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
95 %description static -l pl.UTF-8
96 Statyczna biblioteka apr.
104 cat >> config.layout <<'EOF'
107 libexecdir: %{_libdir}/apr
108 installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
109 localstatedir: /var/run
111 libsuffix: -${APR_MAJOR_VERSION}
116 install /usr/share/automake/config.* build
120 --enable-layout=PLD \
121 %ifarch %{ix86} %{x8664}
123 --enable-nonportable-atomics \
127 --with-devrandom=/dev/urandom
130 %{?with_tests:%{__make} -j1 test}
133 rm -rf $RPM_BUILD_ROOT
136 DESTDIR=$RPM_BUILD_ROOT
138 mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
139 install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
140 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
141 if [ -f /usr/share/libtool/config/ltmain.sh ]; then
142 ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
144 ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
146 ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
147 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
149 sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
150 $RPM_BUILD_ROOT%{_bindir}/apr-1-config
151 sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
152 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
153 sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
156 rm -rf $RPM_BUILD_ROOT
158 %post -p /sbin/ldconfig
159 %postun -p /sbin/ldconfig
162 %defattr(644,root,root,755)
163 %doc CHANGES docs/*.html
164 %attr(755,root,root) %{_libdir}/libapr-1.so.*.*.*
165 %attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/apr-1-config
170 %attr(755,root,root) %{_libdir}/libapr-1.so
171 %{_libdir}/libapr-1.la
175 %dir %{_datadir}/build
176 %{_datadir}/build/*.mk
177 %{_datadir}/build/*.m4
178 %{_datadir}/build/*.awk
179 %attr(755,root,root) %{_datadir}/build/config.*
180 %attr(755,root,root) %{_datadir}/build/*.sh
181 %attr(755,root,root) %{_datadir}/build/libtool
182 %attr(755,root,root) %{_datadir}/build/gen-build.py
184 %{_pkgconfigdir}/apr-1.pc
187 %defattr(644,root,root,755)
188 %{_libdir}/libapr-1.a