]> git.pld-linux.org Git - packages/ldb.git/blame - ldb.spec
- updated to 1.1.21
[packages/ldb.git] / ldb.spec
CommitLineData
7f41620a 1# TODO
88ce4cc5 2# - ld.bfd enforced because gold does not understand '!' in version script (binutils-3:2.21.53.0.1-1)
48c72eca
JB
3%define talloc_version 2:2.1.3
4%define tdb_version 2:1.3.7
5%define tevent_version 0.9.25
9c196e2c
JB
6Summary: LDAP-like embedded database
7Summary(pl.UTF-8): Wbudowana baza danych podobna do LDAP
cd178619 8Name: ldb
48c72eca
JB
9Version: 1.1.21
10Release: 1
2a1bfbb9 11License: LGPL v3+
56acf5d3 12Group: Libraries
48c72eca
JB
13Source0: https://www.samba.org/ftp/ldb/%{name}-%{version}.tar.gz
14# Source0-md5: 94ba09c7452fff68df3481686c56677e
15URL: https://ldb.samba.org/
2a1bfbb9
ER
16BuildRequires: autoconf
17BuildRequires: docbook-style-xsl
2a1bfbb9 18BuildRequires: libxslt
074f9f52 19BuildRequires: popt-devel >= 1.6
97bd97ed
JB
20BuildRequires: python-devel >= 1:2.4.2
21BuildRequires: python-talloc-devel >= %{talloc_version}
22BuildRequires: python-tdb >= %{tdb_version}
23BuildRequires: python-tevent >= %{tevent_version}
9c196e2c 24BuildRequires: talloc-devel >= %{talloc_version}
2a1bfbb9
ER
25BuildRequires: tdb-devel >= %{tdb_version}
26BuildRequires: tevent-devel >= %{tevent_version}
9c196e2c 27Requires: talloc >= %{talloc_version}
2a1bfbb9
ER
28Requires: tdb >= %{tdb_version}
29Requires: tevent >= %{tevent_version}
074f9f52 30Requires: popt >= 1.6
cd178619
ER
31Provides: libldb = %{version}-%{release}
32Obsoletes: libldb < 1.1.0-3
2a1bfbb9
ER
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36An extensible library that implements an LDAP like API to access
37remote LDAP servers, or use local tdb databases.
38
9c196e2c
JB
39%description -l pl.UTF-8
40Rozszerzalna biblioteka implementująca API podobne do LDAP pozwalające
41na dostęp do zdalnych serwerów LDAP lub wykorzystanie lokalnych baz
42danych tdb.
43
cd178619 44%package tools
2a1bfbb9 45Summary: Tools to manage LDB files
9c196e2c
JB
46Summary(pl.UTF-8): Narzędzia do zarządzania plikami LDB
47Group: Applications/Databases
2a1bfbb9
ER
48Requires: %{name} = %{version}-%{release}
49
cd178619 50%description tools
2a1bfbb9
ER
51Tools to manage LDB files.
52
9c196e2c
JB
53%description tools -l pl.UTF-8
54Narzędzia do zarządzania plikami LDB.
55
2a1bfbb9 56%package devel
9c196e2c
JB
57Summary: Header files for the LDB library
58Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LDB
2a1bfbb9
ER
59Group: Development/Libraries
60Requires: %{name} = %{version}-%{release}
9c196e2c 61Requires: talloc-devel >= %{talloc_version}
2a1bfbb9
ER
62Requires: tdb-devel >= %{tdb_version}
63Requires: tevent-devel >= %{tevent_version}
cd178619
ER
64Provides: libldb-devel = %{version}-%{release}
65Obsoletes: libldb-devel < 1.1.0-3
2a1bfbb9
ER
66
67%description devel
68Header files needed to develop programs that link against the LDB
69library.
70
9c196e2c
JB
71%description devel -l pl.UTF-8
72Pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących
73bibliotekę LDB.
74
2a1bfbb9
ER
75%package -n python-ldb
76Summary: Python bindings for the LDB library
9c196e2c
JB
77Summary(pl.UTF-8): Wiązania Pythona do biblioteki LDB
78Group: Libraries/Python
2a1bfbb9 79Requires: %{name} = %{version}-%{release}
97bd97ed
JB
80Requires: python-libs >= 1:2.4.2
81Requires: python-tdb >= %{tdb_version}
2a1bfbb9
ER
82Obsoletes: pyldb
83
84%description -n python-ldb
85Python bindings for the LDB library.
86
9c196e2c
JB
87%description -n python-ldb -l pl.UTF-8
88Wiązania Pythona do biblioteki LDB.
89
2a1bfbb9
ER
90%package -n python-ldb-devel
91Summary: Development files for the Python bindings for the LDB library
9c196e2c 92Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do biblioteki LDB
2a1bfbb9 93Group: Development/Libraries
cd178619 94Requires: python-ldb = %{version}-%{release}
2a1bfbb9
ER
95
96%description -n python-ldb-devel
9c196e2c
JB
97Development files for the Python bindings for the LDB library.
98
99%description -n python-ldb-devel -l pl.UTF-8
100Pliki programistyczne wiązań Pythona do biblioteki LDB.
2a1bfbb9
ER
101
102%prep
cd178619 103%setup -q
2a1bfbb9
ER
104
105%build
2a1bfbb9
ER
106CC="%{__cc}" \
107CFLAGS="%{rpmcflags}" \
88ce4cc5 108LDFLAGS="%{rpmldflags} -fuse-ld=bfd" \
2a1bfbb9
ER
109PYTHONDIR=%{py_sitedir} \
110./configure \
111 --prefix=%{_prefix} \
112 --libdir=%{_libdir} \
113 --with-modulesdir=%{_libdir}/ldb/modules \
114 --with-privatelibdir=%{_libdir}/ldb \
115 --bundled-libraries=NONE \
116 --disable-rpath \
117 --disable-rpath-install
118
119%{__make} \
120 V=1
121
122%install
123rm -rf $RPM_BUILD_ROOT
124%{__make} install \
125 DESTDIR=$RPM_BUILD_ROOT
126
2a1bfbb9
ER
127# Shared libraries need to be marked executable for
128# rpmbuild to strip them and include them in debuginfo
88ce4cc5 129find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} ';'
2a1bfbb9
ER
130
131%clean
132rm -rf $RPM_BUILD_ROOT
133
134%post -p /sbin/ldconfig
135%postun -p /sbin/ldconfig
136
137%post -n python-ldb -p /sbin/ldconfig
138%postun -n python-ldb -p /sbin/ldconfig
139
140%files
141%defattr(644,root,root,755)
97bd97ed
JB
142%attr(755,root,root) %{_libdir}/libldb.so.*.*.*
143%attr(755,root,root) %ghost %{_libdir}/libldb.so.1
2a1bfbb9 144%dir %{_libdir}/ldb
2a1bfbb9
ER
145%dir %{_libdir}/ldb/modules
146%dir %{_libdir}/ldb/modules/ldb
9c196e2c 147%attr(755,root,root) %{_libdir}/ldb/modules/ldb/*.so
2a1bfbb9 148
9c196e2c 149%files tools
2a1bfbb9
ER
150%defattr(644,root,root,755)
151%attr(755,root,root) %{_bindir}/ldbadd
152%attr(755,root,root) %{_bindir}/ldbdel
153%attr(755,root,root) %{_bindir}/ldbedit
154%attr(755,root,root) %{_bindir}/ldbmodify
155%attr(755,root,root) %{_bindir}/ldbrename
156%attr(755,root,root) %{_bindir}/ldbsearch
9c196e2c
JB
157%attr(755,root,root) %{_libdir}/ldb/libldb-cmdline.so
158%{_mandir}/man1/ldbadd.1*
159%{_mandir}/man1/ldbdel.1*
160%{_mandir}/man1/ldbedit.1*
161%{_mandir}/man1/ldbmodify.1*
162%{_mandir}/man1/ldbrename.1*
163%{_mandir}/man1/ldbsearch.1*
2a1bfbb9
ER
164
165%files devel
166%defattr(644,root,root,755)
9c196e2c 167%attr(755,root,root) %{_libdir}/libldb.so
2a1bfbb9
ER
168%{_includedir}/ldb_module.h
169%{_includedir}/ldb_handlers.h
170%{_includedir}/ldb_errors.h
171%{_includedir}/ldb_version.h
172%{_includedir}/ldb.h
2a1bfbb9
ER
173%{_pkgconfigdir}/ldb.pc
174%{_mandir}/man3/ldb.3*
175
176%files -n python-ldb
177%defattr(644,root,root,755)
97bd97ed
JB
178%attr(755,root,root) %{_libdir}/libpyldb-util.so.*.*.*
179%attr(755,root,root) %ghost %{_libdir}/libpyldb-util.so.1
9c196e2c 180%attr(755,root,root) %{py_sitedir}/ldb.so
2a1bfbb9
ER
181
182%files -n python-ldb-devel
183%defattr(644,root,root,755)
9c196e2c 184%attr(755,root,root) %{_libdir}/libpyldb-util.so
2a1bfbb9 185%{_includedir}/pyldb.h
2a1bfbb9 186%{_pkgconfigdir}/pyldb-util.pc
This page took 0.12676 seconds and 4 git commands to generate.