Blame SPECS/rubygem-bcrypt.spec

82362f
%{?scl:%scl_package rubygem-%{gem_name}}
82362f
%{!?scl:%global pkg_name %{name}}
82362f
82362f
%global gem_name bcrypt
82362f
82362f
Summary: Wrapper around bcrypt() password hashing algorithm
82362f
Name: %{?scl_prefix}rubygem-%{gem_name}
82362f
Version: 3.1.10
82362f
Release: 6%{?dist}
82362f
Group: Development/Languages
82362f
# ext/* - Public Domain
82362f
# spec/TestBCrypt.java - ISC
82362f
License: MIT and Public Domain and ISC
82362f
URL: https://github.com/codahale/bcrypt-ruby
82362f
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
82362f
82362f
Requires: %{?scl_prefix_ruby}ruby(release)
82362f
Requires: %{?scl_prefix_ruby}ruby(rubygems)
82362f
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
82362f
BuildRequires: %{?scl_prefix_ruby}ruby-devel
82362f
BuildRequires: %{?scl_prefix}rubygem(rspec)
82362f
Provides: %{?scl_prefix}rubygem(bcrypt) = %{version}
82362f
82362f
%description
82362f
bcrypt() is a sophisticated and secure hash algorithm designed by The
82362f
OpenBSD project for hashing passwords. bcrypt-ruby provides a simple,
82362f
humane wrapper for safely handling passwords.
82362f
82362f
%package doc
82362f
Summary: Documentation for %{pkg_name}
82362f
Group: Documentation
82362f
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
82362f
82362f
%description doc
82362f
Documentation for %{pkg_name}.
82362f
82362f
%prep
82362f
%setup -n %{pkg_name}-%{version} -q -c -T
82362f
%{?scl:scl enable %{scl} - << \EOF}
82362f
%gem_install -n %{SOURCE0}
82362f
%{?scl:EOF}
82362f
82362f
82362f
%build
82362f
82362f
%install
82362f
mkdir -p %{buildroot}%{gem_dir}
82362f
cp -pa .%{gem_dir}/* \
82362f
        %{buildroot}%{gem_dir}/
82362f
82362f
mkdir -p %{buildroot}%{gem_extdir_mri}
82362f
cp -pa .%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
82362f
82362f
# Prevent dangling symlink in -debuginfo (rhbz#878863).
82362f
rm -rf %{buildroot}%{gem_instdir}/ext/
82362f
82362f
%check
82362f
%{?scl:scl enable %{scl} - << \EOF}
82362f
set -e
82362f
pushd .%{gem_instdir}
82362f
rspec -I$(dirs +1)%{gem_extdir_mri} spec
82362f
popd
82362f
%{?scl:EOF}
82362f
82362f
%files
82362f
%dir %{gem_instdir}
82362f
%exclude %{gem_instdir}/.*
82362f
%{gem_libdir}
82362f
%{gem_extdir_mri}
82362f
%exclude %{gem_cache}
82362f
%{gem_spec}
82362f
%doc %{gem_instdir}/COPYING
82362f
82362f
%files doc
82362f
%doc %{gem_docdir}
82362f
%doc %{gem_instdir}/README.md
82362f
%doc %{gem_instdir}/CHANGELOG
82362f
%{gem_instdir}/Rakefile
82362f
%{gem_instdir}/Gemfile*
82362f
%{gem_instdir}/%{gem_name}.gemspec
82362f
%{gem_instdir}/spec
82362f
82362f
%changelog
82362f
* Wed Apr 06 2016 Pavel Valena <pvalena@redhat.com> - 3.1.10-6
82362f
- Fix: build should fail on test failure
82362f
82362f
* Mon Feb 22 2016 Pavel Valena <pvalena@redhat.com> - 3.1.10-5
82362f
- Update to 3.1.10
82362f
82362f
* Thu Jan 22 2015 Josef Stribny <jstribny@redhat.com> - 3.1.9-2
82362f
- Convert to SCL
82362f
82362f
* Thu Jan 15 2015 Vít Ondruch <vondruch@redhat.com> - 3.1.9-1
82362f
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
82362f
- Update to BCrypt 3.1.9.
82362f
82362f
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-7
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
82362f
82362f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-6
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
82362f
82362f
* Thu Apr 17 2014 Josef Stribny <jstribny@redhat.com> - 3.1.7-5
82362f
- Fix provides to reflect rubygem(brypt-ruby) as well
82362f
82362f
* Thu Apr 10 2014 Josef Stribny <jstribny@redhat.com> - 3.1.7-4
82362f
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
82362f
82362f
* Mon Apr 07 2014 Josef Stribny <jstribny@redhat.com> - 3.1.7-3
82362f
- Fix typo, obsoletes, upstream URL
82362f
82362f
* Thu Mar 20 2014 Josef Stribny <jstribny@redhat.com> - 3.1.7-2
82362f
- Create -doc subpackage
82362f
- Fix obsoletes
82362f
82362f
* Tue Mar 18 2014 Josef Stribny <jstribny@redhat.com> - 3.1.7-1
82362f
- Rename package to rubygem-bcrypt (this obsoletes bcrypt-ruby)
82362f
- Update to bcrypt 3.1.7
82362f
82362f
* Wed Nov 27 2013 Vít Ondruch <vondruch@redhat.com> - 3.1.2-2
82362f
- Prevent dangling symlink in -debuginfo.
82362f
82362f
* Mon Nov 11 2013 Josef Stribny <jstribny@redhat.com> - 3.1.2-1
82362f
- Update to brypt-ruby 3.1.2
82362f
82362f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-8
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
82362f
82362f
* Fri Mar 01 2013 Vít Ondruch <vondruch@redhat.com> - 3.0.1-7
82362f
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
82362f
82362f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-6
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
82362f
82362f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-5
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
82362f
82362f
* Thu Feb 02 2012 Vít Ondruch <vondruch@redhat.com> - 3.0.1-4
82362f
- Fixed wrong provide.
82362f
82362f
* Mon Jan 23 2012 Vít Ondruch <vondruch@redhat.com> - 3.0.1-3
82362f
- Rebuilt for Ruby 1.9.3.
82362f
82362f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
82362f
82362f
* Wed Dec 14 2011 Vít Ondruch <vondruch@redhat.com> - 3.0.1-1
82362f
- Update to bcrypt-ruby 3.0.1.
82362f
82362f
* Mon Aug 08 2011 Mo Morsi <mmorsi@redhat.com> - 2.1.2-4
82362f
- Replace BR(check) with BR
82362f
82362f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
82362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
82362f
82362f
* Tue Aug 24 2010 Mohammed Morsi <mmorsi@redhat.com> - 2.1.2-2
82362f
- Updates / fixes based on review feedback
82362f
- Fixed bcrypt_ext.so install location
82362f
82362f
* Tue Aug 10 2010 Mohammed Morsi <mmorsi@redhat.com> - 2.1.2-1
82362f
- Initial package