From ad4952ec6e3d0394fe9742b8f75fac7ea4c45bfe Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 11 Jan 2015 00:40:13 +0900 Subject: [PATCH] initial commit --- .gitignore | 1 + rubygem-glu.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 102 insertions(+) create mode 100644 rubygem-glu.spec diff --git a/.gitignore b/.gitignore index e69de29..27d6cd8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/glu-8.2.1.gem diff --git a/rubygem-glu.spec b/rubygem-glu.spec new file mode 100644 index 0000000..19c73bb --- /dev/null +++ b/rubygem-glu.spec @@ -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 - 8.2.1-1 +- Initial package diff --git a/sources b/sources index e69de29..3c1c697 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +89646c5347bb7ffa8335451cba61dbb2 glu-8.2.1.gem