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