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