]>
Commit | Line | Data |
---|---|---|
eecd02a4 AM |
1 | # |
2 | # Conditional build: | |
6621a77d JB |
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) | |
eecd02a4 | 6 | # |
6621a77d | 7 | %define wxpkg wxGTK%{?with_gtk3:3}%{!?with_gtk3:2}%{?with_unicode:-unicode} |
eecd02a4 AM |
8 | %define pdir Wx |
9 | %define pnam GLCanvas | |
10 | %include /usr/lib/rpm/macros.perl | |
11 | Summary: Wx::GLCanvas - interface to wxWidgets' OpenGL canvas | |
6621a77d | 12 | Summary(pl.UTF-8): Wx::GLCanvas - interfejs do "płótna" OpenGL biblioteki wxWidgets |
eecd02a4 AM |
13 | Name: perl-Wx-GLCanvas |
14 | Version: 0.09 | |
15 | Release: 1 | |
16 | # same as perl | |
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 | |
eecd02a4 | 24 | BuildRequires: perl(Wx::build::MakeMaker) >= 0.16 |
6621a77d JB |
25 | BuildRequires: perl-Wx-devel >= 0.57 |
26 | BuildRequires: %{wxpkg}-devel | |
eecd02a4 AM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
6621a77d JB |
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. | |
eecd02a4 AM |
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 | |
6621a77d | 59 | %{perl_vendorarch}/Wx/GLCanvas.pm |
eecd02a4 AM |
60 | %dir %{perl_vendorarch}/Wx/DemoModules |
61 | %{perl_vendorarch}/Wx/DemoModules/wxGLCanvas.pm | |
62 | %dir %{perl_vendorarch}/auto/Wx/GLCanvas | |
6621a77d JB |
63 | %attr(755,root,root) %{perl_vendorarch}/auto/Wx/GLCanvas/GLCanvas.so |
64 | %{_mandir}/man3/Wx::GLCanvas.3pm* |