]> git.pld-linux.org Git - packages/apr.git/blame - apr.spec
- updated to 1.3.0
[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
453fd290
JB
4Version: 1.3.0
5Release: 1
f3bf17ad 6Epoch: 1
b34d84ea 7License: Apache v2.0
f3bf17ad 8Group: Libraries
55e3eaa9 9Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
453fd290 10# Source0-md5: 27d8fc8b13f8ea1a40e6796e7453bd84
9e32e98f
JB
11Patch0: %{name}-link.patch
12Patch1: %{name}-metuxmpm.patch
e0b90f27 13Patch2: %{name}-libtool.patch
f3bf17ad 14URL: http://apr.apache.org/
b4838f76 15BuildRequires: autoconf >= 2.13
c7edcef5 16BuildRequires: automake
1b25cd0a 17BuildRequires: libtool >= 2:2.2
69f0f35f 18BuildRequires: libuuid-devel
16773349 19BuildRequires: sed >= 4.0
9e32e98f 20BuildRequires: python
93f96529
JB
21BuildRequires: uname(release) >= 2.6
22Requires: uname(release) >= 2.6
52336182
JB
23Conflicts: kernel24
24Conflicts: kernel24-smp
f3bf17ad
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
a79d9376 40%description -l pl.UTF-8
b4838f76 41Celem projektu APR (Apache Portable Runtime) jest stworzenie i
a79d9376
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.
b4838f76 50
f3bf17ad 51%package devel
b4838f76 52Summary: Header files and development documentation for apr
e51e866d 53Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr
f3bf17ad 54Group: Development/Libraries
b4838f76 55Requires: %{name} = %{epoch}:%{version}-%{release}
ed7ca4e6 56Requires: libuuid-devel
d53f5760 57Requires: automake
1b25cd0a 58Requires: libtool >= 2:2.2
f3bf17ad
AM
59
60%description devel
b4838f76
JB
61Header files and development documentation for apr.
62
a79d9376
JR
63%description devel -l pl.UTF-8
64Pliki nagłówkowe i dokumentacja programisty do apr.
f3bf17ad
AM
65
66%package static
67Summary: Static apr library
e51e866d 68Summary(pl.UTF-8): Statyczna biblioteka apr
f3bf17ad 69Group: Development/Libraries
b4838f76 70Requires: %{name}-devel = %{epoch}:%{version}-%{release}
f3bf17ad
AM
71
72%description static
73Static apr library.
74
a79d9376 75%description static -l pl.UTF-8
b4838f76
JB
76Statyczna biblioteka apr.
77
f3bf17ad 78%prep
af4e4c47 79%setup -q
9e32e98f
JB
80%patch0 -p1
81%patch1 -p1
e0b90f27 82%patch2 -p1
f3bf17ad 83
13f3c811
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}
2523b113 92</Layout>
13f3c811
JB
93EOF
94
f3bf17ad 95%build
b34d84ea 96install /usr/share/automake/config.* build
2523b113 97
f3bf17ad 98%configure \
13f3c811 99 --enable-layout=PLD \
cdfe3071 100%ifarch %{ix86} %{i8664}
02a2518a 101%ifnarch i386
102 --enable-nonportable-atomics \
103%endif
104%endif
13f3c811
JB
105 --enable-threads \
106 --with-devrandom=/dev/urandom
f3bf17ad
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
9e32e98f 117mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
16773349 118install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
d53f5760 119ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
b2afd6a1 120ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
d53f5760 121ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
9e32e98f 122ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
8c18c9a9 123
16773349
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@' \
9e32e98f 127 $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
16773349 128sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
f3bf17ad
AM
129
130%clean
131rm -rf $RPM_BUILD_ROOT
132
b4838f76
JB
133%post -p /sbin/ldconfig
134%postun -p /sbin/ldconfig
135
f3bf17ad
AM
136%files
137%defattr(644,root,root,755)
023f96c0 138%doc CHANGES docs/*.html
7a48bef9
JB
139%attr(755,root,root) %{_libdir}/libapr-1.so.*.*.*
140%attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0
f3bf17ad
AM
141
142%files devel
143%defattr(644,root,root,755)
7a48bef9
JB
144%attr(755,root,root) %{_bindir}/apr-1-config
145%attr(755,root,root) %{_libdir}/libapr-1.so
146%{_libdir}/libapr-1.la
f3bf17ad
AM
147%{_libdir}/apr.exp
148%{_includedir}
149%dir %{_datadir}
9e32e98f
JB
150%dir %{_datadir}/build
151%{_datadir}/build/*.mk
152%{_datadir}/build/*.m4
153%{_datadir}/build/*.awk
154%attr(755,root,root) %{_datadir}/build/config.*
155%attr(755,root,root) %{_datadir}/build/*.sh
156%attr(755,root,root) %{_datadir}/build/libtool
16773349 157%attr(755,root,root) %{_datadir}/build/gen-build.py
9e32e98f 158%{_datadir}/build-1
af4e4c47 159%{_pkgconfigdir}/apr-1.pc
f3bf17ad
AM
160
161%files static
162%defattr(644,root,root,755)
7a48bef9 163%{_libdir}/libapr-1.a
This page took 2.370347 seconds and 4 git commands to generate.