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