Name: perl-OpenGL Version: 0.62 Release: 5%{?dist} Summary: Perl OpenGL bindings License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/OpenGL/ Source0: http://www.cpan.org/authors/id/C/CH/CHM/OpenGL-%{version}.tar.gz Patch0: perl-OpenGL-0.62-dist.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: freeglut-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel BuildRequires: libXext-devel BuildRequires: libICE-devel BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %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-%{version} %patch0 -p1 -b .dist %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 rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_vendorarch}/auto/* %{perl_vendorarch}/OpenGL* %{_mandir}/man3/* %doc CHANGES COPYRIGHT GIT_CHANGES KNOWN_PROBLEMS README Release_Notes %doc SUPPORTS TODO demo.pl %changelog * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.62-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.62-4 - 661697 rebuild for fixing problems with vendorach/lib * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.62-3 - Mass rebuild with perl-5.12.0 * Sun Jan 10 2010 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.62-2 - Require Xext to fix EL-5 build * Thu Jan 07 2010 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.62-1 - Initial packaging