]>
Commit | Line | Data |
---|---|---|
9439f6b5 | 1 | # This spec is for kernels < 2.6.27 since apr.spec uses new features |
aa043b3e | 2 | Summary: Apache Portable Runtime |
f1b7500c | 3 | Summary(pl.UTF-8): Apache Portable Runtime - przenośna biblioteka uruchomieniowa |
9439f6b5 | 4 | Name: apr-compat |
996dcc7c | 5 | Version: 1.3.3 |
9439f6b5 | 6 | Release: 1 |
aa043b3e | 7 | Epoch: 1 |
7c2baffc | 8 | License: Apache v2.0 |
aa043b3e | 9 | Group: Libraries |
9439f6b5 | 10 | Source0: http://www.apache.org/dist/apr/apr-%{version}.tar.bz2 |
996dcc7c | 11 | # Source0-md5: 2090c21dee4f0eb1512604127dcd158f |
9439f6b5 AM |
12 | Patch0: apr-link.patch |
13 | Patch1: apr-metuxmpm.patch | |
14 | Patch2: apr-libtool.patch | |
aa043b3e | 15 | URL: http://apr.apache.org/ |
c8890f32 | 16 | BuildRequires: autoconf >= 2.50 |
b3a26a22 | 17 | BuildRequires: automake |
a460b685 | 18 | BuildRequires: libtool >= 2:2.2 |
25e4131c | 19 | BuildRequires: libuuid-devel |
383955f9 | 20 | BuildRequires: python |
9921c345 | 21 | BuildRequires: rpm >= 4.4.9-56 |
95a16d81 | 22 | BuildRequires: rpm-pythonprov |
9921c345 | 23 | BuildRequires: sed >= 4.0 |
9439f6b5 AM |
24 | BuildRequires: uname(release) >= 2.6 |
25 | Requires: uname(release) >= 2.6 | |
87884238 JB |
26 | Conflicts: kernel24 |
27 | Conflicts: kernel24-smp | |
9439f6b5 | 28 | Provides: apr = %{epoch}:%{version}-%{release} |
aa043b3e AM |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %define _includedir /usr/include/apr | |
32 | %define _datadir /usr/share/apr | |
33 | ||
34 | %description | |
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. | |
43 | ||
a683a452 | 44 | %description -l pl.UTF-8 |
5ddf8417 | 45 | Celem projektu APR (Apache Portable Runtime) jest stworzenie i |
a683a452 JR |
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 | |
53 | możliwości. | |
5ddf8417 | 54 | |
aa043b3e | 55 | %package devel |
5ddf8417 | 56 | Summary: Header files and development documentation for apr |
f1b7500c | 57 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr |
aa043b3e | 58 | Group: Development/Libraries |
5ddf8417 | 59 | Requires: %{name} = %{epoch}:%{version}-%{release} |
66eb9141 | 60 | Requires: automake |
a460b685 | 61 | Requires: libtool >= 2:2.2 |
996dcc7c | 62 | Requires: libuuid-devel |
95a16d81 | 63 | Requires: python-modules |
9439f6b5 | 64 | Provides: apr-devel = %{epoch}:%{version}-%{release} |
aa043b3e AM |
65 | |
66 | %description devel | |
5ddf8417 JB |
67 | Header files and development documentation for apr. |
68 | ||
a683a452 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe i dokumentacja programisty do apr. | |
aa043b3e AM |
71 | |
72 | %package static | |
73 | Summary: Static apr library | |
f1b7500c | 74 | Summary(pl.UTF-8): Statyczna biblioteka apr |
aa043b3e | 75 | Group: Development/Libraries |
5ddf8417 | 76 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
9439f6b5 | 77 | Provides: apr-static = %{epoch}:%{version}-%{release} |
aa043b3e AM |
78 | |
79 | %description static | |
80 | Static apr library. | |
81 | ||
a683a452 | 82 | %description static -l pl.UTF-8 |
5ddf8417 JB |
83 | Statyczna biblioteka apr. |
84 | ||
aa043b3e | 85 | %prep |
9439f6b5 | 86 | %setup -q -n apr-%{version} |
383955f9 JB |
87 | %patch0 -p1 |
88 | %patch1 -p1 | |
558fd11d | 89 | %patch2 -p1 |
aa043b3e | 90 | |
e47427ff JB |
91 | cat >> config.layout <<'EOF' |
92 | <Layout PLD> | |
93 | sbindir: %{_sbindir} | |
94 | libexecdir: %{_libdir}/apr | |
95 | installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION} | |
96 | localstatedir: /var/run | |
97 | runtimedir: /var/run | |
98 | libsuffix: -${APR_MAJOR_VERSION} | |
ebbd8403 | 99 | </Layout> |
e47427ff JB |
100 | EOF |
101 | ||
aa043b3e | 102 | %build |
7c2baffc | 103 | install /usr/share/automake/config.* build |
bb7ef45e | 104 | %{__autoconf} |
ebbd8403 | 105 | |
aa043b3e | 106 | %configure \ |
e47427ff | 107 | --enable-layout=PLD \ |
c8890f32 | 108 | %ifarch %{ix86} %{x8664} |
b1cc14fd | 109 | %ifnarch i386 |
110 | --enable-nonportable-atomics \ | |
111 | %endif | |
112 | %endif | |
e47427ff JB |
113 | --enable-threads \ |
114 | --with-devrandom=/dev/urandom | |
aa043b3e AM |
115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %{__make} install \ | |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
383955f9 | 123 | mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build |
c06936cc | 124 | install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build |
66eb9141 | 125 | ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build |
9a4f6bc1 ER |
126 | if [ -f /usr/share/libtool/config/ltmain.sh ]; then |
127 | ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build | |
128 | else | |
129 | ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build | |
130 | fi | |
66eb9141 | 131 | ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build |
383955f9 | 132 | ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1 |
e51f1f66 | 133 | |
c06936cc ER |
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@' \ | |
383955f9 | 137 | $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk |
c06936cc | 138 | sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py |
aa043b3e AM |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
5ddf8417 JB |
143 | %post -p /sbin/ldconfig |
144 | %postun -p /sbin/ldconfig | |
145 | ||
aa043b3e AM |
146 | %files |
147 | %defattr(644,root,root,755) | |
857cdce9 | 148 | %doc CHANGES docs/*.html |
9ef85a5f JB |
149 | %attr(755,root,root) %{_libdir}/libapr-1.so.*.*.* |
150 | %attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0 | |
aa043b3e AM |
151 | |
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
9ef85a5f JB |
154 | %attr(755,root,root) %{_bindir}/apr-1-config |
155 | %attr(755,root,root) %{_libdir}/libapr-1.so | |
156 | %{_libdir}/libapr-1.la | |
aa043b3e AM |
157 | %{_libdir}/apr.exp |
158 | %{_includedir} | |
159 | %dir %{_datadir} | |
383955f9 JB |
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 | |
c06936cc | 167 | %attr(755,root,root) %{_datadir}/build/gen-build.py |
383955f9 | 168 | %{_datadir}/build-1 |
ccf81851 | 169 | %{_pkgconfigdir}/apr-1.pc |
aa043b3e AM |
170 | |
171 | %files static | |
172 | %defattr(644,root,root,755) | |
9ef85a5f | 173 | %{_libdir}/libapr-1.a |