File perl-Astro-App-Satpass2.spec of Package perl-Astro-App-Satpass2

#
# spec file for package perl-Astro-App-Satpass2
#
# Copyright (c) 2025 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/
#


%define cpan_name Astro-App-Satpass2
Name:           perl-Astro-App-Satpass2
Version:        0.057
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Predict satellite visibility using Astro::Coord::ECI
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/W/WY/WYANT/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Astro::Coord::ECI) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::Moon) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::Star) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::Sun) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::TLE) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::TLE::Set) >= 0.131
BuildRequires:  perl(Astro::Coord::ECI::Utils) >= 0.131
BuildRequires:  perl(Clone)
BuildRequires:  perl(File::HomeDir) >= 0.93
BuildRequires:  perl(Getopt::Long) >= 2.39
BuildRequires:  perl(IO::File) >= 1.14
BuildRequires:  perl(IPC::System::Simple)
BuildRequires:  perl(Module::Build) >= 0.420000
BuildRequires:  perl(Scalar::Util) >= 1.26
BuildRequires:  perl(Template) >= 2.21
BuildRequires:  perl(Template::Provider) >= 2.21
BuildRequires:  perl(Test2::Plugin::BailOnFail)
BuildRequires:  perl(Test2::Tools::Explain)
BuildRequires:  perl(Test2::Tools::LoadModule)
BuildRequires:  perl(Test2::V0)
BuildRequires:  perl(parent)
Requires:       perl(Astro::Coord::ECI) >= 0.131
Requires:       perl(Astro::Coord::ECI::Moon) >= 0.131
Requires:       perl(Astro::Coord::ECI::Star) >= 0.131
Requires:       perl(Astro::Coord::ECI::Sun) >= 0.131
Requires:       perl(Astro::Coord::ECI::TLE) >= 0.131
Requires:       perl(Astro::Coord::ECI::TLE::Set) >= 0.131
Requires:       perl(Astro::Coord::ECI::Utils) >= 0.131
Requires:       perl(Clone)
Requires:       perl(File::HomeDir) >= 0.93
Requires:       perl(Getopt::Long) >= 2.39
Requires:       perl(IO::File) >= 1.14
Requires:       perl(IPC::System::Simple)
Requires:       perl(Scalar::Util) >= 1.26
Requires:       perl(Template) >= 2.21
Requires:       perl(Template::Provider) >= 2.21
Requires:       perl(parent)
%{perl_requires}

%description
This class implements an application to predict satellite visibility and
related phenomena. It is a mostly-compatible rewrite and eventual
replacement of the _satpass_ script in distribution 'Astro-satpass', aimed
at making it easier to test, and removing some of the odder cruft that has
accumulated in the _satpass_ script.

The easiest way to make use of this class is via the bundled _satpass2_
script, which simply calls the run() method. Astro::App::Satpass2::TUTORIAL
covers getting started with this script. If you do nothing else, see the
tutorial on setting up an initialization file, since the satpass2 script
will be much more easy to use if you configure some things up front.

You can also instantiate an 'Astro::App::Satpass2' object yourself and
access all its functionality programmatically. If you are doing this you
may still want to consult the TUTORIAL, because the _satpass2_ commands
correspond directly to 'Astro::App::Satpass2' methods.

%prep
%autosetup  -n %{cpan_name}-%{version}

find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644

%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%doc Changes CONTRIBUTING README SECURITY

%changelog
openSUSE Build Service is sponsored by