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