b22779271d
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Alien-wxWidgets?expand=0&rev=9
81 lines
2.6 KiB
RPMSpec
81 lines
2.6 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
#
|
|
# spec file for package perl-Alien-wxWidgets
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
Name: perl-Alien-wxWidgets
|
|
Version: 0.51
|
|
Release: 0
|
|
Summary: Building, finding and using wxWidgets binaries
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MB/MBARBON/Alien-wxWidgets-%{version}.tar.gz
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: perl = %{perl_version}
|
|
%if %suse_version > 1130
|
|
BuildRequires: wxWidgets-ansi-devel
|
|
%else
|
|
BuildRequires: wxGTK-devel
|
|
%endif
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(File::Spec) >= 1.50
|
|
BuildRequires: perl(Module::Build) >= 0.28
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
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}
|
|
|
|
%changelog
|