%global cpanversion 0.70 Name: perl-OpenGL Version: %{cpanversion}00 Release: 21%{?dist} Summary: Perl OpenGL bindings License: GPL+ or Artistic URL: http://sourceforge.net/projects/pogl/ # # stripped from a non-free files using ./repackage.sh %%{version} command, # bug #1612850, Source0: OpenGL-%{cpanversion}_repackaged.tar.gz # GPLv2-licensed code for generating Source0 from an upstream tarball, # bug #1612850, Source1: repackage.sh Patch0: 0001-Don-t-check-current-display-for-extensions.patch BuildRequires: gcc # gcc-c++ for libstdc++.so linked in Makefile.PL BuildRequires: gcc-c++ BuildRequires: coreutils BuildRequires: findutils BuildRequires: freeglut-devel BuildRequires: libICE-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel BuildRequires: mesa-libGL-devel BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(Config) BuildRequires: perl(Data::Dumper) BuildRequires: perl(ExtUtils::Liblist) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: sed # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) # Tests: BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} %description Perl bindings to implementations of OpenGL and GLUT, providing virtually all of the OpenGL 1.0, and 1.1 functions, and most of 1.2. %prep %setup -q -n OpenGL-%{cpanversion} %patch0 -p1 # Unbundle GL headers find include -type f \! -name glprocs.h -exec rm {} + # 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="$RPM_OPT_FLAGS" \ dist=NO_EXCLUSIONS verbose # Certain OpenGL calls may not be present in our OpenGL # implementation, let us just ignore them. sed 's/PERL_DL_NONLAZY=1//' -i Makefile make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} %{buildroot}/* %check make test %files %{perl_vendorarch}/auto/* %{perl_vendorarch}/OpenGL* %{_mandir}/man3/* %license COPYRIGHT %doc CHANGES KNOWN_PROBLEMS README Release_Notes %doc SUPPORTS TODO demo.pl %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.7000-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.7000-20 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.7000-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.7000-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.7000-17 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.7000-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.7000-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.7000-14 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.7000-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 01 2019 Petr Pisar - 0.7000-12 - Remove a non-free header file from the source archive (bug #1612850) - Remove executable bits from a documentation * Tue Sep 17 2019 Gwyn Ciesla - 0.7000-11 - Rebuilt for new freeglut * Fri Jul 26 2019 Fedora Release Engineering - 0.7000-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.7000-9 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.7000-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.7000-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.7000-6 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.7000-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.7000-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.7000-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.7000-2 - Perl 5.26 rebuild * Thu Feb 16 2017 Jitka Plesnikova - 0.7000-1 - 0.70 bump * Sat Feb 11 2017 Fedora Release Engineering - 0.6704-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.6704-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.6704-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.6704-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 09 2015 Jitka Plesnikova - 0.6704-2 - Perl 5.22 rebuild * Mon Jun 08 2015 Petr Pisar - 0.6704-1 - 0.6704 bump - Unbundle GL headers - Do not use functions removed from Mesa (bug #1224294) * Fri Jun 05 2015 Jitka Plesnikova - 0.6702-5 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 0.6702-4 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.6702-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.6702-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Oct 28 2013 Lubomir Rintel (GoodData) - 0.6702-1 - Update to a later release * Thu Oct 24 2013 Lubomir Rintel (GoodData) - 0.66-4 - Bulk sad and useless attempt at consistent SPEC file formatting * Sun Aug 04 2013 Fedora Release Engineering - 0.66-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.66-2 - Perl 5.18 rebuild * Wed Feb 27 2013 Petr Pisar - 0.66-1 - 0.66 bump * Thu Feb 14 2013 Fedora Release Engineering - 0.62-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.62-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jun 10 2012 Petr Pisar - 0.62-8 - Perl 5.16 rebuild - Specify all dependencies * Fri Jan 13 2012 Fedora Release Engineering - 0.62-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 0.62-6 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.62-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova - 0.62-4 - 661697 rebuild for fixing problems with vendorach/lib * Tue May 04 2010 Marcela Maslanova - 0.62-3 - Mass rebuild with perl-5.12.0 * Sun Jan 10 2010 Lubomir Rintel (GoodData) 0.62-2 - Require Xext to fix EL-5 build * Thu Jan 07 2010 Lubomir Rintel (GoodData) 0.62-1 - Initial packaging