Blame SPECS/rubygem-sqlite3.spec

660692
%{?scl:%scl_package rubygem-%{gem_name}}
660692
%{!?scl:%global pkg_name %{name}}
660692
660692
%global gem_name sqlite3
660692
660692
Summary: Allows Ruby scripts to interface with a SQLite3 database
660692
Name: %{?scl_prefix}rubygem-%{gem_name}
660692
Version: 1.3.11
660692
Release: 4%{?dist}
660692
Group: Development/Languages
660692
License: BSD
660692
URL: https://github.com/sparklemotion/sqlite3-ruby
660692
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
660692
660692
Requires:      %{?scl_prefix_ruby}ruby(rubygems)
660692
Requires:      %{?scl_prefix_ruby}ruby(release)
660692
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
660692
BuildRequires: %{?scl_prefix_ruby}ruby-devel
660692
BuildRequires: sqlite-devel
660692
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.0.0
660692
Provides:      %{?scl_prefix}rubygem(%{gem_name}) = %{version}-%{release}
660692
660692
%description
660692
SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3
660692
database.
660692
660692
%package doc
660692
Summary: Documentation for %{pkg_name}
660692
Group: Documentation
660692
License: BSD and LGPLv2
660692
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
660692
BuildArch: noarch
660692
660692
%description doc
660692
Documentation for %{pkg_name}.
660692
660692
%prep
660692
%{?scl:scl enable %{scl} - << \EOF}
660692
gem unpack %{SOURCE0}
660692
%{?scl:EOF}
660692
660692
%setup -q -D -T -n  %{gem_name}-%{version}
660692
660692
%{?scl:scl enable %{scl} - << \EOF}
660692
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
660692
%{?scl:EOF}
660692
660692
%build
660692
%{?scl:scl enable %{scl} - << \EOF}
660692
gem build %{gem_name}.gemspec
660692
%gem_install
660692
%{?scl:EOF}
660692
660692
%install
660692
mkdir -p %{buildroot}%{gem_dir}
660692
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
660692
660692
mkdir -p %{buildroot}%{gem_extdir_mri}/sqlite3
660692
mv %{buildroot}%{gem_instdir}/ext/sqlite3/sqlite3_native.so %{buildroot}%{gem_extdir_mri}/sqlite3
660692
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
660692
660692
# Prevent dangling symlink in -debuginfo (rhbz#878863).
660692
rm -rf %{buildroot}%{gem_instdir}/ext/
660692
660692
%check
660692
%{?scl:scl enable %{scl} - << \EOF}
660692
set -e
660692
pushd .%{gem_instdir}
660692
ruby -I$(dirs +1)%{gem_extdir_mri}:lib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
660692
popd
660692
%{?scl:EOF}
660692
660692
%files
660692
%dir %{gem_instdir}
660692
%{gem_extdir_mri}
660692
%exclude %{gem_instdir}/.gemtest
660692
%license %{gem_instdir}/LICENSE
660692
%{gem_libdir}
660692
%exclude %{gem_cache}
660692
%{gem_spec}
660692
660692
%files doc
660692
%doc %{gem_docdir}
660692
%doc %{gem_instdir}/API_CHANGES.rdoc
660692
%doc %{gem_instdir}/CHANGELOG.rdoc
660692
%doc %{gem_instdir}/ChangeLog.cvs
660692
%doc %{gem_instdir}/Manifest.txt
660692
%{gem_instdir}/Rakefile
660692
%{gem_instdir}/Gemfile
660692
%doc %{gem_instdir}/README.rdoc
660692
%doc %{gem_instdir}/faq/
660692
%{gem_instdir}/setup.rb
660692
%{gem_instdir}/tasks/
660692
%{gem_instdir}/test/
660692
660692
%changelog
660692
* Wed Apr 06 2016 Pavel Valena <pvalena@redhat.com> - 1.3.11-4
660692
- Fix: build should fail on test failure
660692
660692
* Tue Feb 23 2016 Pavel Valena <pvalena@redhat.com> - 1.3.11-3
660692
- Update to 1.3.11
660692
660692
* Mon Jan 19 2015 Josef Stribny <jstribny@redhat.com> - 1.3.10-1
660692
- Update to 1.3.10
660692
660692
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 1.3.6-5
660692
- Rebuid against new scl-utils to depend on -runtime package.
660692
  Resolves: rhbz#1069109
660692
660692
* Wed Nov 20 2013 Josef Stribny <jstribny@redhat.com> - 1.3.6-4
660692
- Fix -doc license
660692
  - Resolves: rhbz#969970
660692
660692
* Fri Oct 04 2013 Josef Stribny <jstribny@redhat.com> - 1.3.6-3
660692
- Rebuild because of fixed rubygems extension path
660692
660692
* Thu May 30 2013 Josef Stribny <jstribny@redhat.com> - 1.3.6-2
660692
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
660692
660692
* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.6-1
660692
- Update to Sqlite3 1.3.6.
660692
- Specfile cleanup
660692
660692
* Mon Apr 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.5-1
660692
- Rebuilt for scl.
660692
- Updated to 1.3.5.
660692
660692
* Thu Jan 19 2012 Vít Ondruch <vondruch@redhat.com> - 1.3.4-3
660692
- Rebuilt for Ruby 1.9.3.
660692
- Drop ruby-sqlite3 subpackage.
660692
660692
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-2
660692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
660692
660692
* Thu Oct 20 2011 Vít Ondruch <vondruch@redhat.com> - 1.3.4-1
660692
- Updated to sqlite3 1.3.4.
660692
- Use the upstream big endian fix.
660692
660692
* Wed Jun 22 2011 Dan Horák <dan[at]danny.cz> - 1.3.3-5
660692
- fix build on big endian arches (patch by Vít Ondruch)
660692
660692
* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 1.3.3-4
660692
- The subdirectory of ruby_sitearch has to be owned by package.
660692
660692
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-3
660692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
660692
660692
* Thu Feb 03 2011 Vít Ondruch <vondruch@redhat.com> - 1.3.3-2
660692
- Updated links.
660692
- Removed obsolete BuildRoot.
660692
- Removed unnecessary cleanup.
660692
660692
* Wed Feb 02 2011 Vít Ondruch <vondruch@redhat.com> - 1.3.3-1
660692
- Package renamed from rubygem-sqlite3-ruby to rubygem-sqlite3.
660692
- Test suite executed upon build.
660692
- Documentation moved into separate package.
660692
- Removed clean section which is not necessary.
660692
660692
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-5
660692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
660692
660692
* Wed Jun 17 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.2.4-4
660692
- F-12: Rebuild to create valid debuginfo rpm again (ref: #505774)
660692
660692
* Tue Jun 16 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.2.4-3
660692
- Create ruby-sqlite3 as subpackage (ref: #472621, #472622)
660692
- Use gem as source
660692
660692
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
660692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
660692
660692
* Mon Oct 13 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 1.2.4-1
660692
- Fix items from review (#459881)
660692
- New upstream version
660692
660692
* Sun Aug 31 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 1.2.2-2
660692
- Fix items from review (#459881)
660692
660692
* Sun Jul 13 2008 Matt Hicks <mhicks@localhost.localdomain> - 1.2.2-1
660692
- Initial package