]> git.pld-linux.org Git - packages/perl-OpenGL.git/blame - perl-OpenGL.spec
perl 5.38.0 rebuild
[packages/perl-OpenGL.git] / perl-OpenGL.spec
CommitLineData
61da85e0 1#
2# Conditional build:
6701211c 3%bcond_with tests # do not perform "make test"
61da85e0 4#
e4098002 5Summary: OpenGL - Perl module to display 3D data using OpenGL, GLU, GLUT, and GLX
27c36f9b 6Summary(pl.UTF-8): OpenGL - moduł Perla przedstawiający dane korzystając z bibliotek OpenGL, GLU, GLUT i GLX
af7d6e5e 7Name: perl-OpenGL
c5575bc6 8Version: 0.6704
58f44236 9Release: 10
e4098002 10# same as perl
4aae1995 11License: GPL v1+ or Artistic
af7d6e5e 12Group: Development/Languages/Perl
697f48e7 13Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-%{version}.tar.gz
c5575bc6 14# Source0-md5: 433e4f197d7200c219494a8604f3e06b
7e3501ab
JR
15Patch0: %{name}-build.patch
16URL: http://search.cpan.org/dist/OpenGL/
af7d6e5e 17BuildRequires: OpenGL-devel
7e3501ab 18BuildRequires: freeglut-devel
9839f709 19BuildRequires: perl-devel >= 1:5.8.0
8ed3c49c 20BuildRequires: rpm-perlprov >= 4.1-13
af7d6e5e
JK
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This module provides access to most of the OpenGL 1.0, 1.1, and 1.2
25APIs. Some amount of GLU is supported (I'm not quite sure what version
26it works out to), and GLUT should be completely supported up to API
27version 3. A small portion of GLX and X11 is supported, as an
28alternative to GLUT.
29
59109033
JR
30%description -l pl.UTF-8
31Ten moduł daje dostęp do większości API OpenGL 1.0, 1.1 i 1.2.
32Udostępnia też część GLU (w bliżej nieokreślonej wersji) oraz
33powinien udostępniać pełne API GLUT do wersji 3. Jako alternatywa
34dla GLUT jest dostępna także niewielka część API GLX i X11.
5bc0e71e 35
af7d6e5e
JK
36%prep
37%setup -q -n OpenGL-%{version}
38%patch0 -p1
af7d6e5e
JK
39
40%build
8ed3c49c 41%{__perl} Makefile.PL \
7e3501ab 42 interface=FREEGLUT \
d167040b 43 INSTALLDIRS=vendor
7e3501ab 44
af7d6e5e
JK
45%{__make}
46
61da85e0 47%{?with_tests:%{__make} test}
48
af7d6e5e
JK
49%install
50rm -rf $RPM_BUILD_ROOT
51
943bda20 52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
3dfaf2bc
MP
54mkdir -p $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
af7d6e5e
JK
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
62%doc README SUPPORTS TODO COPYRIGHT
8ed3c49c 63%{perl_vendorarch}/OpenGL.pm
7e3501ab
JR
64%dir %{perl_vendorarch}/OpenGL
65%{perl_vendorarch}/OpenGL/Config.pm
8ed3c49c 66%dir %{perl_vendorarch}/auto/OpenGL
67%{perl_vendorarch}/auto/OpenGL/autosplit.ix
8ed3c49c 68%attr(755,root,root) %{perl_vendorarch}/auto/OpenGL/*.so
3dfaf2bc 69%dir %{_examplesdir}/%{name}-%{version}
89877e3c 70%{_mandir}/man3/*.3pm*
3dfaf2bc 71%{_examplesdir}/%{name}-%{version}/*
This page took 0.052519 seconds and 4 git commands to generate.