]> git.pld-linux.org Git - packages/perl-Wx-GLCanvas.git/blame - perl-Wx-GLCanvas.spec
- tests disabled by default, added more wx BRs
[packages/perl-Wx-GLCanvas.git] / perl-Wx-GLCanvas.spec
CommitLineData
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
11Summary: Wx::GLCanvas - interface to wxWidgets' OpenGL canvas
6621a77d 12Summary(pl.UTF-8): Wx::GLCanvas - interfejs do "płótna" OpenGL biblioteki wxWidgets
eecd02a4
AM
13Name: perl-Wx-GLCanvas
14Version: 0.09
15Release: 1
16# same as perl
17License: GPL v1+ or Artistic
18Group: Development/Languages/Perl
19Source0: http://www.cpan.org/modules/by-module/Wx/%{pdir}-%{pnam}-%{version}.tar.gz
20# Source0-md5: 4f6475010bd6e4231e2dbb3fb52bc642
21URL: http://search.cpan.org/dist/Wx-GLCanvas/
22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
eecd02a4 24BuildRequires: perl(Wx::build::MakeMaker) >= 0.16
6621a77d
JB
25BuildRequires: perl-Wx-devel >= 0.57
26BuildRequires: %{wxpkg}-devel
eecd02a4
AM
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
6621a77d
JB
30Wx::GLCanvas is an interface to wxWidgets' OpenGL canvas.
31
32%description -l pl.UTF-8
33Wx::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
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -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*
This page took 0.09165 seconds and 4 git commands to generate.