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