]> git.pld-linux.org Git - packages/apr.git/blame - apr.spec
- release 3
[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
189dd832 5Release: 3
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
f3bf17ad 14URL: http://apr.apache.org/
3c7d7510 15BuildRequires: autoconf >= 2.50
c7edcef5 16BuildRequires: automake
df8efb25 17%if "%{pld_release}" != "ac"
1b25cd0a 18BuildRequires: libtool >= 2:2.2
df8efb25
ER
19%else
20BuildRequires: libtool
21%endif
69f0f35f 22BuildRequires: libuuid-devel
9e32e98f 23BuildRequires: python
df8efb25 24BuildRequires: rpm >= 4.4.9-56
7bac6e65 25BuildRequires: rpm-pythonprov
df8efb25
ER
26BuildRequires: sed >= 4.0
27%if "%{pld_release}" != "ac"
93f96529
JB
28BuildRequires: uname(release) >= 2.6
29Requires: uname(release) >= 2.6
df8efb25 30%endif
52336182
JB
31Conflicts: kernel24
32Conflicts: kernel24-smp
f3bf17ad
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
a79d9376 48%description -l pl.UTF-8
b4838f76 49Celem projektu APR (Apache Portable Runtime) jest stworzenie i
a79d9376
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.
b4838f76 58
f3bf17ad 59%package devel
b4838f76 60Summary: Header files and development documentation for apr
e51e866d 61Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr
f3bf17ad 62Group: Development/Libraries
b4838f76 63Requires: %{name} = %{epoch}:%{version}-%{release}
d53f5760 64Requires: automake
df8efb25 65%if "%{pld_release}" != "ac"
1b25cd0a 66Requires: libtool >= 2:2.2
df8efb25
ER
67%else
68Requires: libtool
69%endif
d9cfa95e 70Requires: libuuid-devel
7bac6e65 71Requires: python-modules
f3bf17ad
AM
72
73%description devel
b4838f76
JB
74Header files and development documentation for apr.
75
a79d9376
JR
76%description devel -l pl.UTF-8
77Pliki nagłówkowe i dokumentacja programisty do apr.
f3bf17ad
AM
78
79%package static
80Summary: Static apr library
e51e866d 81Summary(pl.UTF-8): Statyczna biblioteka apr
f3bf17ad 82Group: Development/Libraries
b4838f76 83Requires: %{name}-devel = %{epoch}:%{version}-%{release}
f3bf17ad
AM
84
85%description static
86Static apr library.
87
a79d9376 88%description static -l pl.UTF-8
b4838f76
JB
89Statyczna biblioteka apr.
90
f3bf17ad 91%prep
af4e4c47 92%setup -q
9e32e98f
JB
93%patch0 -p1
94%patch1 -p1
e0b90f27 95%patch2 -p1
f3bf17ad 96
13f3c811
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}
2523b113 105</Layout>
13f3c811
JB
106EOF
107
f3bf17ad 108%build
b34d84ea 109install /usr/share/automake/config.* build
cb4191bc 110%{__autoconf}
2523b113 111
f3bf17ad 112%configure \
13f3c811 113 --enable-layout=PLD \
3c7d7510 114%ifarch %{ix86} %{x8664}
02a2518a 115%ifnarch i386
116 --enable-nonportable-atomics \
117%endif
118%endif
13f3c811
JB
119 --enable-threads \
120 --with-devrandom=/dev/urandom
f3bf17ad
AM
121%{__make}
122
123%install
124rm -rf $RPM_BUILD_ROOT
125
126%{__make} install \
127 DESTDIR=$RPM_BUILD_ROOT
128
9e32e98f 129mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
16773349 130install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
d53f5760 131ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
d522858e
ER
132if [ -f /usr/share/libtool/config/ltmain.sh ]; then
133 ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
134else
135 ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
136fi
d53f5760 137ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
9e32e98f 138ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
8c18c9a9 139
16773349
ER
140sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
141 $RPM_BUILD_ROOT%{_bindir}/apr-1-config
142sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
9e32e98f 143 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
16773349 144sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
f3bf17ad
AM
145
146%clean
147rm -rf $RPM_BUILD_ROOT
148
b4838f76
JB
149%post -p /sbin/ldconfig
150%postun -p /sbin/ldconfig
151
f3bf17ad
AM
152%files
153%defattr(644,root,root,755)
023f96c0 154%doc CHANGES docs/*.html
7a48bef9
JB
155%attr(755,root,root) %{_libdir}/libapr-1.so.*.*.*
156%attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0
f3bf17ad
AM
157
158%files devel
159%defattr(644,root,root,755)
7a48bef9
JB
160%attr(755,root,root) %{_bindir}/apr-1-config
161%attr(755,root,root) %{_libdir}/libapr-1.so
162%{_libdir}/libapr-1.la
f3bf17ad
AM
163%{_libdir}/apr.exp
164%{_includedir}
165%dir %{_datadir}
9e32e98f
JB
166%dir %{_datadir}/build
167%{_datadir}/build/*.mk
168%{_datadir}/build/*.m4
169%{_datadir}/build/*.awk
170%attr(755,root,root) %{_datadir}/build/config.*
171%attr(755,root,root) %{_datadir}/build/*.sh
172%attr(755,root,root) %{_datadir}/build/libtool
16773349 173%attr(755,root,root) %{_datadir}/build/gen-build.py
9e32e98f 174%{_datadir}/build-1
af4e4c47 175%{_pkgconfigdir}/apr-1.pc
f3bf17ad
AM
176
177%files static
178%defattr(644,root,root,755)
7a48bef9 179%{_libdir}/libapr-1.a
This page took 0.104028 seconds and 4 git commands to generate.