# # spec file for package perl-Net-Twitter-Lite # # 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-Twitter-Lite Name: perl-Net-Twitter-Lite Version: 0.120.80 Release: 0 # 0.12008 -> normalize -> 0.120.80 %define cpan_version 0.12008 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl API library for the Twitter API URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MM/MMIMS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(JSON) >= 2.02 BuildRequires: perl(LWP::Protocol::https) BuildRequires: perl(LWP::UserAgent) >= 2.032 BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Tiny) >= 0.034 #BuildRequires: perl(Net::HTTP) >= >= 0, != 6.04, != 6.05 BuildRequires: perl(parent) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Simple) >= 0.98 BuildRequires: perl(URI) >= 1.40 BuildRequires: perl(URI::Escape) Requires: perl(HTTP::Request::Common) Requires: perl(JSON) >= 2.02 Requires: perl(LWP::Protocol::https) Requires: perl(LWP::UserAgent) >= 2.032 #Requires: perl(Net::HTTP) >= >= 0, != 6.04, != 6.05 Requires: perl(parent) Requires: perl(URI) >= 1.40 Requires: perl(URI::Escape) Provides: perl(Net::Twitter::Lite) = %{version} Provides: perl(Net::Twitter::Lite::API::V1) = %{version} Provides: perl(Net::Twitter::Lite::API::V1_1) = %{version} Provides: perl(Net::Twitter::Lite::Error) = %{version} Provides: perl(Net::Twitter::Lite::WithAPIv1_1) = %{version} Provides: perl(Net::Twitter::Lite::WrapResult) = %{version} %undefine __perllib_provides Recommends: perl(Net::OAuth) >= 0.25 %{perl_requires} # MANUAL BEGIN BuildRequires: perl(Net::HTTP) > 6.05 Requires: perl(Net::HTTP) > 6.05 # MANUAL END %description This module provides a perl interface to the Twitter API v1. It uses the same API definitions as Net::Twitter, but without the extra bells and whistles and without the additional dependencies. Same great taste, less filling. This module is related to, but is not part of the 'Net::Twitter' distribution. It's API methods and API method documentation are generated from 'Net::Twitter''s internals. It exists for those who cannot, or prefer not to install Moose and its dependencies. You should consider upgrading to 'Net::Twitter' for additional functionality, finer grained control over features, backwards compatibility with older versions of 'Net::Twitter', and additional error handling options. %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 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 examples README %license LICENSE %changelog