Name: perl-OpenGL-GLUT Version: 0.72 Release: 3%{?dist} Summary: Perl bindings to GLUT/FreeGLUT GUI toolkit # pgopogl.h is LGPLv2+ # include/GL is MIT # lib/OpenGL/GLUT.pm is GPL+ or Artistic License: GPLv2+ or Artistic URL: https://metacpan.org/release/OpenGL-GLUT # # stripped from a non-free files using ./repackage.sh %%{version} command, # include/GL/glprocs.h is "SGI Free Software License B 1.1" forbidden in Fedora Source0: OpenGL-GLUT-%{version}_repackaged.tar.gz # GPLv2-licensed code for generating Source0 from an upstream tarball, Source1: repackage.sh Patch0: OpenGL-GLUT-0.72-Don-t-check-current-display-for-extensions.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: freeglut-devel BuildRequires: gcc # gcc-c++ for libstdc++.so linked in Makefile.PL BuildRequires: gcc-c++ BuildRequires: libICE-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel BuildRequires: libX11-devel BuildRequires: make BuildRequires: mesa-libGL-devel BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Data::Dumper) BuildRequires: perl(ExtUtils::Liblist) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) # Test BuildRequires: perl(Test::More) >= 0.88 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description OpenGL::GLUT is the alpha release of a stand-alone module for GLUT/FreeGLUT bindings extracted from code in the original Perl OpenGL module. The purpose is to make this functionality available independent of the legacy OpenGL module for use with OpenGL::Modern. %prep %setup -q -n OpenGL-GLUT-%{version} %patch0 -p1 # Unbundle GL headers find include -type f -delete # Remove executable bits find -type f -exec chmod a-x {} + %build # This is basically not a test, but an interactive demo mv test.pl demo.pl perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \ dist=NO_EXCLUSIONS NO_PACKLIST=1 NO_PERLLOCAL=1 verbose %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* %check make test %files %license COPYRIGHT %doc demo.pl Changes menutest.pl README.md %{perl_vendorarch}/auto/* %{perl_vendorarch}/OpenGL* %{_mandir}/man3/* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.72-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.72-2 - Perl 5.36 rebuild * Thu Feb 10 2022 Jitka Plesnikova - 0.72-1 - Specfile autogenerated by cpanspec 1.78.