3 %bcond_without doc # build the documentation
7 Summary: Python LDAP client library
10 Release: 0.git%{subver}.%{rel}
12 Group: Libraries/Python
13 Source0: https://codeload.github.com/antong/ldaptor/tar.gz/%{subver}?/%{name}-%{version}.%{subver}.tar.gz
14 # Source0-md5: eace8cf1dc3f7061051b019444d57ca6
16 Patch0: %{name}-remove-webui.patch
17 Patch1: %{name}-doc-paths.patch
18 Patch2: deprecated-exception.patch
19 Patch3: module-typo.patch
21 Patch5: starttls-fix.patch
24 URL: https://github.com/antong/ldaptor
25 BuildRequires: python-distribute
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.710
30 BuildRequires: docbook-slides
31 BuildRequires: docbook-style-xsl
33 BuildRequires: libxslt
34 BuildRequires: python-docutils
35 BuildRequires: source-highlight
37 Requires: Zope-Interface
38 Requires: python-Crypto
39 Requires: python-TwistedCore
40 Requires: python-TwistedCore-ssl
41 Requires: python-TwistedMail
42 Requires: python-TwistedNames
43 Requires: python-modules
44 Requires: python-pyOpenSSL
45 Requires: python-pyparsing
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Ldaptor is LDAP library written in pure Python. The library implements
51 LDAP client logic, separately-accessible LDAP and BER protocol message
52 generation and parsing, ASCII format LDAP filter generation and
53 parsing, LDIF format data generation, and Samba password changing
57 Summary: Documentation for python-ldaptor package
58 Group: Libraries/Python
59 Requires: %{name} = %{version}-%{release}
62 The package contains documentation for python-ldaptor package.
65 Summary: Ldaptor command line utilities
66 Group: Libraries/Python
67 Requires: %{name} = %{version}-%{release}
70 The package contains command line utilities build upon python-ldaptor
74 %setup -q -n ldaptor-%{subver}
84 # remove deprecated web interface
85 %{__rm} -r ldaptor/{apps,weave.*,test/{web,test_webui.*}}
87 %{__sed} -i -e 's|/usr/share/xml|/usr/share/sgml|g' doc/Makefile doc/slides-driver.xsl
94 epydoc -o doc/api --name Ldaptor ldaptor --exclude 'ldaptor\.test\.' --simple-term
98 rm -rf $RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ldaptor
102 --root $RPM_BUILD_ROOT
104 # library system-wide configuration and schema
105 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ldaptor
106 install -p ldaptor.schema $RPM_BUILD_ROOT%{_sysconfdir}/ldaptor
109 rm -rf $RPM_BUILD_ROOT
112 %defattr(644,root,root,755)
114 %dir %{_sysconfdir}/ldaptor
115 %config(noreplace) %{_sysconfdir}/ldaptor/global.cfg
116 %{_sysconfdir}/ldaptor/ldaptor.schema
117 %{py_sitescriptdir}/ldaptor-0.0.0-py*.egg-info
118 %{py_sitescriptdir}/ldaptor
122 %defattr(644,root,root,755)
123 %doc doc/addressbook-slides
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/ldaptor-*