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