]> git.pld-linux.org Git - packages/apr.git/blob - apr.spec
77cfe22bf8bedf78caf23685fbd53cb111e5e7df
[packages/apr.git] / apr.spec
1 %define snap    20030913101709
2 Summary:        Apache Portable Runtime
3 Name:           apr
4 Version:        0.9.4
5 Release:        0.%{snap}.1
6 Epoch:          1
7 License:        GPL
8 Group:          Libraries
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:  automake
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _includedir     /usr/include/apr
19 %define         _datadir        /usr/share/apr
20
21 %description
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.
30
31 %package devel
32 Summary:        Header files and develpment documentation for apr
33 Group:          Development/Libraries
34 Requires:       %{name} = %{epoch}:%{version}
35 Requires:       libtool
36
37 %description devel
38 Header files and develpment documentation for apr.
39
40 %package static
41 Summary:        Static apr library
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{epoch}:%{version}
44
45 %description static
46 Static apr library.
47
48 %prep
49 %setup  -q -n %{name}
50
51 %build
52 ./buildconf
53 %configure \
54         --enable-threads
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
64
65 %post   -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc CHANGES STATUS docs/*.html
74 %attr(755,root,root) %{_libdir}/lib*.so.*.*
75
76 %files devel
77 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/*
79 %attr(755,root,root) %{_libdir}/lib*.so
80 %{_libdir}/lib*.la
81 %{_libdir}/apr.exp
82 %{_includedir}
83 %dir %{_datadir}
84 %dir %{_datadir}/build
85 %{_datadir}/build/*.mk
86 %attr(755,root,root) %{_datadir}/build/libtool
87
88 %files static
89 %defattr(644,root,root,755)
90 %{_libdir}/lib*.a
This page took 0.511354 seconds and 2 git commands to generate.