]> git.pld-linux.org Git - packages/apr-util.git/blob - apr-util.spec
- Conflicts with apr from apache (which contained apr-util); release 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.4
8 Release:        2
9 Epoch:          1
10 License:        Apache
11 Group:          Libraries
12 Source0:        http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
13 # Source0-md5:  909ff60d9efb3f158d33e4569af57874
14 Patch0:         %{name}-link.patch
15 URL:            http://apr.apache.org/
16 BuildRequires:  apr-devel >= 1:0.9.4
17 BuildRequires:  autoconf
18 BuildRequires:  db-devel
19 BuildRequires:  expat-devel
20 BuildRequires:  gdbm-devel
21 BuildRequires:  libtool
22 %{?with_ldap:BuildRequires:     openldap-devel}
23 Conflicts:      apr < 1:0.9
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _includedir     /usr/include/apr-util
27
28 %description
29 A companion library to Apache Portable Runtime.
30
31 %description -l pl
32 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
33 (przeno¶nej biblioteki uruchomieniowej).
34
35 %package devel
36 Summary:        Header files and development documentation for apr-util
37 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty do apr-util
38 Group:          Development/Libraries
39 Requires:       %{name} = %{epoch}:%{version}-%{release}
40 Requires:       apr-devel
41 Conflicts:      apr-devel < 1:0.9
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
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.040117 seconds and 4 git commands to generate.