]> git.pld-linux.org Git - packages/apr.git/blame - apr.spec
- add m4 macros which are later used by apr-util
[packages/apr.git] / apr.spec
CommitLineData
6797c900 1%define snap 20030913101709
f3bf17ad
AM
2Summary: Apache Portable Runtime
3Name: apr
6797c900 4Version: 0.9.4
8c18c9a9 5Release: 0.%{snap}.2
f3bf17ad
AM
6Epoch: 1
7License: GPL
8Group: Libraries
6797c900
AM
9# http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
10Source0: http://cvs.apache.org/snapshots/apr/%{name}_%{snap}.tar.gz
11# Source0-md5: d14874964cd7f686594534d9e949eaee
f3bf17ad 12URL: http://apr.apache.org/
6797c900
AM
13BuildRequires: libtool
14BuildRequires: autoconf
8c18c9a9 15BuildRequires: perl-base
f3bf17ad
AM
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%define _includedir /usr/include/apr
19%define _datadir /usr/share/apr
20
21%description
22The mission of the Apache Portable Runtime (APR) project is to create
23and maintain software libraries that provide a predictable and
24consistent interface to underlying platform-specific implementations.
25The primary goal is to provide an API to which software developers may
26code and be assured of predictable if not identical behaviour
27regardless of the platform on which their software is built, relieving
28them of the need to code special-case conditions to work around or
29take advantage of platform-specific deficiencies or features.
30
31%package devel
32Summary: Header files and develpment documentation for apr
33Group: Development/Libraries
34Requires: %{name} = %{epoch}:%{version}
35Requires: libtool
36
37%description devel
cb405164 38Header files and develpment documentation for apr.
f3bf17ad
AM
39
40%package static
41Summary: Static apr library
42Group: Development/Libraries
43Requires: %{name}-devel = %{epoch}:%{version}
44
45%description static
46Static apr library.
47
48%prep
6797c900 49%setup -q -n %{name}
f3bf17ad
AM
50
51%build
6797c900 52./buildconf
f3bf17ad
AM
53%configure \
54 --enable-threads
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
62
63ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
64
8c18c9a9
AM
65install build/*apr*.m4 $RPM_BUILD_ROOT%{_datadir}/build
66
67perl -pi -e "s#$RPM_BUILD_DIR/%{name}.*#%{_datadir}/%{name}#g" $RPM_BUILD_ROOT%{_datadir}/build/*
68
f3bf17ad
AM
69%post -p /sbin/ldconfig
70%postun -p /sbin/ldconfig
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc CHANGES STATUS docs/*.html
78%attr(755,root,root) %{_libdir}/lib*.so.*.*
79
80%files devel
81%defattr(644,root,root,755)
82%attr(755,root,root) %{_bindir}/*
83%attr(755,root,root) %{_libdir}/lib*.so
84%{_libdir}/lib*.la
85%{_libdir}/apr.exp
86%{_includedir}
87%dir %{_datadir}
88%dir %{_datadir}/build
89%{_datadir}/build/*.mk
8c18c9a9 90%{_datadir}/build/*.m4
f3bf17ad
AM
91%attr(755,root,root) %{_datadir}/build/libtool
92
93%files static
94%defattr(644,root,root,755)
95%{_libdir}/lib*.a
This page took 0.054262 seconds and 4 git commands to generate.