]> git.pld-linux.org Git - packages/perl-Wx-GLCanvas.git/blob - perl-Wx-GLCanvas.spec
- rebuild with wxWidgets 3.2 and gtk3, rel 13
[packages/perl-Wx-GLCanvas.git] / perl-Wx-GLCanvas.spec
1 #
2 # Conditional build:
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)
6 #
7 %define         wxpkg   wxGTK%{?with_gtk3:3}%{!?with_gtk3:2}%{?with_unicode:-unicode}
8 %define         pdir    Wx
9 %define         pnam    GLCanvas
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
13 Version:        0.09
14 Release:        13
15 # same as perl
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)
28
29 %description
30 Wx::GLCanvas is an interface to wxWidgets' OpenGL canvas.
31
32 %description -l pl.UTF-8
33 Wx::GLCanvas to interfejs do "płótna" OpenGL biblioteki wxWidgets.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make} \
42         CC="%{__cxx}" \
43         OPTIMIZE="%{rpmcflags}"
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} pure_install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
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*
This page took 0.2444 seconds and 4 git commands to generate.