Blame SPECS/rubygem-ruby-shadow.spec

804a73
%global         gem_name ruby-shadow
804a73
804a73
Name:           rubygem-%{gem_name}
804a73
Version:        2.5.0
804a73
Release:        15%{?dist}
804a73
Summary:        Ruby shadow password module
804a73
License:        Public Domain
804a73
URL:            https://github.com/apalmblad/ruby-shadow
804a73
Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
804a73
Source1:        https://raw.githubusercontent.com/apalmblad/ruby-shadow/master/test/basic_test.rb
804a73
Patch0:         ruby-shadow-2.5.0-cflags.patch
804a73
BuildRequires:  gcc
804a73
BuildRequires:  ruby(release)
804a73
BuildRequires:  rubygems-devel
804a73
BuildRequires:  ruby-devel
804a73
BuildRequires:  rubygem(minitest)
804a73
BuildRequires:  rubygem(test-unit)
804a73
Obsoletes:      ruby-shadow < 1.4.1-36
804a73
Provides:       ruby-shadow = %{version}-%{release}
804a73
Provides:       ruby(shadow) = %{version}
804a73
%description
804a73
This module provides access to shadow passwords on Linux and Solaris.
804a73
804a73
%package        doc
804a73
Summary:        Documentation for %{name}
804a73
Requires:       %{name} = %{version}-%{release}
804a73
BuildArch:      noarch
804a73
%description    doc
804a73
Documentation for %{name}.
804a73
804a73
%prep
804a73
gem unpack %{SOURCE0}
804a73
%setup -q -D -T -n  %{gem_name}-%{version}
804a73
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
804a73
%patch0 -p0
804a73
cp %{SOURCE1} .
804a73
804a73
%build
804a73
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
804a73
gem build %{gem_name}.gemspec
804a73
804a73
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
804a73
# by default, so that we can move it into the buildroot in %%install
804a73
%gem_install
804a73
804a73
%install
804a73
mkdir -p %{buildroot}%{gem_dir}
804a73
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
804a73
804a73
# two identical so files confuses rpmbuild
804a73
find %{buildroot}%{gem_dir}/ -name \*.so -delete
804a73
804a73
mkdir -p %{buildroot}%{gem_extdir_mri}
804a73
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
804a73
804a73
# Prevent dangling symlink in -debuginfo (rhbz#878863).
804a73
rm -rf %{buildroot}%{gem_instdir}/ext/
804a73
804a73
%check
804a73
cp %{SOURCE1} .%{gem_instdir}
804a73
pushd .%{gem_instdir}
804a73
if [ $(id -u) = 0 ]; then
804a73
    ruby -I. -e 'Dir.glob "*_test.rb", &method(:require)'
804a73
else
804a73
    ruby -I. -e 'Dir.glob "*_test.rb", &method(:require)' || :
804a73
fi
804a73
popd
804a73
804a73
%files
804a73
%dir %{gem_instdir}
804a73
%{gem_extdir_mri}
804a73
%{gem_instdir}/%{gem_name}.gemspec
804a73
%exclude %{gem_instdir}/.*
804a73
%license %{gem_instdir}/LICENSE
804a73
%exclude %{gem_cache}
804a73
%{gem_spec}
804a73
804a73
%files doc
804a73
%doc %{gem_docdir}
804a73
%exclude %{gem_instdir}/*
804a73
%doc %{gem_instdir}/HISTORY
804a73
%doc %{gem_instdir}/README
804a73
%doc %{gem_instdir}/README.euc
804a73
804a73
%changelog
804a73
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-15
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
804a73
804a73
* Wed Jan  6 2021 Vít Ondruch <vondruch@redhat.com> - 2.5.0-14
804a73
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
804a73
804a73
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-13
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
804a73
804a73
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-12
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
804a73
804a73
* Fri Jan 17 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.0-11
804a73
- F-32: rebuild against ruby27
804a73
804a73
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-10
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
804a73
804a73
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-9
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
804a73
804a73
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 2.5.0-8
804a73
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
804a73
804a73
* Sun Jul 15 2018 Terje Rosten <terje.rosten@ntnu.no> - 2.5.0-7
804a73
- Add C compiler
804a73
804a73
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-6
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
804a73
804a73
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
804a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
804a73
804a73
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 2.5.0-4
804a73
- Rebuilt for switch to libxcrypt
804a73
804a73
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.0-3
804a73
- F-28: rebuild for ruby25
804a73
804a73
* Mon Oct 09 2017 Terje Rosten <terje.rosten@ntnu.no> - 2.5.0-2
804a73
- Remove group
804a73
- Run tests
804a73
804a73
* Thu Oct 05 2017 Terje Rosten <terje.rosten@ntnu.no> - 2.5.0-1
804a73
- 2.5.0
804a73
- Remove non Fedora support
804a73
- Simplify
804a73
804a73
* Fri Mar 01 2013 Moses Mendoza <moses@puppetlabs.com> - 2.2.0-1
804a73
- Update to upstream 2.2.0
804a73
- Move gem path macro definitions inside rhel5 macro block
804a73
- Install only files we want rather than removing files we dont
804a73
- Remove extraneous case in spec for gem_instdir/*.so
804a73
- Move gemspec(s) into docs package
804a73
804a73
* Mon Nov 05 2012 Moses Mendoza <moses@puppetlabs.com> - 2.1.4-1
804a73
- Update to 2.1.4
804a73
- Dynamically define gem_dir macro
804a73
- Use ruby_sitearch macro for EPEL, fedora < 17
804a73
804a73
* Tue Apr 17 2012 Todd Zullinger <tmz@pobox.com> - 2.1.3-2
804a73
- Use gem_extdir macro on F-17 and above
804a73
804a73
* Fri Apr 06 2012 Todd Zullinger <tmz@pobox.com> - 2.1.3-1
804a73
- Update to 2.1.3
804a73
- Fix license tag
804a73
804a73
* Sun Apr 01 2012 Todd Zullinger <tmz@pobox.com> - 2.1.2-3
804a73
- Revert gem repacking until ruby guidelines are finalized
804a73
- Only define gem macros for EPEL, all Fedora releases have them
804a73
- Add BuildRoot and clean it manually for EL-5
804a73
804a73
* Thu Feb 16 2012 Todd Zullinger <tmz@pobox.com> - 2.1.2-2
804a73
- Minor cleanups for review
804a73
- Changes for building on EL-6 (EL-5s rubygems is too old)
804a73
804a73
* Mon Jan 16 2012 Michael Stahnke <mastahnke@gmail.com> - 2.1.2-1
804a73
- Initial package