rpms/perl-OpenGL/F-12 perl-OpenGL-0.62-dist.patch, NONE, 1.1 perl-OpenGL.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lubomir Rintel lkundrak at fedoraproject.org
Sun Jan 10 16:04:47 UTC 2010


Author: lkundrak

Update of /cvs/pkgs/rpms/perl-OpenGL/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2772/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	perl-OpenGL-0.62-dist.patch perl-OpenGL.spec 
Log Message:
Import perl OpenGL

perl-OpenGL-0.62-dist.patch:
 Makefile.PL |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

--- NEW FILE perl-OpenGL-0.62-dist.patch ---
Don't check current display for extensions, build all.

diff -up OpenGL-0.62/Makefile.PL.dist OpenGL-0.62/Makefile.PL
--- OpenGL-0.62/Makefile.PL.dist	2009-12-11 01:10:00.000000000 +0100
+++ OpenGL-0.62/Makefile.PL	2010-01-07 13:00:26.000000000 +0100
@@ -579,9 +579,9 @@ my $build_config =
   {
     FILES =>
       "Config.pm ".
-      "utils/glversion.txt ".
-      "utils/glversion$Config{exe_ext} ".
-      "utils/glversion$Config{obj_ext}"
+      "utils/glversion.txt "
+      #"utils/glversion$Config{exe_ext} ".
+      #"utils/glversion$Config{obj_ext}"
   }
 };
 
@@ -790,6 +790,7 @@ sub get_extensions
     print "GLUT not found\n";
   }
 
+=cut
   # Platform-specific makefiles for glversion
   my $make_ver;
   if ($IS_MINGW)
@@ -848,7 +849,9 @@ sub get_extensions
      print "get_extensions: no extensions found in $glv_file\n" if $verbose;
      return '';
   }
-
+=cut
+  use Config;
+  my $gldata = { };
 
   # Parse glext_procs.h file
   return '' if (!open(GLEXT,"glext_procs.h"));
@@ -867,10 +870,12 @@ sub get_extensions
 
   # Create gl_exclude.h
   die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
+=cut
   print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
   print GLEXC "//\n";
   print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
   print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
+=cut
 
   # Fix GLUT flags based on results
   if ($gldata->{GLUT} > 0)


--- NEW FILE perl-OpenGL.spec ---
Name:		perl-OpenGL
Version:	0.62
Release:	1%{?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:	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
* Thu Jan 07 2010 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> 0.62-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-OpenGL/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	9 Jan 2010 04:31:15 -0000	1.1
+++ .cvsignore	10 Jan 2010 16:02:51 -0000	1.2
@@ -0,0 +1 @@
+OpenGL-0.62.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-OpenGL/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	9 Jan 2010 04:31:15 -0000	1.1
+++ sources	10 Jan 2010 16:02:51 -0000	1.2
@@ -0,0 +1 @@
+905407fa94ca0fc9c1e0ae7c140a4272  OpenGL-0.62.tar.gz



More information about the scm-commits mailing list