| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package perl-OpenGL
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2017-06-03 17:32:37 +00:00
										 |  |  | # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # All modifications and additions to the file contributed by third parties
 | 
					
						
							|  |  |  | # remain the property of their copyright owners, unless otherwise agreed
 | 
					
						
							|  |  |  | # upon. The license for this file, and modifications and additions to the
 | 
					
						
							|  |  |  | # file, is the same license as for the pristine package itself (unless the
 | 
					
						
							|  |  |  | # license for the pristine package is not an Open Source License, in which
 | 
					
						
							|  |  |  | # case the license is the MIT License). An "Open Source License" is a
 | 
					
						
							|  |  |  | # license that conforms to the Open Source Definition (Version 1.9)
 | 
					
						
							|  |  |  | # published by the Open Source Initiative.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Please submit bugfixes or comments via http://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Name:           perl-OpenGL
 | 
					
						
							| 
									
										
										
										
											2017-06-03 17:32:37 +00:00
										 |  |  | Version:        0.70
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | #Upstream: CHECK(GPL-1.0+ or Artistic-1.0)
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | %define cpan_name OpenGL
 | 
					
						
							|  |  |  | Summary:        Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | License:        GPL-1.0+ or Artistic-1.0
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | Group:          Development/Libraries/Perl
 | 
					
						
							|  |  |  | Url:            http://search.cpan.org/dist/OpenGL/
 | 
					
						
							| 
									
										
										
										
											2017-08-08 12:59:44 +00:00
										 |  |  | #Source0:        http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-0.70.tar.gz # modified by pre_checkin.sh
 | 
					
						
							|  |  |  | Source0:        OpenGL-0.70.tar.gz
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | Source1:        cpanspec.yml
 | 
					
						
							|  |  |  | Patch0:         0001-Don-t-check-current-display-for-extensions.patch
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							|  |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							|  |  |  | # MANUAL BEGIN
 | 
					
						
							|  |  |  | BuildRequires:  freeglut-devel
 | 
					
						
							| 
									
										
										
										
											2017-06-03 17:32:37 +00:00
										 |  |  | BuildRequires:  gcc-c++
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | BuildRequires:  xvfb-run
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:55:49 +00:00
										 |  |  | BuildRequires:  pkgconfig(xi)
 | 
					
						
							|  |  |  | BuildRequires:  pkgconfig(xmu)
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | # MANUAL END
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n %{cpan_name}-%{version}
 | 
					
						
							|  |  |  | find . -type f -print0 | xargs -0 chmod 644
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | %patch0 -p1
 | 
					
						
							|  |  |  | # MANUAL BEGIN
 | 
					
						
							|  |  |  | find include -type f  \! -name glprocs.h -exec rm {} +
 | 
					
						
							|  |  |  | # MANUAL END
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" dist=NO_EXCLUSIONS
 | 
					
						
							|  |  |  | # Certain OpenGL calls may not be present in our OpenGL
 | 
					
						
							|  |  |  | # implementation, let us just ignore them.
 | 
					
						
							|  |  |  | sed 's/PERL_DL_NONLAZY=1//' -i Makefile
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | %{__make} %{?_smp_mflags}
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" %{__make} test
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %perl_make_install
 | 
					
						
							|  |  |  | %perl_process_packlist
 | 
					
						
							|  |  |  | %perl_gen_filelist
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %files -f %{name}.files
 | 
					
						
							|  |  |  | %defattr(-,root,root,755)
 | 
					
						
							| 
									
										
										
										
											2015-10-23 19:02:01 +00:00
										 |  |  | %doc CHANGES COPYRIGHT examples fragment.arb fragment.cg fragment.glsl isosurf.bin KNOWN_PROBLEMS README Release_Notes SUPPORTS test.jpg test.tga TODO vertex.arb vertex.cg vertex.glsl
 | 
					
						
							| 
									
										
										
										
											2013-07-16 14:53:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |