1 %define snap 20030913101709
2 Summary: Apache Portable Runtime
9 # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
10 Source0: http://cvs.apache.org/snapshots/apr/%{name}_%{snap}.tar.gz
11 # Source0-md5: d14874964cd7f686594534d9e949eaee
12 URL: http://apr.apache.org/
13 BuildRequires: libtool
14 BuildRequires: autoconf
15 BuildRequires: perl-base
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _includedir /usr/include/apr
19 %define _datadir /usr/share/apr
22 The mission of the Apache Portable Runtime (APR) project is to create
23 and maintain software libraries that provide a predictable and
24 consistent interface to underlying platform-specific implementations.
25 The primary goal is to provide an API to which software developers may
26 code and be assured of predictable if not identical behaviour
27 regardless of the platform on which their software is built, relieving
28 them of the need to code special-case conditions to work around or
29 take advantage of platform-specific deficiencies or features.
32 Summary: Header files and develpment documentation for apr
33 Group: Development/Libraries
34 Requires: %{name} = %{epoch}:%{version}
38 Header files and develpment documentation for apr.
41 Summary: Static apr library
42 Group: Development/Libraries
43 Requires: %{name}-devel = %{epoch}:%{version}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
65 install build/{*apr*.m4,*.awk,*.sh,config.*} $RPM_BUILD_ROOT%{_datadir}/build
67 perl -pi -e "s#$RPM_BUILD_DIR/%{name}#%{_datadir}#g" $RPM_BUILD_ROOT%{_bindir}/*
68 perl -pi -e "s#$RPM_BUILD_DIR/%{name}.*#%{_datadir}/build#g" $RPM_BUILD_ROOT%{_datadir}/build/*
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc CHANGES STATUS docs/*.html
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/*
84 %attr(755,root,root) %{_libdir}/lib*.so
89 %dir %{_datadir}/build
90 %{_datadir}/build/*.mk
91 %{_datadir}/build/*.m4
92 %{_datadir}/build/*.awk
93 %attr(755,root,root) %{_datadir}/build/config.*
94 %attr(755,root,root) %{_datadir}/build/*.sh
95 %attr(755,root,root) %{_datadir}/build/libtool
98 %defattr(644,root,root,755)