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