1 Summary: Apache Portable Runtime
2 Summary(pl): Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
9 Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
10 # Source0-md5: c573f1b3046991a2624002398b078ad5
11 Patch0: %{name}-link.patch
12 Patch1: %{name}-metuxmpm.patch
13 Patch2: %{name}-libtool.patch
14 URL: http://apr.apache.org/
15 BuildRequires: autoconf >= 2.13
16 BuildRequires: automake
17 BuildRequires: libtool >= 1.3.3
18 BuildRequires: libuuid-devel
19 BuildRequires: sed >= 4.0
21 BuildRequires: uname(release) >= 2.6
22 Requires: uname(release) >= 2.6
24 Conflicts: kernel24-smp
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _includedir /usr/include/apr
28 %define _datadir /usr/share/apr
31 The mission of the Apache Portable Runtime (APR) project is to create
32 and maintain software libraries that provide a predictable and
33 consistent interface to underlying platform-specific implementations.
34 The primary goal is to provide an API to which software developers may
35 code and be assured of predictable if not identical behaviour
36 regardless of the platform on which their software is built, relieving
37 them of the need to code special-case conditions to work around or
38 take advantage of platform-specific deficiencies or features.
41 Celem projektu APR (Apache Portable Runtime) jest stworzenie i
42 utrzymywanie bibliotek dostarczaj±cych przewidywalnego i spójnego
43 interfejsu do le¿±cych u podstaw implementacji zale¿nych od platformy.
44 G³ównym celem jest dostarczenie API, którego mog± u¿ywaæ programi¶ci
45 maj±c pewno¶æ, ¿e zachowuje siê w sposób przewidywalny, je¶li nie
46 identyczny, niezale¿nie od platformy na jakiej oprogramowanie jest
47 budowane oraz bez potrzeby kodowania specjalnych warunków do
48 obchodzenia lub wykorzystywania specyficznych dla platform ró¿nic lub
52 Summary: Header files and development documentation for apr
53 Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do apr
54 Group: Development/Libraries
55 Requires: %{name} = %{epoch}:%{version}-%{release}
56 Requires: libuuid-devel
61 Header files and development documentation for apr.
63 %description devel -l pl
64 Pliki nag³ówkowe i dokumentacja programisty do apr.
67 Summary: Static apr library
68 Summary(pl): Statyczna biblioteka apr
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
75 %description static -l pl
76 Statyczna biblioteka apr.
84 cat >> config.layout <<'EOF'
87 libexecdir: %{_libdir}/apr
88 installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
89 localstatedir: /var/run
91 libsuffix: -${APR_MAJOR_VERSION}
96 install /usr/share/automake/config.* build
100 %ifarch %{ix86} %{i8664}
102 --enable-nonportable-atomics \
106 --with-devrandom=/dev/urandom
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
117 mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
118 install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
119 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
120 ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
121 ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
122 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
124 sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
125 $RPM_BUILD_ROOT%{_bindir}/apr-1-config
126 sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
127 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
128 sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
131 rm -rf $RPM_BUILD_ROOT
133 %post -p /sbin/ldconfig
134 %postun -p /sbin/ldconfig
137 %defattr(644,root,root,755)
138 %doc CHANGES docs/*.html
139 %attr(755,root,root) %{_libdir}/lib*.so.*.*
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/*
144 %attr(755,root,root) %{_libdir}/lib*.so
149 %dir %{_datadir}/build
150 %{_datadir}/build/*.mk
151 %{_datadir}/build/*.m4
152 %{_datadir}/build/*.awk
153 %attr(755,root,root) %{_datadir}/build/config.*
154 %attr(755,root,root) %{_datadir}/build/*.sh
155 %attr(755,root,root) %{_datadir}/build/libtool
156 %attr(755,root,root) %{_datadir}/build/gen-build.py
158 %{_pkgconfigdir}/apr-1.pc
161 %defattr(644,root,root,755)