]> git.pld-linux.org Git - packages/apr-util.git/blob - apr-util.spec
0b929e300d810a9b0c64fb100fc01cf501062802
[packages/apr-util.git] / apr-util.spec
1 #
2 # Conditional build:
3 %bcond_without  ldap    # without LDAP support
4 %bcond_with     sqlite  # with SQLite 2.x support
5 %bcond_without  sqlite3 # without SQLite3 support
6 #
7 Summary:        A companion library to Apache Portable Runtime
8 Summary(pl):    Biblioteka towarzysz±ca Apache Portable Runtime
9 Name:           apr-util
10 Version:        1.2.1
11 Release:        1
12 Epoch:          1
13 License:        Apache v2.0
14 Group:          Libraries
15 Source0:        http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
16 # Source0-md5:  1e579571bf42a2bb0e5ba882721efa46
17 Patch0:         %{name}-link.patch
18 URL:            http://apr.apache.org/
19 BuildRequires:  apr-devel >= 1:1.1.0
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 %{?with_sqlite:BuildRequires:   sqlite-devel >= 2}
27 %{?with_sqlite3:BuildRequires:  sqlite3-devel >= 3}
28 Requires:       apr >= 1:1.1.0
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %define         _includedir     /usr/include/apr-util
32
33 %description
34 A companion library to Apache Portable Runtime.
35
36 %description -l pl
37 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
38 (przeno¶nej biblioteki uruchomieniowej).
39
40 %package devel
41 Summary:        Header files and development documentation for apr-util
42 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty do apr-util
43 Group:          Development/Libraries
44 Requires:       %{name} = %{epoch}:%{version}-%{release}
45 Requires:       apr-devel >= 1:1.1.0
46 Requires:       db-devel
47 Requires:       expat-devel
48 Requires:       gdbm-devel
49 %{?with_ldap:Requires:  openldap-devel}
50 %{?with_sqlite:Requires:        sqlite-devel >= 2}
51 %{?with_sqlite3:Requires:       sqlite3-devel >= 3}
52
53 %description devel
54 Header files and development documentation for apr-util.
55
56 %description devel -l pl
57 Pliki nag³ówkowe i dokumentacja programisty do apr-util.
58
59 %package static
60 Summary:        Static apr-util library
61 Summary(pl):    Statyczna biblioteka apr-util
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
64
65 %description static
66 Static apr-util library.
67
68 %description static -l pl
69 Statyczna biblioteka apr-util.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74
75 # not needed, gen-build.py is not packaged in apr
76 %{__perl} -pi -e 's/^(.*gen-build\.py)/#$1/' buildconf
77
78 %build
79 ./buildconf \
80         --with-apr=%{_datadir}/apr
81
82 %configure \
83         --with-apr=%{_bindir}/apr-1-config \
84 %if %{with ldap}
85         --with-ldap \
86         --with-ldap-include=%{_prefix}/include \
87         --with-ldap-lib=%{_libdir} \
88 %endif
89         --with-iconv=%{_prefix} \
90         %{!?with_sqlite:--without-sqlite2} \
91         %{!?with_sqlite3:--without-sqlite3}
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc CHANGES
110 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_bindir}/*
115 %attr(755,root,root) %{_libdir}/lib*.so
116 %{_libdir}/lib*.la
117 %{_libdir}/aprutil.exp
118 %{_includedir}
119 %{_pkgconfigdir}/apr-util-1.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/lib*.a
This page took 0.062947 seconds and 3 git commands to generate.