Project

General

Profile

Download (4.26 KB) Statistics
| Branch: | Tag: | Revision:
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}

%global gem_name net-ldap

Summary: Net::LDAP for Ruby implements client access LDAP protocol
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 0.11
Release: 3%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/ruby-ldap/ruby-net-ldap
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: %{?scl_prefix_ruby}ruby(rubygems)
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
# specs need metaid gem that is not in Fedora yet
#BuildRequires: %{?scl_prefix_ruby}rubygem(rspec-core)
#BuildRequires: %{?scl_prefix}rubygem(flexmock)
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
%if 0%{?fedora} > 18
Requires: %{?scl_prefix_ruby}ruby(release)
%else
Requires: %{?scl_prefix_ruby}ruby(abi) = 1.9.1
%endif
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
# this package obsoletes rubygem-ruby-net-ldap
Provides: %{?scl_prefix}rubygem(ruby-net-ldap) = %{version}-%{release}
Provides: %{?scl_prefix}rubygem-ruby-net-ldap = %{version}-%{release}
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
Obsoletes: %{?scl_prefix}rubygem-ruby-net-ldap < 0.0.4-7

%description
Net::LDAP for Ruby (also called net-ldap) implements client access for the
Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for
accessing distributed directory services. Net::LDAP is written completely in
Ruby with no external dependencies. It supports most LDAP client features and
a subset of server features as well.
Net::LDAP has been tested against modern popular LDAP servers including
OpenLDAP and Active Directory. The current release is mostly compliant with
earlier versions of the IETF LDAP RFCs (2251–2256, 2829–2830, 3377, and
3771).
Our roadmap for Net::LDAP 1.0 is to gain full client compliance with
the most recent LDAP RFCs (4510–4519, plus portions of 4520–4532).


%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
BuildArch: noarch

%description doc
Documentation for %{pkg_name}

%prep
%setup -n %{pkg_name}-%{version} -q -c -T
mkdir -p .%{gem_dir}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%{?scl:"}

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
%{?scl:scl enable %{scl} "}
testrb -Ilib test
%{?scl:"}
%{?scl:scl enable %{scl} "}
#rspec spec
%{?scl:"}
popd


%files
%dir %{gem_instdir}
%doc %{gem_instdir}/License.rdoc
%{gem_libdir}
%exclude %{gem_instdir}/.*
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTING.md
%doc %{gem_instdir}/Contributors.rdoc
%doc %{gem_instdir}/Gemfile
%doc %{gem_instdir}/Hacking.rdoc
%doc %{gem_instdir}/History.rdoc
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/Rakefile
%{gem_instdir}/script
%{gem_instdir}/test
%{gem_instdir}/testserver

%changelog
* Tue Aug 25 2015 Dominic Cleal <dcleal@redhat.com> 0.11-3
- Converted to tfm SCL (dcleal@redhat.com)

* Wed May 13 2015 Dominic Cleal <dcleal@redhat.com> 0.11-2
- Build net-ldap for Fedora (dcleal@redhat.com)

* Wed May 13 2015 Dominic Cleal <dcleal@redhat.com> 0.11-1
- Update net-ldap to 0.11 (dcleal@redhat.com)

* Wed Dec 10 2014 Dominic Cleal <dcleal@redhat.com> 0.10.0-1
- Update net-ldap to 0.10.0 (dcleal@redhat.com)

* Fri May 30 2014 Dominic Cleal <dcleal@redhat.com> 0.3.1-2
- Modernise spec for EL7 (dcleal@redhat.com)

* Wed May 29 2013 Marek Hulan <mhulan@redhat.com> 0.3.1-1
- Net-ldap gem updated to 0.3.1 (mhulan@redhat.com)

* Wed Feb 27 2013 Miroslav Suchý <msuchy@redhat.com> 0.2.2-5
- new package built with tito

* Mon Nov 26 2012 Miroslav Suchý <msuchy@redhat.com> 0.2.2-4
- fix requires (msuchy@redhat.com)

* Mon Nov 26 2012 Miroslav Suchý <msuchy@redhat.com> 0.2.2-3
- rebase to net-ldap-0.2.2.gem (msuchy@redhat.com)

* Tue Feb 28 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.2-3
- Properly obsolete rubygem-ruby-net-ldap (now really).

* Wed Feb 22 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.2-2
- Properly obsolete rubygem-ruby-net-ldap.

* Mon Feb 06 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.2-1
- Initial package
(2-2/2)