initial commit

This commit is contained in:
Mamoru TASAKA 2015-01-11 00:40:13 +09:00
parent 26b3c6e193
commit ad4952ec6e
3 changed files with 102 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/glu-8.2.1.gem

100
rubygem-glu.spec Normal file
View File

@ -0,0 +1,100 @@
%global gem_name glu
%global need_bootstrap 1
Name: rubygem-%{gem_name}
Version: 8.2.1
Release: 1%{?dist}
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
* Thu Dec 18 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 8.2.1-1
- Initial package

View File

@ -0,0 +1 @@
89646c5347bb7ffa8335451cba61dbb2 glu-8.2.1.gem