Files
perl-GSM-SMS/perl-GSM-SMS.spec
2025-08-12 18:14:27 +02:00

109 lines
3.9 KiB
RPMSpec

#
# spec file for package perl-GSM-SMS
#
# 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 GSM-SMS
Name: perl-GSM-SMS
Version: 0.163.0
Release: 0
# 0.163 -> normalize -> 0.163.0
%define cpan_version 0.163
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl Modules For Smart Messaging
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JO/JOHANVDB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(Image::Magick)
BuildRequires: perl(LWP::Simple)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Log::Agent)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(URI::URL)
Requires: perl(HTTP::Request)
Requires: perl(Image::Magick)
Requires: perl(LWP::Simple)
Requires: perl(LWP::UserAgent)
Requires: perl(Log::Agent)
Requires: perl(URI::Escape)
Requires: perl(URI::URL)
Provides: perl(GSM::SMS::Config) = 0.161.0
Provides: perl(GSM::SMS::Config::Default)
Provides: perl(GSM::SMS::EMS) = 0.161.0
Provides: perl(GSM::SMS::EMS::Message) = 0.161.0
Provides: perl(GSM::SMS::NBS) = 0.161.0
Provides: perl(GSM::SMS::NBS::Frame) = 0.161.0
Provides: perl(GSM::SMS::NBS::Message) = 0.161.0
Provides: perl(GSM::SMS::NBS::Stack) = 0.161.0
Provides: perl(GSM::SMS::OTA::Bitmap) = 0.161.0
Provides: perl(GSM::SMS::OTA::CLIicon) = 0.161.0
Provides: perl(GSM::SMS::OTA::Config) = 0.161.0
Provides: perl(GSM::SMS::OTA::OTA) = 0.161.0
Provides: perl(GSM::SMS::OTA::Operatorlogo) = 0.161.0
Provides: perl(GSM::SMS::OTA::PictureMessage)
Provides: perl(GSM::SMS::OTA::RTTTL) = 0.100.0
Provides: perl(GSM::SMS::OTA::VCard) = 0.161.0
Provides: perl(GSM::SMS::PDU) = 0.161.0
Provides: perl(GSM::SMS::Spool) = 0.161.0
Provides: perl(GSM::SMS::Support::RTTTL2MIDI) = 0.161.0
Provides: perl(GSM::SMS::Support::SerialPort) = 0.161.0
Provides: perl(GSM::SMS::Transport) = 0.161.0
Provides: perl(GSM::SMS::Transport::File) = 0.161.0
Provides: perl(GSM::SMS::Transport::MCube) = 0.161.0
Provides: perl(GSM::SMS::Transport::NovelSoft) = 0.161.0
Provides: perl(GSM::SMS::Transport::Serial) = 0.161.0
Provides: perl(GSM::SMS::Transport::Transport) = 0.161.0
Provides: perl(GSM::SMS::Transport::XmlRpc) = 0.161.0
Provides: perl(GSM::SMS::TransportRouter::Simple) = 0.161.0
Provides: perl(GSM::SMS::TransportRouter::TransportRouter)
Provides: perl(GSM::SMS::TransportRouterFactory)
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(Device::SerialPort)
# MANUAL END
%description
Perl Modules For Smart Messaging
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
# test is failing
# make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes DISCLAIMER docs examples README
%changelog