2011-01-21 20:16:49 +00:00
|
|
|
#
|
2015-04-20 06:48:58 +00:00
|
|
|
# spec file for package perl-Dist-Zilla-Plugin-Twitter
|
2011-01-21 20:16:49 +00:00
|
|
|
#
|
2024-08-09 19:03:45 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-01-21 20:16:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-08-09 19:03:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-21 20:16:49 +00:00
|
|
|
#
|
|
|
|
|
2015-04-20 06:48:58 +00:00
|
|
|
|
2024-08-09 19:03:45 +00:00
|
|
|
%define cpan_name Dist-Zilla-Plugin-Twitter
|
2011-01-21 20:16:49 +00:00
|
|
|
Name: perl-Dist-Zilla-Plugin-Twitter
|
2024-08-09 19:03:45 +00:00
|
|
|
Version: 0.26.0
|
2015-04-20 06:48:58 +00:00
|
|
|
Release: 0
|
2024-08-09 19:03:45 +00:00
|
|
|
# 0.026 -> normalize -> 0.26.0
|
|
|
|
%define cpan_version 0.026
|
2015-04-20 06:48:58 +00:00
|
|
|
License: Apache-2.0
|
2024-08-09 19:03:45 +00:00
|
|
|
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
|
2015-04-20 06:48:58 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:46 +02:00
|
|
|
Source100: README.md
|
2011-04-26 18:15:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-20 06:48:58 +00:00
|
|
|
BuildRequires: perl(Config::INI::Reader)
|
|
|
|
BuildRequires: perl(Config::INI::Writer)
|
2011-01-21 20:16:49 +00:00
|
|
|
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)
|
2015-04-20 06:48:58 +00:00
|
|
|
BuildRequires: perl(Dist::Zilla::Util)
|
2011-01-21 20:16:49 +00:00
|
|
|
BuildRequires: perl(HTTP::Response)
|
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
2024-08-09 19:03:45 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.28
|
2011-01-21 20:16:49 +00:00
|
|
|
BuildRequires: perl(Moose) >= 0.99
|
2015-04-20 06:48:58 +00:00
|
|
|
BuildRequires: perl(Net::Twitter) >= 4.00001
|
2011-01-21 20:16:49 +00:00
|
|
|
BuildRequires: perl(Params::Util)
|
|
|
|
BuildRequires: perl(Sub::Exporter)
|
2011-04-26 18:15:36 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2015-04-20 06:48:58 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2011-04-26 18:15:36 +00:00
|
|
|
BuildRequires: perl(WWW::Shorten) >= 3.02
|
|
|
|
BuildRequires: perl(WWW::Shorten::Simple)
|
|
|
|
BuildRequires: perl(WWW::Shorten::TinyURL)
|
2015-04-20 06:48:58 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean) >= 0.09
|
|
|
|
Requires: perl(Config::INI::Reader)
|
|
|
|
Requires: perl(Config::INI::Writer)
|
2011-01-21 20:16:49 +00:00
|
|
|
Requires: perl(Dist::Zilla) >= 4
|
|
|
|
Requires: perl(Dist::Zilla::Role::AfterRelease)
|
|
|
|
Requires: perl(Dist::Zilla::Role::TextTemplate)
|
2015-04-20 06:48:58 +00:00
|
|
|
Requires: perl(Dist::Zilla::Util)
|
2011-01-21 20:16:49 +00:00
|
|
|
Requires: perl(Moose) >= 0.99
|
2015-04-20 06:48:58 +00:00
|
|
|
Requires: perl(Net::Twitter) >= 4.00001
|
|
|
|
Requires: perl(Try::Tiny)
|
2011-04-26 18:15:36 +00:00
|
|
|
Requires: perl(WWW::Shorten) >= 3.02
|
|
|
|
Requires: perl(WWW::Shorten::Simple)
|
|
|
|
Requires: perl(WWW::Shorten::TinyURL)
|
2015-04-20 06:48:58 +00:00
|
|
|
Requires: perl(namespace::autoclean) >= 0.09
|
2024-08-09 19:03:45 +00:00
|
|
|
Provides: perl(Dist::Zilla::Plugin::Twitter) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-01-21 20:16:49 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2024-08-09 19:03:45 +00:00
|
|
|
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.
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
The default configuration is as follows:
|
|
|
|
|
2015-04-20 06:48:58 +00:00
|
|
|
[Twitter]
|
|
|
|
tweet_url = https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}/
|
|
|
|
tweet = Released {{$DIST}}-{{$VERSION}}{{$TRIAL}} {{$URL}} !META{resources}{repository}{web}
|
|
|
|
url_shortener = TinyURL
|
2011-01-21 20:16:49 +00:00
|
|
|
|
2024-08-09 19:03:45 +00:00
|
|
|
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.
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-09 19:03:45 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-09 19:03:45 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-20 06:48:58 +00:00
|
|
|
./Build test
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
%install
|
2024-08-09 19:03:45 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-01-21 20:16:49 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-08-09 19:03:45 +00:00
|
|
|
%doc Changes README README.mkdn README.PATCHING Todo
|
|
|
|
%license LICENSE
|
2011-01-21 20:16:49 +00:00
|
|
|
|
|
|
|
%changelog
|