# Generated from net-ldap-0.18.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name net-ldap Name: rubygem-%{gem_name} Version: 0.18.0 Release: 1%{?dist} Summary: 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 License: MIT URL: http://github.com/ruby-ldap/ruby-net-ldap Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(flexmock) >= 1.3 # BuildRequires: rubygem(flexmock) < 2 # BuildRequires: rubygem(rubocop) >= 1.48 # BuildRequires: rubygem(rubocop) < 2 # BuildRequires: rubygem(test-unit) >= 3.3 # BuildRequires: rubygem(test-unit) < 4 # BuildRequires: rubygem(byebug) >= 9.0.6 # BuildRequires: rubygem(byebug) < 9.1 BuildArch: noarch %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, plutions of 4520-4532). %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/License.rdoc %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Contributors.rdoc %doc %{gem_instdir}/Hacking.rdoc %doc %{gem_instdir}/History.rdoc %doc %{gem_instdir}/README.rdoc %changelog * Tue Apr 04 2023 mockbuilder - 0.18.0-1 - Initial package