]> git.pld-linux.org Git - packages/perl-Wx-GLCanvas.git/commitdiff
- tests disabled by default, added more wx BRs
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 16 Jun 2015 18:52:19 +0000 (20:52 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 16 Jun 2015 18:52:19 +0000 (20:52 +0200)
perl-Wx-GLCanvas.spec

index 43960e663a3a24c3c3ccb5b0504cd326ebb726c4..1e30332df27ce9716accd9c1faf157f27d8e8c98 100644 (file)
@@ -1,11 +1,15 @@
 #
 # Conditional build:
-%bcond_without tests           # do not perform "make test"
+%bcond_without unicode # ANSI instead of Unicode version of wxGTK
+%bcond_with    gtk3    # wxGTK3 instead of wxGTK2
+%bcond_with    tests   # "make test" (requires $DISPLAY)
 #
+%define                wxpkg   wxGTK%{?with_gtk3:3}%{!?with_gtk3:2}%{?with_unicode:-unicode}
 %define                pdir    Wx
 %define                pnam    GLCanvas
 %include       /usr/lib/rpm/macros.perl
 Summary:       Wx::GLCanvas - interface to wxWidgets' OpenGL canvas
+Summary(pl.UTF-8):     Wx::GLCanvas - interfejs do "płótna" OpenGL biblioteki wxWidgets
 Name:          perl-Wx-GLCanvas
 Version:       0.09
 Release:       1
@@ -17,15 +21,16 @@ Source0:    http://www.cpan.org/modules/by-module/Wx/%{pdir}-%{pnam}-%{version}.tar
 URL:           http://search.cpan.org/dist/Wx-GLCanvas/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{with tests}
 BuildRequires: perl(Wx::build::MakeMaker) >= 0.16
-BuildRequires: perl-Wx >= 0.57
-%endif
+BuildRequires: perl-Wx-devel >= 0.57
+BuildRequires: %{wxpkg}-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The documentation for this module is included in the main
-wxPerl distribution (wxGLCanvas).
+Wx::GLCanvas is an interface to wxWidgets' OpenGL canvas.
+
+%description -l pl.UTF-8
+Wx::GLCanvas to interfejs do "płótna" OpenGL biblioteki wxWidgets.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
@@ -51,9 +56,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README.txt
-%{perl_vendorarch}/Wx/*.pm
+%{perl_vendorarch}/Wx/GLCanvas.pm
 %dir %{perl_vendorarch}/Wx/DemoModules
 %{perl_vendorarch}/Wx/DemoModules/wxGLCanvas.pm
 %dir %{perl_vendorarch}/auto/Wx/GLCanvas
-%attr(755,root,root) %{perl_vendorarch}/auto/Wx/GLCanvas/*.so
-%{_mandir}/man3/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Wx/GLCanvas/GLCanvas.so
+%{_mandir}/man3/Wx::GLCanvas.3pm*
This page took 0.132816 seconds and 4 git commands to generate.