# # spec file for package perl-Dist-Zilla-Plugin-Twitter # # 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 Dist-Zilla-Plugin-Twitter Name: perl-Dist-Zilla-Plugin-Twitter Version: 0.26.0 Release: 0 # 0.026 -> normalize -> 0.26.0 %define cpan_version 0.026 License: Apache-2.0 Summary: Twitter when you release with Dist::Zilla URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DO/DOHERTY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Config::INI::Reader) BuildRequires: perl(Config::INI::Writer) BuildRequires: perl(Dist::Zilla) >= 4 BuildRequires: perl(Dist::Zilla::App::Tester) BuildRequires: perl(Dist::Zilla::Role::AfterRelease) BuildRequires: perl(Dist::Zilla::Role::Releaser) BuildRequires: perl(Dist::Zilla::Role::TextTemplate) BuildRequires: perl(Dist::Zilla::Tester) BuildRequires: perl(Dist::Zilla::Util) BuildRequires: perl(HTTP::Response) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Moose) >= 0.99 BuildRequires: perl(Net::Twitter) >= 4.00001 BuildRequires: perl(Params::Util) BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Try::Tiny) BuildRequires: perl(WWW::Shorten) >= 3.02 BuildRequires: perl(WWW::Shorten::Simple) BuildRequires: perl(WWW::Shorten::TinyURL) BuildRequires: perl(namespace::autoclean) >= 0.09 Requires: perl(Config::INI::Reader) Requires: perl(Config::INI::Writer) Requires: perl(Dist::Zilla) >= 4 Requires: perl(Dist::Zilla::Role::AfterRelease) Requires: perl(Dist::Zilla::Role::TextTemplate) Requires: perl(Dist::Zilla::Util) Requires: perl(Moose) >= 0.99 Requires: perl(Net::Twitter) >= 4.00001 Requires: perl(Try::Tiny) Requires: perl(WWW::Shorten) >= 3.02 Requires: perl(WWW::Shorten::Simple) Requires: perl(WWW::Shorten::TinyURL) Requires: perl(namespace::autoclean) >= 0.09 Provides: perl(Dist::Zilla::Plugin::Twitter) = %{version} %undefine __perllib_provides %{perl_requires} %description This plugin will use Net::Twitter to send a release notice to Twitter. By default, it will include a link to release on http://metacpan.org. The default configuration is as follows: [Twitter] tweet_url = https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}/ tweet = Released {{$DIST}}-{{$VERSION}}{{$TRIAL}} {{$URL}} !META{resources}{repository}{web} url_shortener = TinyURL The 'tweet_url' is shortened with WWW::Shorten::TinyURL or whichever other service you choose (use 'none' to use the full URL, in which case Twitter will shorten it for you) and appended to the 'tweet' message. %prep %autosetup -n %{cpan_name}-%{cpan_version} %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 README README.mkdn README.PATCHING Todo %license LICENSE %changelog