# Generated from rack-ntlm-0.0.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name rack-ntlm Name: rubygem-%{gem_name} Version: 0.0.1 Release: 1.1%{?dist} Summary: Rack middleware for transparent authentication with NTLM License: MIT URL: http://github.com/dtsato/rack-ntlm Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(activesupport) BuildRequires: ruby BuildArch: noarch %description Rack middleware for transparent authentication with NTLM. This is a fork from lukefx/rack-ntlm on Github. This makes the Rack middleware a gem and uses net/ldap to search the user against an ActiveDirectory server. This is work in progress, so contributions are welcome. %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 gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %{gem_instdir}/VERSION %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/rack-ntlm.gemspec %{gem_instdir}/test %changelog * Tue Jan 12 2021 Pavel Valena - 0.0.1-1 - Initial package