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