Blame SPECS/rubygem-sqlite3.spec

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