perl-Alien-wxWidgets/perl-Alien-wxWidgets.spec

62 lines
1.8 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
Name: perl-Alien-wxWidgets
Version: 0.51
Release: 0
Summary: Building, finding and using wxWidgets binaries
# http://search.cpan.org/CPAN/authors/id/M/MB/MBARBON/Alien-wxWidgets-%{version}.tar.gz
Source: Alien-wxWidgets-%{version}.tar.bz2
Patch1: perl-Alien-wxWidgets-do_not_build_wxgtk.patch
Patch2: perl-Alien-wxWidgets-ignore_cbuilder_version.patch
URL: http://search.cpan.org/dist/Alien-wxWidgets
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: wxGTK-devel
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Spec) >= 1.50
BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(ExtUtils::CBuilder) >= 0.24
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Pluggable) >= 2.6
BuildRequires: gcc-c++
Requires: perl(Module::Pluggable) >= 2.6
%description
Please see Alien for the manifesto of the Alien namespace.
In short "Alien::wxWidgets" can be used to detect and get configuration
settings from an installed wxWidgets.
%prep
%setup -q -n "Alien-wxWidgets-%{version}"
%patch1
%patch2
%build
yes no | %__perl ./Build.PL
yes no | ./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README.txt
%dir %{perl_vendorarch}/Alien
%{perl_vendorarch}/Alien/wxWidgets
%{perl_vendorarch}/Alien/wxWidgets.pm
%dir %{perl_vendorarch}/auto/Alien
%{perl_vendorarch}/auto/Alien/wxWidgets
%doc %{perl_man3dir}/Alien::wxWidgets.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Alien::wxWidgets::*.%{perl_man3ext}%{ext_man}