perl-Wx/perl-Wx.spec

Name: perl-Wx
Summary: Interface to the wxWidgets cross-platform GUI toolkit
Version: 0.86
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Wx/
Description: perl-Wx is a Perl module to interface to the wxWidgets cross-platform GUI toolkit.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Mattia Barbon <mbarbon$cpan,org>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Wx

Summary: Interface to the wxWidgets cross-platform GUI toolkit
Name: perl-Wx
Version: 0.86
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Wx/

Source: http://www.cpan.org/modules/by-module/Wx/Wx-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(Alien::wxWidgets) >= 0.25
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
BuildRequires: perl(File::Spec::Functions) >= 0.82
BuildRequires: perl(Test::Harness) >= 2.26
BuildRequires: perl(Test::More) >= 0.45
BuildRequires: wxGTK-devel

%description
perl-Wx is a Perl module to interface to the wxWidgets cross-platform GUI toolkit.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" --wx-version="$(wx-config --version)" --wx-toolkit="gtk2" --wx-unicode
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find docs/ samples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST MANIFEST.SKIP META.yml README.txt docs/ samples/
%doc %{_mandir}/man1/wxperl_overload.1*
%doc %{_mandir}/man1/wxperl_xspp.1*
#%doc %{_mandir}/man3/build::Wx::*.3pm*
%doc %{_mandir}/man3/Wx.3pm*
%doc %{_mandir}/man3/Wx::*.3pm*
%{_bindir}/wxperl_overload
%{_bindir}/wxperl_xspp
%{perl_vendorarch}/auto/Wx/
%{perl_vendorarch}/Wx/
%{perl_vendorarch}/Wx.pm

%changelog
* Tue Sep 23 2008 Dag Wieers <dag@wieers.com> - 0.86-1
- Updated to release 0.86.

* Wed May 14 2008 Dag Wieers <dag@wieers.com> - 0.82-1
- Updated to release 0.82.

* Wed Jan 23 2008 Dag Wieers <dag@wieers.com> - 0.81-1
- Updated to release 0.81.

* Mon Nov 19 2007 Dag Wieers <dag@wieers.com> - 0.80-1
- Updated to release 0.80.

* Sun Aug 12 2007 Dag Wieers <dag@wieers.com> - 0.75-1
- Updated to release 0.75.

* Fri May 04 2007 Dag Wieers <dag@wieers.com> - 0.74-1
- Initial package. (using DAR)