2011-10-21 23:07:47 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-App-Nopaste
|
|
|
|
#
|
2019-07-23 15:45:18 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-10-21 23:07:47 +02: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.
|
|
|
|
|
2019-07-23 15:45:18 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-21 23:07:47 +02:00
|
|
|
#
|
|
|
|
|
2012-09-04 15:18:09 +02:00
|
|
|
|
2010-08-31 23:33:17 +02:00
|
|
|
Name: perl-App-Nopaste
|
2019-07-23 15:45:18 +02:00
|
|
|
Version: 1.013
|
2010-08-31 23:33:17 +02:00
|
|
|
Release: 0
|
2013-05-15 17:26:43 +02:00
|
|
|
%define cpan_name App-Nopaste
|
2015-04-15 20:39:14 +02:00
|
|
|
Summary: Easy access to any pastebin
|
2018-07-16 08:45:50 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-12-21 12:36:30 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2019-07-23 15:45:18 +02:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-02-28 15:19:08 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
2013-05-15 17:43:42 +02:00
|
|
|
Source1: SusePaste.pm
|
2015-04-15 20:39:14 +02:00
|
|
|
Source2: cpanspec.yml
|
2013-05-15 17:26:43 +02:00
|
|
|
BuildArch: noarch
|
2011-10-21 23:07:47 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-05-15 17:26:43 +02:00
|
|
|
BuildRequires: perl
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl-macros
|
2015-04-15 20:39:14 +02:00
|
|
|
BuildRequires: perl(Browser::Open)
|
2016-05-28 14:49:17 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120620
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl(Class::Load)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive)
|
2015-04-15 20:39:14 +02:00
|
|
|
BuildRequires: perl(JSON::MaybeXS)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(LWP::Protocol)
|
2018-07-16 08:45:50 +02:00
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
2016-05-28 14:49:17 +02:00
|
|
|
BuildRequires: perl(Module::Metadata)
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2016-05-28 14:49:17 +02:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2015-04-15 20:39:14 +02:00
|
|
|
BuildRequires: perl(Test::Deep)
|
2016-05-28 14:49:17 +02:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2013-05-15 17:26:43 +02:00
|
|
|
BuildRequires: perl(URI::Escape)
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl(WWW::Mechanize)
|
2016-05-28 14:49:17 +02:00
|
|
|
BuildRequires: perl(namespace::clean) >= 0.19
|
2016-09-17 22:15:31 +02:00
|
|
|
BuildRequires: perl(parent)
|
2015-04-15 20:39:14 +02:00
|
|
|
Requires: perl(Browser::Open)
|
2013-05-15 17:26:43 +02:00
|
|
|
Requires: perl(Class::Load)
|
2014-02-09 16:55:31 +01:00
|
|
|
Requires: perl(Getopt::Long::Descriptive)
|
2015-04-15 20:39:14 +02:00
|
|
|
Requires: perl(JSON::MaybeXS)
|
2018-07-16 08:45:50 +02:00
|
|
|
Requires: perl(LWP::UserAgent)
|
2010-08-31 23:33:17 +02:00
|
|
|
Requires: perl(Module::Pluggable)
|
2014-02-09 16:55:31 +01:00
|
|
|
Requires: perl(Module::Runtime)
|
2016-05-28 14:49:17 +02:00
|
|
|
Requires: perl(Path::Tiny)
|
2013-05-15 17:26:43 +02:00
|
|
|
Requires: perl(URI::Escape)
|
2012-09-04 15:18:09 +02:00
|
|
|
Requires: perl(WWW::Mechanize)
|
2016-05-28 14:49:17 +02:00
|
|
|
Requires: perl(namespace::clean) >= 0.19
|
2016-09-17 22:15:31 +02:00
|
|
|
Requires: perl(parent)
|
2014-02-09 16:55:31 +01:00
|
|
|
Recommends: perl(Browser::Open)
|
|
|
|
Recommends: perl(Clipboard)
|
|
|
|
Recommends: perl(WWW::Pastebin::PastebinCom::Create) >= 1.003
|
2013-05-15 17:26:43 +02:00
|
|
|
%{perl_requires}
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pastebins (also known as nopaste sites) let you post text, usually code,
|
|
|
|
for public viewing. They're used a lot in IRC channels to show code that
|
|
|
|
would normally be too long to give directly in the channel (hence the name
|
|
|
|
nopaste).
|
|
|
|
|
|
|
|
Each pastebin is slightly different. When one pastebin goes down (I'm
|
2016-05-28 14:49:17 +02:00
|
|
|
looking at you, http://paste.husk.org), then you have to find a new one.
|
|
|
|
And if you usually use a script to publish text, then it's too much hassle.
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
This module aims to smooth out the differences between pastebins, and
|
|
|
|
provides redundancy: if one site doesn't work, it just tries a different
|
|
|
|
one.
|
|
|
|
|
2016-05-28 14:49:17 +02:00
|
|
|
It's also modular: you only need to put on CPAN a
|
|
|
|
App::Nopaste::Service::Foo module and anyone can begin using it.
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%prep
|
2013-05-15 17:26:43 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2016-05-28 14:49:17 +02:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2015-04-15 20:39:14 +02:00
|
|
|
# MANUAL BEGIN
|
|
|
|
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
|
|
|
|
# MANUAL END
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%build
|
2019-07-23 15:45:18 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2013-05-15 17:26:43 +02:00
|
|
|
|
|
|
|
%check
|
2019-07-23 15:45:18 +02:00
|
|
|
make test
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%install
|
2015-04-15 20:39:14 +02:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-05-15 17:26:43 +02:00
|
|
|
%perl_gen_filelist
|
2010-08-31 23:33:17 +02:00
|
|
|
|
2013-05-15 17:26:43 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2017-02-28 15:19:08 +01:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENSE
|
2010-08-31 23:33:17 +02:00
|
|
|
|
2011-10-21 23:07:47 +02:00
|
|
|
%changelog
|