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