]>
Commit | Line | Data |
---|---|---|
7bcdeaec | 1 | %bcond_with tests |
f3bf17ad | 2 | Summary: Apache Portable Runtime |
e51e866d | 3 | Summary(pl.UTF-8): Apache Portable Runtime - przenośna biblioteka uruchomieniowa |
f3bf17ad | 4 | Name: apr |
d9cfa95e | 5 | Version: 1.3.3 |
e6b13a24 | 6 | Release: 10 |
f3bf17ad | 7 | Epoch: 1 |
b34d84ea | 8 | License: Apache v2.0 |
f3bf17ad | 9 | Group: Libraries |
55e3eaa9 | 10 | Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2 |
d9cfa95e | 11 | # Source0-md5: 2090c21dee4f0eb1512604127dcd158f |
9e32e98f JB |
12 | Patch0: %{name}-link.patch |
13 | Patch1: %{name}-metuxmpm.patch | |
e0b90f27 | 14 | Patch2: %{name}-libtool.patch |
855204ca | 15 | Patch3: %{name}-bug-46425.patch |
f3bf17ad | 16 | URL: http://apr.apache.org/ |
3c7d7510 | 17 | BuildRequires: autoconf >= 2.50 |
c7edcef5 | 18 | BuildRequires: automake |
1c519bd4 | 19 | BuildRequires: glibc-devel >= 6:2.9 |
df8efb25 | 20 | %if "%{pld_release}" != "ac" |
1b25cd0a | 21 | BuildRequires: libtool >= 2:2.2 |
df8efb25 ER |
22 | %else |
23 | BuildRequires: libtool | |
24 | %endif | |
69f0f35f | 25 | BuildRequires: libuuid-devel |
9e32e98f | 26 | BuildRequires: python |
df8efb25 | 27 | BuildRequires: rpm >= 4.4.9-56 |
7bac6e65 | 28 | BuildRequires: rpm-pythonprov |
df8efb25 ER |
29 | BuildRequires: sed >= 4.0 |
30 | %if "%{pld_release}" != "ac" | |
1c519bd4 | 31 | BuildRequires: uname(release) >= 2.6 |
e6b13a24 | 32 | Requires: uname(release) >= 2.6.13 |
df8efb25 | 33 | %endif |
52336182 JB |
34 | Conflicts: kernel24 |
35 | Conflicts: kernel24-smp | |
f3bf17ad AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %define _includedir /usr/include/apr | |
39 | %define _datadir /usr/share/apr | |
40 | ||
41 | %description | |
42 | The mission of the Apache Portable Runtime (APR) project is to create | |
43 | and maintain software libraries that provide a predictable and | |
44 | consistent interface to underlying platform-specific implementations. | |
45 | The primary goal is to provide an API to which software developers may | |
46 | code and be assured of predictable if not identical behaviour | |
47 | regardless of the platform on which their software is built, relieving | |
48 | them of the need to code special-case conditions to work around or | |
49 | take advantage of platform-specific deficiencies or features. | |
50 | ||
a79d9376 | 51 | %description -l pl.UTF-8 |
b4838f76 | 52 | Celem projektu APR (Apache Portable Runtime) jest stworzenie i |
a79d9376 JR |
53 | utrzymywanie bibliotek dostarczających przewidywalnego i spójnego |
54 | interfejsu do leżących u podstaw implementacji zależnych od platformy. | |
55 | Głównym celem jest dostarczenie API, którego mogą używać programiści | |
56 | mając pewność, że zachowuje się w sposób przewidywalny, jeśli nie | |
57 | identyczny, niezależnie od platformy na jakiej oprogramowanie jest | |
58 | budowane oraz bez potrzeby kodowania specjalnych warunków do | |
59 | obchodzenia lub wykorzystywania specyficznych dla platform różnic lub | |
60 | możliwości. | |
b4838f76 | 61 | |
f3bf17ad | 62 | %package devel |
b4838f76 | 63 | Summary: Header files and development documentation for apr |
e51e866d | 64 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr |
f3bf17ad | 65 | Group: Development/Libraries |
b4838f76 | 66 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d53f5760 | 67 | Requires: automake |
df8efb25 | 68 | %if "%{pld_release}" != "ac" |
1b25cd0a | 69 | Requires: libtool >= 2:2.2 |
df8efb25 ER |
70 | %else |
71 | Requires: libtool | |
72 | %endif | |
d9cfa95e | 73 | Requires: libuuid-devel |
7bac6e65 | 74 | Requires: python-modules |
f3bf17ad AM |
75 | |
76 | %description devel | |
b4838f76 JB |
77 | Header files and development documentation for apr. |
78 | ||
a79d9376 JR |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe i dokumentacja programisty do apr. | |
f3bf17ad AM |
81 | |
82 | %package static | |
83 | Summary: Static apr library | |
e51e866d | 84 | Summary(pl.UTF-8): Statyczna biblioteka apr |
f3bf17ad | 85 | Group: Development/Libraries |
b4838f76 | 86 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
f3bf17ad AM |
87 | |
88 | %description static | |
89 | Static apr library. | |
90 | ||
a79d9376 | 91 | %description static -l pl.UTF-8 |
b4838f76 JB |
92 | Statyczna biblioteka apr. |
93 | ||
f3bf17ad | 94 | %prep |
af4e4c47 | 95 | %setup -q |
9e32e98f JB |
96 | %patch0 -p1 |
97 | %patch1 -p1 | |
e0b90f27 | 98 | %patch2 -p1 |
7bcdeaec | 99 | %patch3 -p1 |
f3bf17ad | 100 | |
13f3c811 JB |
101 | cat >> config.layout <<'EOF' |
102 | <Layout PLD> | |
103 | sbindir: %{_sbindir} | |
104 | libexecdir: %{_libdir}/apr | |
105 | installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION} | |
106 | localstatedir: /var/run | |
107 | runtimedir: /var/run | |
108 | libsuffix: -${APR_MAJOR_VERSION} | |
2523b113 | 109 | </Layout> |
13f3c811 JB |
110 | EOF |
111 | ||
f3bf17ad | 112 | %build |
b34d84ea | 113 | install /usr/share/automake/config.* build |
cb4191bc | 114 | %{__autoconf} |
2523b113 | 115 | |
f3bf17ad | 116 | %configure \ |
13f3c811 | 117 | --enable-layout=PLD \ |
3c7d7510 | 118 | %ifarch %{ix86} %{x8664} |
02a2518a | 119 | %ifnarch i386 |
120 | --enable-nonportable-atomics \ | |
121 | %endif | |
122 | %endif | |
13f3c811 JB |
123 | --enable-threads \ |
124 | --with-devrandom=/dev/urandom | |
f3bf17ad AM |
125 | %{__make} |
126 | ||
7bcdeaec AM |
127 | %{?with_tests:%{__make} -j1 test} |
128 | ||
f3bf17ad AM |
129 | %install |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
9e32e98f | 135 | mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build |
16773349 | 136 | install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build |
d53f5760 | 137 | ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build |
d522858e ER |
138 | if [ -f /usr/share/libtool/config/ltmain.sh ]; then |
139 | ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build | |
140 | else | |
141 | ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build | |
142 | fi | |
d53f5760 | 143 | ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build |
9e32e98f | 144 | ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1 |
8c18c9a9 | 145 | |
16773349 ER |
146 | sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \ |
147 | $RPM_BUILD_ROOT%{_bindir}/apr-1-config | |
148 | sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \ | |
9e32e98f | 149 | $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk |
16773349 | 150 | sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py |
f3bf17ad AM |
151 | |
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
b4838f76 JB |
155 | %post -p /sbin/ldconfig |
156 | %postun -p /sbin/ldconfig | |
157 | ||
f3bf17ad AM |
158 | %files |
159 | %defattr(644,root,root,755) | |
023f96c0 | 160 | %doc CHANGES docs/*.html |
7a48bef9 JB |
161 | %attr(755,root,root) %{_libdir}/libapr-1.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0 | |
f3bf17ad AM |
163 | |
164 | %files devel | |
165 | %defattr(644,root,root,755) | |
7a48bef9 JB |
166 | %attr(755,root,root) %{_bindir}/apr-1-config |
167 | %attr(755,root,root) %{_libdir}/libapr-1.so | |
168 | %{_libdir}/libapr-1.la | |
f3bf17ad AM |
169 | %{_libdir}/apr.exp |
170 | %{_includedir} | |
171 | %dir %{_datadir} | |
9e32e98f JB |
172 | %dir %{_datadir}/build |
173 | %{_datadir}/build/*.mk | |
174 | %{_datadir}/build/*.m4 | |
175 | %{_datadir}/build/*.awk | |
176 | %attr(755,root,root) %{_datadir}/build/config.* | |
177 | %attr(755,root,root) %{_datadir}/build/*.sh | |
178 | %attr(755,root,root) %{_datadir}/build/libtool | |
16773349 | 179 | %attr(755,root,root) %{_datadir}/build/gen-build.py |
9e32e98f | 180 | %{_datadir}/build-1 |
af4e4c47 | 181 | %{_pkgconfigdir}/apr-1.pc |
f3bf17ad AM |
182 | |
183 | %files static | |
184 | %defattr(644,root,root,755) | |
7a48bef9 | 185 | %{_libdir}/libapr-1.a |