1 # This spec is for kernels < 2.6.27 since apr.spec uses new features
2 Summary: Apache Portable Runtime
3 Summary(pl.UTF-8): Apache Portable Runtime - przenośna biblioteka uruchomieniowa
10 Source0: http://www.apache.org/dist/apr/apr-%{version}.tar.bz2
11 # Source0-md5: 2090c21dee4f0eb1512604127dcd158f
12 Patch0: apr-link.patch
13 Patch1: apr-metuxmpm.patch
14 Patch2: apr-libtool.patch
15 URL: http://apr.apache.org/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: libtool >= 2:2.2
19 BuildRequires: libuuid-devel
21 BuildRequires: rpm >= 4.4.9-56
22 BuildRequires: rpm-pythonprov
23 BuildRequires: sed >= 4.0
24 BuildRequires: uname(release) >= 2.6
25 Requires: uname(release) >= 2.6
27 Conflicts: kernel24-smp
28 Provides: apr = %{epoch}:%{version}-%{release}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _includedir /usr/include/apr
32 %define _datadir /usr/share/apr
35 The mission of the Apache Portable Runtime (APR) project is to create
36 and maintain software libraries that provide a predictable and
37 consistent interface to underlying platform-specific implementations.
38 The primary goal is to provide an API to which software developers may
39 code and be assured of predictable if not identical behaviour
40 regardless of the platform on which their software is built, relieving
41 them of the need to code special-case conditions to work around or
42 take advantage of platform-specific deficiencies or features.
44 %description -l pl.UTF-8
45 Celem projektu APR (Apache Portable Runtime) jest stworzenie i
46 utrzymywanie bibliotek dostarczających przewidywalnego i spójnego
47 interfejsu do leżących u podstaw implementacji zależnych od platformy.
48 Głównym celem jest dostarczenie API, którego mogą używać programiści
49 mając pewność, że zachowuje się w sposób przewidywalny, jeśli nie
50 identyczny, niezależnie od platformy na jakiej oprogramowanie jest
51 budowane oraz bez potrzeby kodowania specjalnych warunków do
52 obchodzenia lub wykorzystywania specyficznych dla platform różnic lub
56 Summary: Header files and development documentation for apr
57 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr
58 Group: Development/Libraries
59 Requires: %{name} = %{epoch}:%{version}-%{release}
61 Requires: libtool >= 2:2.2
62 Requires: libuuid-devel
63 Requires: python-modules
64 Provides: apr-devel = %{epoch}:%{version}-%{release}
67 Header files and development documentation for apr.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe i dokumentacja programisty do apr.
73 Summary: Static apr library
74 Summary(pl.UTF-8): Statyczna biblioteka apr
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
77 Provides: apr-static = %{epoch}:%{version}-%{release}
82 %description static -l pl.UTF-8
83 Statyczna biblioteka apr.
86 %setup -q -n apr-%{version}
91 cat >> config.layout <<'EOF'
94 libexecdir: %{_libdir}/apr
95 installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
96 localstatedir: /var/run
98 libsuffix: -${APR_MAJOR_VERSION}
103 install /usr/share/automake/config.* build
107 --enable-layout=PLD \
108 %ifarch %{ix86} %{x8664}
110 --enable-nonportable-atomics \
114 --with-devrandom=/dev/urandom
118 rm -rf $RPM_BUILD_ROOT
121 DESTDIR=$RPM_BUILD_ROOT
123 mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
124 install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
125 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
126 if [ -f /usr/share/libtool/config/ltmain.sh ]; then
127 ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
129 ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
131 ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
132 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
134 sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
135 $RPM_BUILD_ROOT%{_bindir}/apr-1-config
136 sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
137 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
138 sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
147 %defattr(644,root,root,755)
148 %doc CHANGES docs/*.html
149 %attr(755,root,root) %{_libdir}/libapr-1.so.*.*.*
150 %attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_bindir}/apr-1-config
155 %attr(755,root,root) %{_libdir}/libapr-1.so
156 %{_libdir}/libapr-1.la
160 %dir %{_datadir}/build
161 %{_datadir}/build/*.mk
162 %{_datadir}/build/*.m4
163 %{_datadir}/build/*.awk
164 %attr(755,root,root) %{_datadir}/build/config.*
165 %attr(755,root,root) %{_datadir}/build/*.sh
166 %attr(755,root,root) %{_datadir}/build/libtool
167 %attr(755,root,root) %{_datadir}/build/gen-build.py
169 %{_pkgconfigdir}/apr-1.pc
172 %defattr(644,root,root,755)
173 %{_libdir}/libapr-1.a