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