Files
perl-Map-Tube-Exception/perl-Map-Tube-Exception.spec
2025-08-12 18:15:16 +02:00

107 lines
4.7 KiB
RPMSpec

#
# spec file for package perl-Map-Tube-Exception
#
# 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 Map-Tube-Exception
Name: perl-Map-Tube-Exception
Version: 3.240.0
Release: 0
# 3.24 -> normalize -> 3.240.0
%define cpan_version 3.24
License: Artistic-2.0
Summary: Base exception package as Moo Role for Map::Tube::* family
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Moo) >= 2.000000
BuildRequires: perl(Moo::Role)
BuildRequires: perl(Throwable) >= 0.200011
BuildRequires: perl(namespace::autoclean) >= 0.28
Requires: perl(Moo) >= 2.000000
Requires: perl(Moo::Role)
Requires: perl(Throwable) >= 0.200011
Requires: perl(namespace::autoclean) >= 0.28
Provides: perl(Map::Tube::Exception) = %{version}
Provides: perl(Map::Tube::Exception::DuplicateStationId) = %{version}
Provides: perl(Map::Tube::Exception::DuplicateStationName) = %{version}
Provides: perl(Map::Tube::Exception::FoundMultiLinedStation) = %{version}
Provides: perl(Map::Tube::Exception::FoundMultiLinkedStation) = %{version}
Provides: perl(Map::Tube::Exception::FoundSelfLinkedStation) = %{version}
Provides: perl(Map::Tube::Exception::FoundUnsupportedMap) = %{version}
Provides: perl(Map::Tube::Exception::FoundUnsupportedMapDataFormat) = %{version}
Provides: perl(Map::Tube::Exception::FoundUnsupportedObject) = %{version}
Provides: perl(Map::Tube::Exception::InvalidBackgroundColor) = %{version}
Provides: perl(Map::Tube::Exception::InvalidColorHexCode) = %{version}
Provides: perl(Map::Tube::Exception::InvalidColorName) = %{version}
Provides: perl(Map::Tube::Exception::InvalidLineColor) = %{version}
Provides: perl(Map::Tube::Exception::InvalidLineId) = %{version}
Provides: perl(Map::Tube::Exception::InvalidLineName) = %{version}
Provides: perl(Map::Tube::Exception::InvalidLineStructure) = %{version}
Provides: perl(Map::Tube::Exception::InvalidNodeObject) = %{version}
Provides: perl(Map::Tube::Exception::InvalidStationId) = %{version}
Provides: perl(Map::Tube::Exception::InvalidStationLineId) = %{version}
Provides: perl(Map::Tube::Exception::InvalidStationName) = %{version}
Provides: perl(Map::Tube::Exception::InvalidStationStructure) = %{version}
Provides: perl(Map::Tube::Exception::InvalidSupportedObject) = %{version}
Provides: perl(Map::Tube::Exception::MalformedMapData) = %{version}
Provides: perl(Map::Tube::Exception::MissingLineId) = %{version}
Provides: perl(Map::Tube::Exception::MissingLineName) = %{version}
Provides: perl(Map::Tube::Exception::MissingMapData) = %{version}
Provides: perl(Map::Tube::Exception::MissingNodeObject) = %{version}
Provides: perl(Map::Tube::Exception::MissingPluginFormatter) = %{version}
Provides: perl(Map::Tube::Exception::MissingPluginFuzzyFind) = %{version}
Provides: perl(Map::Tube::Exception::MissingPluginGraph) = %{version}
Provides: perl(Map::Tube::Exception::MissingStationId) = %{version}
Provides: perl(Map::Tube::Exception::MissingStationName) = %{version}
Provides: perl(Map::Tube::Exception::MissingSupportedMap) = %{version}
Provides: perl(Map::Tube::Exception::MissingSupportedObject) = %{version}
Provides: perl(Map::Tube::Exception::RouteNotFound) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Base exception package as Moo Role for Map::Tube::* family.
Extracted out of the distribution Map::Tube v3.0,so that it can be shared
with Map::Tube and it's Map::Tube::* family. It has been re-structured in
the process.
%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
%license LICENSE
%changelog