]> git.pld-linux.org Git - packages/apr.git/blame - apr.spec
- rel 11; if ossp-uuid-devel was installed then wrong uuid.h was used at configure...
[packages/apr.git] / apr.spec
CommitLineData
7bcdeaec 1%bcond_with tests
f3bf17ad 2Summary: Apache Portable Runtime
e51e866d 3Summary(pl.UTF-8): Apache Portable Runtime - przenośna biblioteka uruchomieniowa
f3bf17ad 4Name: apr
d9cfa95e 5Version: 1.3.3
97865247 6Release: 11
f3bf17ad 7Epoch: 1
b34d84ea 8License: Apache v2.0
f3bf17ad 9Group: Libraries
55e3eaa9 10Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
d9cfa95e 11# Source0-md5: 2090c21dee4f0eb1512604127dcd158f
9e32e98f
JB
12Patch0: %{name}-link.patch
13Patch1: %{name}-metuxmpm.patch
e0b90f27 14Patch2: %{name}-libtool.patch
855204ca 15Patch3: %{name}-bug-46425.patch
f3bf17ad 16URL: http://apr.apache.org/
3c7d7510 17BuildRequires: autoconf >= 2.50
c7edcef5 18BuildRequires: automake
1c519bd4 19BuildRequires: glibc-devel >= 6:2.9
df8efb25 20%if "%{pld_release}" != "ac"
1b25cd0a 21BuildRequires: libtool >= 2:2.2
df8efb25
ER
22%else
23BuildRequires: libtool
24%endif
69f0f35f 25BuildRequires: libuuid-devel
9e32e98f 26BuildRequires: python
df8efb25 27BuildRequires: rpm >= 4.4.9-56
7bac6e65 28BuildRequires: rpm-pythonprov
df8efb25
ER
29BuildRequires: sed >= 4.0
30%if "%{pld_release}" != "ac"
1c519bd4 31BuildRequires: uname(release) >= 2.6
e6b13a24 32Requires: uname(release) >= 2.6.13
df8efb25 33%endif
97865247
AM
34# uuid.h misdetected from this one instead of libuuid-devel
35BuildConflicts: ossp-uuid-devel < 1.6.2-6
52336182
JB
36Conflicts: kernel24
37Conflicts: kernel24-smp
f3bf17ad
AM
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%define _includedir /usr/include/apr
41%define _datadir /usr/share/apr
42
43%description
44The mission of the Apache Portable Runtime (APR) project is to create
45and maintain software libraries that provide a predictable and
46consistent interface to underlying platform-specific implementations.
47The primary goal is to provide an API to which software developers may
48code and be assured of predictable if not identical behaviour
49regardless of the platform on which their software is built, relieving
50them of the need to code special-case conditions to work around or
51take advantage of platform-specific deficiencies or features.
52
a79d9376 53%description -l pl.UTF-8
b4838f76 54Celem projektu APR (Apache Portable Runtime) jest stworzenie i
a79d9376
JR
55utrzymywanie bibliotek dostarczających przewidywalnego i spójnego
56interfejsu do leżących u podstaw implementacji zależnych od platformy.
57Głównym celem jest dostarczenie API, którego mogą używać programiści
58mając pewność, że zachowuje się w sposób przewidywalny, jeśli nie
59identyczny, niezależnie od platformy na jakiej oprogramowanie jest
60budowane oraz bez potrzeby kodowania specjalnych warunków do
61obchodzenia lub wykorzystywania specyficznych dla platform różnic lub
62możliwości.
b4838f76 63
f3bf17ad 64%package devel
b4838f76 65Summary: Header files and development documentation for apr
e51e866d 66Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr
f3bf17ad 67Group: Development/Libraries
b4838f76 68Requires: %{name} = %{epoch}:%{version}-%{release}
d53f5760 69Requires: automake
df8efb25 70%if "%{pld_release}" != "ac"
1b25cd0a 71Requires: libtool >= 2:2.2
df8efb25
ER
72%else
73Requires: libtool
74%endif
d9cfa95e 75Requires: libuuid-devel
7bac6e65 76Requires: python-modules
f3bf17ad
AM
77
78%description devel
b4838f76
JB
79Header files and development documentation for apr.
80
a79d9376
JR
81%description devel -l pl.UTF-8
82Pliki nagłówkowe i dokumentacja programisty do apr.
f3bf17ad
AM
83
84%package static
85Summary: Static apr library
e51e866d 86Summary(pl.UTF-8): Statyczna biblioteka apr
f3bf17ad 87Group: Development/Libraries
b4838f76 88Requires: %{name}-devel = %{epoch}:%{version}-%{release}
f3bf17ad
AM
89
90%description static
91Static apr library.
92
a79d9376 93%description static -l pl.UTF-8
b4838f76
JB
94Statyczna 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
103cat >> config.layout <<'EOF'
104<Layout PLD>
105sbindir: %{_sbindir}
106libexecdir: %{_libdir}/apr
107installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
108localstatedir: /var/run
109runtimedir: /var/run
110libsuffix: -${APR_MAJOR_VERSION}
2523b113 111</Layout>
13f3c811
JB
112EOF
113
f3bf17ad 114%build
b34d84ea 115install /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
132rm -rf $RPM_BUILD_ROOT
133
134%{__make} install \
135 DESTDIR=$RPM_BUILD_ROOT
136
9e32e98f 137mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
16773349 138install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
d53f5760 139ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
d522858e
ER
140if [ -f /usr/share/libtool/config/ltmain.sh ]; then
141 ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
142else
143 ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
144fi
d53f5760 145ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
9e32e98f 146ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
8c18c9a9 147
16773349
ER
148sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
149 $RPM_BUILD_ROOT%{_bindir}/apr-1-config
150sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
9e32e98f 151 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
16773349 152sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
f3bf17ad
AM
153
154%clean
155rm -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
This page took 0.071967 seconds and 4 git commands to generate.