74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-GPSD3
|
|
#
|
|
# Copyright (c) 2024 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 Net-GPSD3
|
|
Name: perl-Net-GPSD3
|
|
Version: 0.190.0
|
|
Release: 0
|
|
# 0.19 -> normalize -> 0.190.0
|
|
%define cpan_version 0.19
|
|
#Upstream: This program is free software licensed under the... The BSD License The full text of the license can be found in the LICENSE file included with this module.
|
|
License: BSD-3-Clause
|
|
Summary: Interface to the gpsd server daemon protocol versions 3 (JSON)
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MR/MRDVT/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(DateTime)
|
|
BuildRequires: perl(DateTime::Format::W3CDTF) >= 0.06
|
|
BuildRequires: perl(GPS::Point) >= 0.100
|
|
BuildRequires: perl(IO::Socket::INET6)
|
|
BuildRequires: perl(JSON::XS)
|
|
Requires: perl(DateTime)
|
|
Requires: perl(DateTime::Format::W3CDTF) >= 0.06
|
|
Requires: perl(GPS::Point) >= 0.100
|
|
Requires: perl(IO::Socket::INET6)
|
|
Requires: perl(JSON::XS)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Net::GPSD3 provides an object client interface to the gpsd server daemon
|
|
utilizing the version 3 protocol. gpsd is an open source GPS daemon from
|
|
http://www.catb.org/gpsd/ Support for Version 3 of the protocol (JSON) was
|
|
added to the daemon in version 2.90. If your daemon is before 2.90
|
|
(protocol 2.X), please use the Net::GPSD package.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README Todo
|
|
%license LICENSE
|
|
|
|
%changelog
|