3 %bcond_without unicode # ANSI instead of Unicode version of wxGTK
4 %bcond_with 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 %include /usr/lib/rpm/macros.perl
11 Summary: Wx::GLCanvas - interface to wxWidgets' OpenGL canvas
12 Summary(pl.UTF-8): Wx::GLCanvas - interfejs do "płótna" OpenGL biblioteki wxWidgets
13 Name: perl-Wx-GLCanvas
17 License: GPL v1+ or Artistic
18 Group: Development/Languages/Perl
19 Source0: http://www.cpan.org/modules/by-module/Wx/%{pdir}-%{pnam}-%{version}.tar.gz
20 # Source0-md5: 4f6475010bd6e4231e2dbb3fb52bc642
21 URL: http://search.cpan.org/dist/Wx-GLCanvas/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: perl-Module-Pluggable
25 BuildRequires: perl(Wx::build::MakeMaker) >= 0.16
26 BuildRequires: perl-Wx-devel >= 0.57
27 BuildRequires: %{wxpkg}-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Wx::GLCanvas is an interface to wxWidgets' OpenGL canvas.
33 %description -l pl.UTF-8
34 Wx::GLCanvas to interfejs do "płótna" OpenGL biblioteki wxWidgets.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc Changes README.txt
60 %{perl_vendorarch}/Wx/GLCanvas.pm
61 %dir %{perl_vendorarch}/Wx/DemoModules
62 %{perl_vendorarch}/Wx/DemoModules/wxGLCanvas.pm
63 %dir %{perl_vendorarch}/auto/Wx/GLCanvas
64 %attr(755,root,root) %{perl_vendorarch}/auto/Wx/GLCanvas/GLCanvas.so
65 %{_mandir}/man3/Wx::GLCanvas.3pm*