3 %bcond_without unicode # ANSI instead of Unicode version of wxGTK
4 %bcond_without gtk3 # wxGTK3 instead of wxGTK2
5 %bcond_with tests # "make test" (requires $DISPLAY)
7 %define wxpkg wxGTK%{?with_gtk3:3}%{!?with_gtk3:2}%{?with_unicode:-unicode}
10 Summary: Wx::GLCanvas - interface to wxWidgets' OpenGL canvas
11 Summary(pl.UTF-8): Wx::GLCanvas - interfejs do "płótna" OpenGL biblioteki wxWidgets
12 Name: perl-Wx-GLCanvas
16 License: GPL v1+ or Artistic
17 Group: Development/Languages/Perl
18 Source0: http://www.cpan.org/modules/by-module/Wx/%{pdir}-%{pnam}-%{version}.tar.gz
19 # Source0-md5: 4f6475010bd6e4231e2dbb3fb52bc642
20 URL: http://search.cpan.org/dist/Wx-GLCanvas/
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Module-Pluggable
24 BuildRequires: perl(Wx::build::MakeMaker) >= 0.16
25 BuildRequires: perl-Wx-devel >= 0.57
26 BuildRequires: %{wxpkg}-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Wx::GLCanvas is an interface to wxWidgets' OpenGL canvas.
32 %description -l pl.UTF-8
33 Wx::GLCanvas to interfejs do "płótna" OpenGL biblioteki wxWidgets.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 OPTIMIZE="%{rpmcflags}"
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc Changes README.txt
59 %{perl_vendorarch}/Wx/GLCanvas.pm
60 %dir %{perl_vendorarch}/Wx/DemoModules
61 %{perl_vendorarch}/Wx/DemoModules/wxGLCanvas.pm
62 %dir %{perl_vendorarch}/auto/Wx/GLCanvas
63 %attr(755,root,root) %{perl_vendorarch}/auto/Wx/GLCanvas/GLCanvas.so
64 %{_mandir}/man3/Wx::GLCanvas.3pm*