forked from bearded/ruby-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby-ldap.spec
222 lines (182 loc) · 8.24 KB
/
ruby-ldap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# $Id: ruby-ldap.spec,v 1.13 2006/08/09 11:24:42 ianmacd Exp $
%define openldap %( rpm -q --qf '%%{version}' openldap | ruby -e 'puts gets.sub(/\\d+$/,"0")' )
# Build documentation if we have rdoc on the build system.
%define rdoc %( type rdoc > /dev/null && echo 1 || echo 0 )
Summary: LDAP API (RFC1823) library module for Ruby.
Name: ruby-ldap
Version: 0.9.13
Release: 1
License: Redistributable
Group: Applications/Ruby
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL: http://%{name}.sourceforge.net/
Packager: Ian Macdonald <[email protected]>
BuildRoot: /var/tmp/%{name}-%{version}
BuildRequires: ruby, ruby-devel, openssl-devel, openldap-devel >= %{openldap}
Requires: ruby, openssl, openldap >= %{openldap}
%description
Ruby/LDAP is an extension module for Ruby. It provides the interface to some
LDAP libraries (for example, OpenLDAP, UMich LDAP, Netscape SDK and
ActiveDirectory). The common API for application development is described in
RFC1823 and most libraries comply with it. Ruby/LDAP supports those libraries.
%prep
%setup
%build
ruby extconf.rb
make
strip ldap.so
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%if %{rdoc}
rdocpath=`ruby -rrdoc/ri/ri_paths -e 'puts RI::Paths::PATH[1] ||
RI::Paths::PATH[0]'`
rdoc -r -o $RPM_BUILD_ROOT$rdocpath -x CVS *.c lib
rm $RPM_BUILD_ROOT$rdocpath/created.rid
%endif
find $RPM_BUILD_ROOT -type f -print | \
ruby -pe 'sub(%r(^'$RPM_BUILD_ROOT'), "")' > %{name}-%{version}-filelist
%if %{rdoc}
echo '%%docdir' $rdocpath >> %{name}-%{version}-filelist
%endif
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%doc ChangeLog FAQ README* TODO
%doc example/ test/
%changelog
* Wed Aug 9 2006 Ian Macdonald <[email protected]> 0.9.7-1
- 0.9.7
- Replacement and deletion operations did not work on Win32 systems.
* Tue Aug 1 2006 Ian Macdonald <[email protected]> 0.9.6-1
- 0.9.6
- Fix segfault on AMD64 on FreeBSD.
- Minor documentation clarifications.
* Thu Apr 20 2006 Ian Macdonald <[email protected]> 0.9.5-1
- 0.9.5
- The software now builds and works out of the box on Windows.
* Wed Mar 8 2006 Ian Macdonald <[email protected]> 0.9.4-1
- 0.9.4
- Modify LDAP::Conn#search, LDAP::Conn#search2, LDAP::Conn#search_ext and
LDAP::Conn#search_ext2 to treat LDAP_SIZELIMIT_EXCEEDED as success. After
using any of these four methods, the user should check whether
LDAP::Conn#err == LDAP::LDAP_SIZELIMIT_EXCEEDED. If true, the results set
has been truncated by the server. Previously, LDAP_SIZELIMIT_EXCEEDED would
raise an exception and no results would be returned, which is not the
correct behaviour if the user has deliberately put a limit on the number of
results to be returned, in order to spare the server.
- Duplicate code refactored.
- Missing RDoc documentation added for LDAP::Conn#err.
* Sat Feb 18 2006 Ian Macdonald <[email protected]> 0.9.3-1
- 0.9.3
- LDAP::Schema#names and LDAP::Schema#attr will now allow names with hyphens
and/or underscores.
- Silence a warning about @sasl_quiet when run in debug mode.
- Fix uninitialised data structures in LDAP::SSLConn#bind and
LDAP::SSLConn#simple_bind.
- Build properly with OpenLDAP 2.3.
- Build-time options --with-ldap-incdir and --with-ldap-libdir have been
replaced by --with-ldap-include and --with-ldap-lib. This is a consequence of
making extconf.rb more standard.
- Windows build has been improved, so that it should now at least build without
error. Whether it will work is another matter.
* Wed Jul 6 2005 Ian Macdonald <[email protected]> 0.9.2-1
- 0.9.2
- Minor build problem fixed for certain architectures.
- For Conn#search, Conn#search2, Conn#search_ext and Conn#search_ext2,
allow attrs to be a string, in which case it is treated as a single-element
array.
* Tue Mar 15 2005 Ian Macdonald <[email protected]> 0.9.1-1
- 0.9.1
- Conn#search, Conn#search2, Conn#search_ext2 and Conn#search_ext2 now accept
only nil or an array for the attrs parameter.
- LDAP::Entry#[] is now an alias for LDAP::Entry#get_values.
- Conn#compare and Conn#compare_ext now return either true or false, rather
than raising an LDAP::ResultError exception and indicating success or
failure in the message.
- If an LDAP::Conn or LDAP::SSLConn connection becomes unbound, calling #bind,
#simple_bind or #sasl_bind now reconnects to the server using the original
parameters and then performs the bind. This allows one to rebind using new
credentials.
- LDAP::Conn#bound? was throwing an exception when invoked on a Conn object on
which an explicit #unbind had been performed. This has been fixed.
- Invoking LDAP::Conn#sasl_bind now sets the LDAP protocol to v3 if it is not
already so. This is required for a SASL bind.
- LDAP::Conn#sasl_bind did not detect attempts to bind more than once. This is
now done.
- SSLConn#open now throws a NotImplementedError exception. Previously, it
would call the same method in the superclass, which would not work.
- Unused variables removed to silence gcc warnings.
- More unit tests and documentation fixes.
- ldap.so is now stripped.
* Wed Mar 2 2005 Ian Macdonald <[email protected]> 0.9.0-1
- 0.9.0
- There is a new, fully functional LDIF module, complete with unit tests.
- In LDAP::Conn#add, LDAP::Conn#add_ext, LDAP::Conn#modify and
LDAP::Conn#modify_ext, LDAP_MOD_BVALUES should be set when passing in a
hash, in case there are mods containing binary values.
- LDAP::Conn#sasl_bind now returns nil when a block is passed to it, not self.
- The LDAP module, as well as the LDAP::Conn, LDAP::SSLConn, LDAP::Entry,
LDAP::Mod, LDAP::Control and LDAP::Schema classes, now have extensive
RDoc documentation.
* Mon Feb 7 2005 Ian Macdonald <[email protected]> 0.8.4-1
- 0.8.4
- All patches from 0.8.3-[3-9] merged upstream into 0.8.4.
* Mon Dec 6 2004 Ian Macdonald <[email protected]> 0.8.3-9
- New accessor LDAP::Conn#sasl_quiet silences OpenLDAP SASL messages when
set to true. It is false by default.
* Thu Nov 18 2004 Ian Macdonald <[email protected]> 0.8.3-8
- Issue a warning if an attempt is made to set the LDAP protocol version
after a bind has taken place.
- Implement LDAP::Conn#bound?
* Sat Nov 13 2004 Ian Macdonald <[email protected]> 0.8.3-7
- Controls patch now returns controls from both LDAP::Conn#search and
LDAP::Conn#search2.
* Fri Nov 12 2004 Ian Macdonald <[email protected]> 0.8.3-6
- Further refinement of controls patch, so that controls are now returned
as the @controls attribute of the connection object.
- New patch to provide more grammatical error message.
* Thu Nov 11 2004 Ian Macdonald <[email protected]> 0.8.3-5
- Improve patch to allow controls to be duped or cloned.
- Add ldap/control.rb to extend the usefulness of controls.
* Tue Nov 9 2004 Ian Macdonald <[email protected]> 0.8.3-4
- Patch to allow setting and retrieving of LDAP controls.
* Mon Nov 8 2004 Ian Macdonald <[email protected]> 0.8.3-3
- Patch to fix setting of OID when LDAP controls are created.
* Sat Nov 6 2004 Ian Macdonald <[email protected]> 0.8.3-2
- Build with specific OpenLDAP dependencies, as .so version changed in
OpenLDAP 2.2.x.
* Wed Oct 20 2004 Ian Macdonald <[email protected]> 0.8.3-1
- SASL GSSAPI patch removed, since it's been merged upstream.
- Patch incorrect library version.
* Sun Dec 14 2003 Ian Macdonald <[email protected]> 0.8.2-4
- Further refine saslconn.c patch
* Thu Dec 11 2003 Ian Macdonald <[email protected]> 0.8.2-3
- Further refine saslconn.c patch
* Thu Dec 11 2003 Ian Macdonald <[email protected]> 0.8.2-2
- Patch saslconn.c to allow GSSAPI via SASL
* Sun Dec 7 2003 Ian Macdonald <[email protected]> 0.8.2-1
- 0.8.2
* Sun Oct 19 2003 Ian Macdonald <[email protected]> 0.8.1-1
- 0.8.1
* Mon Mar 17 2003 Ian Macdonald <[email protected]>
- 0.8.0
* Tue Jul 30 2002 Ian Macdonald <[email protected]>
- 0.7.2
* Fri Jul 19 2002 Ian Macdonald <[email protected]>
- 0.7.1
* Tue Jul 2 2002 Ian Macdonald <[email protected]>
- Add BuildRequires for openssl-devel and openldap-devel
* Sun Jun 2 2002 Ian Macdonald <[email protected]>
- 0.7.0
* Mon Apr 29 2002 Ian Macdonald <[email protected]>
- Simplified install section
* Fri Apr 5 2002 Ian Macdonald <[email protected]>
- Added test directory to docs
* Tue Apr 2 2002 Ian Macdonald <[email protected]>
- 0.6.1
* Wed Mar 13 2002 Ian Macdonald <[email protected]>
- 0.6.0
* Mon Jan 7 2002 Ian Macdonald <[email protected]>
- 0.5.0