# Generated from beauvoir-0.0.3.gem by gem2rpm -*- rpm-spec -*-
%global gem_name beauvoir
Name: rubygem-%{gem_name}
Version: 0.0.3
Release: 1%{?dist}
Summary: Guess a person's gender by their first name
License: MIT
URL: http://rubygems.org/gems/beauvoir
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildArch: noarch
%description
Guess gender by a first name using more detailed, better
sourced data from Open Gender Tracker's Global Name Data.
Beauvoir lets you set avg and lower bounds and choose
countries from which to draw data.
It's important to note that many people identify as neither
a men nor a women. It's important, too, to note that many
people who do identify as male or female have names that
are held by far more people who identify as another gender.
All of these people deserve not to be misgendered in public
(or in private).
Nevertheless, automatically classifying people by apparent
gender can be a very useful tool to perform censuses of
communities or publications to detect and quantify
perhaps-invisible bias. VIDA is a pioneer in this field,
but their "Count" is limited by a manual methodology that
depends hundreds of person-hours of labor. There is a place
for more automated counts and Beauvoir can help, but if you
do a count like this, you should be careful in how you word
your findings not to misgender anyone in particular and be
responsive to the possibility of errors.
%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}
# Run the test suite.
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%changelog
* Mon Apr 18 2022 mockbuilder - 0.0.3-1
- Initial package