2015-01-10 15:40:13 +00:00
|
|
|
%global gem_name glu
|
|
|
|
|
2015-01-16 04:34:13 +00:00
|
|
|
%global need_bootstrap 0
|
2015-01-10 15:40:13 +00:00
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 8.2.1
|
2015-06-18 23:11:43 +00:00
|
|
|
Release: 5%{?dist}
|
2015-01-10 15:40:13 +00:00
|
|
|
|
|
|
|
Summary: Glu bindings for the opengl gem
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/larskanis/glu
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: libGL-devel
|
|
|
|
BuildRequires: libGLU-devel
|
|
|
|
# %%check
|
|
|
|
%if 0%{?need_bootstrap} < 1
|
|
|
|
BuildRequires: rubygem(minitest) >= 5
|
|
|
|
BuildRequires: rubygem(opengl)
|
|
|
|
BuildRequires: %{_bindir}/xvfb-run
|
|
|
|
BuildRequires: mesa-dri-drivers
|
|
|
|
BuildRequires: rubygem(opengl) >= 0.9
|
|
|
|
BuildRequires: rubygem(glut)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Glu bindings for the opengl gem.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
|
|
|
%build
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
|
|
|
cp -a .%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log}
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
rm -rf \
|
|
|
|
.autotest .gemtest .gitignore .travis.yml \
|
|
|
|
Rakefile \
|
|
|
|
ext/ \
|
|
|
|
test/
|
|
|
|
popd
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if 0%{?need_bootstrap} < 1
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
xvfb-run \
|
|
|
|
-s "-screen 0 640x480x24" \
|
|
|
|
ruby \
|
|
|
|
-Ilib:.:./ext \
|
|
|
|
-e "Dir.glob('test/test_*.rb').each { |f| require f }"
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
|
|
%doc %{gem_instdir}/History.rdoc
|
|
|
|
%doc %{gem_instdir}/Manifest.txt
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
|
|
|
%{gem_libdir}/
|
|
|
|
%{gem_extdir_mri}/
|
|
|
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
%changelog
|
2015-06-18 23:11:43 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-16 04:34:13 +00:00
|
|
|
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.2.1-4
|
|
|
|
- Enable test again
|
|
|
|
|
2015-01-16 00:54:34 +00:00
|
|
|
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.2.1-3
|
|
|
|
- F-22: Rebuild for ruby 2.2
|
|
|
|
- Bootstrap, once disable test
|
|
|
|
|
2015-01-10 16:08:34 +00:00
|
|
|
* Sun Jan 11 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.2.1-2
|
|
|
|
- Enable test
|
|
|
|
|
2015-01-10 15:40:13 +00:00
|
|
|
* Thu Dec 18 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.2.1-1
|
|
|
|
- Initial package
|