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