From: Jakub Bogusz Date: Tue, 16 Jun 2015 18:52:19 +0000 (+0200) Subject: - tests disabled by default, added more wx BRs X-Git-Tag: auto/th/perl-Wx-GLCanvas-0.09-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=6621a77da4b645eff342cad2a28e7353cc726e8b;p=packages%2Fperl-Wx-GLCanvas.git - tests disabled by default, added more wx BRs --- diff --git a/perl-Wx-GLCanvas.spec b/perl-Wx-GLCanvas.spec index 43960e6..1e30332 100644 --- a/perl-Wx-GLCanvas.spec +++ b/perl-Wx-GLCanvas.spec @@ -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*