commit eecd02a4838e2128cb679239f7ca6cc61b390327
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Wed Jun 10 00:46:33 2015 +0200

    - initial

 perl-Wx-GLCanvas.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/perl-Wx-GLCanvas.spec b/perl-Wx-GLCanvas.spec
new file mode 100644
index 0000000..43960e6
--- /dev/null
+++ b/perl-Wx-GLCanvas.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Wx
+%define                pnam    GLCanvas
+%include       /usr/lib/rpm/macros.perl
+Summary:       Wx::GLCanvas - interface to wxWidgets' OpenGL canvas
+Name:          perl-Wx-GLCanvas
+Version:       0.09
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-module/Wx/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 4f6475010bd6e4231e2dbb3fb52bc642
+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
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The documentation for this module is included in the main
+wxPerl distribution (wxGLCanvas).
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cxx}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README.txt
+%{perl_vendorarch}/Wx/*.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/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Wx-GLCanvas.git/commitdiff/eecd02a4838e2128cb679239f7ca6cc61b390327

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to