File perl-Alien-gdal.spec of Package perl-Alien-gdal

#
# spec file for package perl-Alien-gdal
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           perl-Alien-gdal
Version:        1.21
Release:        0
%define cpan_name Alien-gdal
Summary:        Compile GDAL, the Geographic Data Abstraction Library
License:        Artistic-1.0 OR GPL-1.0-or-later
Group:          Development/Libraries/Perl
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/S/SL/SLAFFAN/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Alien::Base) >= 1.41
BuildRequires:  perl(Alien::Build) >= 2.25
BuildRequires:  perl(Alien::Build::MM) >= 1.74
BuildRequires:  perl(Alien::Build::Plugin::Build::SearchDep) >= 0.53
BuildRequires:  perl(Alien::Build::Plugin::Cleanse::BuildDir)
BuildRequires:  perl(Alien::MSYS) >= 0.07
BuildRequires:  perl(Alien::geos::af) >= 1.005
BuildRequires:  perl(Alien::libtiff)
BuildRequires:  perl(Alien::patch)
BuildRequires:  perl(Alien::proj) >= 1.13
BuildRequires:  perl(Alien::spatialite)
BuildRequires:  perl(Alien::sqlite) >= 1.02
BuildRequires:  perl(Archive::Tar)
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Env::ShellWords) >= 0.01
BuildRequires:  perl(FFI::CheckLib) >= 0.23
BuildRequires:  perl(File::Find::Rule)
BuildRequires:  perl(HTTP::Tiny) >= 0.044
BuildRequires:  perl(IO::Zlib)
BuildRequires:  perl(Mojo::DOM58) >= 1.00
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(PkgConfig) >= 0.19026
BuildRequires:  perl(Sort::Versions)
BuildRequires:  perl(Test::Alien)
BuildRequires:  perl(URI)
BuildRequires:  perl(URI::Escape)
BuildRequires:  perl(parent)
Requires:       perl(Alien::Base) >= 1.41
Requires:       perl(Alien::Build) >= 1.74
Requires:       perl(Capture::Tiny)
Requires:       perl(Path::Tiny)
%{perl_requires}

%description
GDAL is the Geographic Data Abstraction Library. See http://www.gdal.org.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc 0001-Enable-shared-build-on-freebsd-10.patch alienfile Alien-gdal.ppd Changes patch_isnan_gcc.patch README.md
%license LICENSE

%changelog