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