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