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.gz
10 # Source0-md5: e153fda2df2338250548448c7a6e3d59
11 Patch0: %{name}-link.patch
12 Patch1: %{name}-metuxmpm.patch
13 # EPOLL PATCH: TO BE DROPPED AFTER AC
14 Patch2: %{name}-no-epoll.patch
15 URL: http://apr.apache.org/
16 BuildRequires: autoconf >= 2.13
17 BuildRequires: automake
18 BuildRequires: libtool >= 1.3.3
19 BuildRequires: libuuid-devel
20 BuildRequires: perl-base
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _includedir /usr/include/apr
25 %define _datadir /usr/share/apr
28 The mission of the Apache Portable Runtime (APR) project is to create
29 and maintain software libraries that provide a predictable and
30 consistent interface to underlying platform-specific implementations.
31 The primary goal is to provide an API to which software developers may
32 code and be assured of predictable if not identical behaviour
33 regardless of the platform on which their software is built, relieving
34 them of the need to code special-case conditions to work around or
35 take advantage of platform-specific deficiencies or features.
38 Celem projektu APR (Apache Portable Runtime) jest stworzenie i
39 utrzymywanie bibliotek dostarczaj±cych przewidywalnego i spójnego
40 interfejsu do le¿±cych u podstaw implementacji zale¿nych od platformy.
41 G³ównym celem jest dostarczenie API, którego mog± u¿ywaæ programi¶ci
42 maj±c pewno¶æ, ¿e zachowuje siê w sposób przewidywalny, je¶li nie
43 identyczny, niezale¿nie od platformy na jakiej oprogramowanie jest
44 budowane oraz bez potrzeby kodowania specjalnych warunków do
45 obchodzenia lub wykorzystywania specyficznych dla platform ró¿nic lub
49 Summary: Header files and development documentation for apr
50 Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do apr
51 Group: Development/Libraries
52 Requires: %{name} = %{epoch}:%{version}-%{release}
53 Requires: libuuid-devel
56 Header files and development documentation for apr.
58 %description devel -l pl
59 Pliki nag³ówkowe i dokumentacja programisty do apr.
62 Summary: Static apr library
63 Summary(pl): Statyczna biblioteka apr
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
70 %description static -l pl
71 Statyczna biblioteka apr.
80 install /usr/share/automake/config.* build
82 # 2.4 kernels on sparc do not support sendfile64
85 ac_cv_func_sendfile64=no \
87 --with-devrandom=/dev/urandom \
90 --enable-nonportable-atomics \
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
104 mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
105 install build/{*apr*.m4,*.awk,*.sh,config.*} $RPM_BUILD_ROOT%{_datadir}/build
106 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
108 %{__perl} -pi -e 's@^(APR_SOURCE_DIR=).*@$1"%{_datadir}"@' $RPM_BUILD_ROOT%{_bindir}/apr-config
109 %{__perl} -pi -e 's@^(apr_builddir|apr_builders)=.*@$1=%{_datadir}/build-1@' \
110 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc CHANGES docs/*.html
121 %attr(755,root,root) %{_libdir}/lib*.so.*.*
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_libdir}/lib*.so
131 %dir %{_datadir}/build
132 %{_datadir}/build/*.mk
133 %{_datadir}/build/*.m4
134 %{_datadir}/build/*.awk
135 %attr(755,root,root) %{_datadir}/build/config.*
136 %attr(755,root,root) %{_datadir}/build/*.sh
137 %attr(755,root,root) %{_datadir}/build/libtool
139 %{_pkgconfigdir}/apr-1.pc
142 %defattr(644,root,root,755)