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