]> git.pld-linux.org Git - packages/apr-util.git/blob - apr-util.spec
- added link patch to link with used libs
[packages/apr-util.git] / apr-util.spec
1 #
2 # Conditional build:
3 %bcond_without  ldap    # without LDAP support
4 #
5 %define snap    20030913101715
6 Summary:        A companion library to Apache Portable Runtime
7 Summary(pl):    Biblioteka towarzysz±ca Apache Portable Runtime
8 Name:           apr-util
9 Version:        0.9.4
10 Release:        0.%{snap}.2
11 Epoch:          1
12 License:        Apache
13 Group:          Libraries
14 # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
15 Source0:        http://cvs.apache.org/snapshots/apr-util/%{name}_%{snap}.tar.gz
16 # Source0-md5:  00e26d0d77e1265c3bd45d11e9d8457d
17 Patch0:         %{name}-link.patch
18 URL:            http://apr.apache.org/
19 BuildRequires:  apr-devel >= 1:0.9.4
20 BuildRequires:  autoconf
21 BuildRequires:  db-devel
22 BuildRequires:  expat-devel
23 BuildRequires:  gdbm-devel
24 BuildRequires:  libtool
25 %{?with_ldap:BuildRequires:     openldap-devel}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _includedir     /usr/include/apr-util
29
30 %description
31 A companion library to Apache Portable Runtime.
32
33 %description -l pl
34 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
35 (przeno¶nej biblioteki uruchomieniowej).
36
37 %package devel
38 Summary:        Header files and development documentation for apr-util
39 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty do apr-util
40 Group:          Development/Libraries
41 Requires:       %{name} = %{epoch}:%{version}-%{release}
42 Requires:       apr-devel
43
44 %description devel
45 Header files and development documentation for apr-util.
46
47 %description devel -l pl
48 Pliki nag³ówkowe i dokumentacja programisty do apr-util.
49
50 %package static
51 Summary:        Static apr-util library
52 Summary(pl):    Statyczna biblioteka apr-util
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
55
56 %description static
57 Static apr-util library.
58
59 %description static -l pl
60 Statyczna biblioteka apr-util.
61
62 %prep
63 %setup -q -n %{name}
64 %patch -p1
65
66 %build
67 ./buildconf \
68         --with-apr=%{_datadir}/apr
69 %configure \
70         --with-apr=%{_bindir}/apr-config \
71 %{?with_ldap:   --with-ldap-include=%{_prefix}/include} \
72 %{?with_ldap:   --with-ldap-lib=%{_libdir}} \
73         --with-iconv=%{_prefix}
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc CHANGES STATUS
91 %attr(755,root,root) %{_libdir}/lib*.so.*.*
92
93 %files devel
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/*
96 %attr(755,root,root) %{_libdir}/lib*.so
97 %{_libdir}/lib*.la
98 %{_libdir}/aprutil.exp
99 %{_includedir}
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/lib*.a
This page took 0.036529 seconds and 3 git commands to generate.