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