forked from pool/perl-App-Nopaste
a57a24ad7d
Fix the language mappins for Ubuntu's pastebin (Sergey Romanov) Don't need to load Moose in the tests (Sergey Romanov) Decode incoming text as utf8 (Jesse Luehrs) Support for GITHUB_USER and GITHUB_PASS (Rafael Kitover) Name the gist file `nopaste` not `nopaste.txt` for possible syntax highlighting (Rafael Kitover) Use decode_json not a regular expression to decode Gist response body (Shawn M Moore) Give a hint to perldoc App::Nopaste::Service::Gist on 401 (Shawn M Moore) Port from Moose and MooseX::Getopt to Getopt::Long::Descriptive (frew) App::Nopaste is not using any interesting Moose features, so it doesn't make sense to pay the startup cost (even though it's probably dominated by network latency) Please report any regressions! OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Nopaste?expand=0&rev=19
107 lines
3.6 KiB
RPMSpec
107 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package perl-App-Nopaste
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-App-Nopaste
|
|
Version: 0.92
|
|
Release: 0
|
|
%define cpan_name App-Nopaste
|
|
Summary: easy access to any pastebin
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/App-Nopaste/
|
|
Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Browser::Open)
|
|
BuildRequires: perl(Class::Load)
|
|
BuildRequires: perl(Clipboard)
|
|
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.090
|
|
BuildRequires: perl(JSON)
|
|
BuildRequires: perl(Module::Pluggable)
|
|
BuildRequires: perl(URI::Escape)
|
|
BuildRequires: perl(WWW::Mechanize)
|
|
BuildRequires: perl(WWW::Pastebin::PastebinCom::Create)
|
|
#BuildRequires: perl(App::Nopaste)
|
|
#BuildRequires: perl(App::Nopaste::Command)
|
|
#BuildRequires: perl(App::Nopaste::Service)
|
|
#BuildRequires: perl(CPANPLUS::Backend)
|
|
#BuildRequires: perl(HTTP::Request::Common)
|
|
#BuildRequires: perl(inc::Module::Install)
|
|
#BuildRequires: perl(LWP::Protocol)
|
|
#BuildRequires: perl(LWP::Simple)
|
|
#BuildRequires: perl(Module::AutoInstall)
|
|
#BuildRequires: perl(Module::Build)
|
|
#BuildRequires: perl(Module::Install::AutoManifest)
|
|
#BuildRequires: perl(Module::Install::Base)
|
|
#BuildRequires: perl(Module::Install::GithubMeta)
|
|
#BuildRequires: perl(Module::Install::ManifestSkip)
|
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
|
#BuildRequires: perl(YAML::Tiny)
|
|
Requires: perl(Browser::Open)
|
|
Requires: perl(Class::Load)
|
|
Requires: perl(Clipboard)
|
|
Requires: perl(Getopt::Long::Descriptive) >= 0.090
|
|
Requires: perl(JSON)
|
|
Requires: perl(Module::Pluggable)
|
|
Requires: perl(URI::Escape)
|
|
Requires: perl(WWW::Mechanize)
|
|
Requires: perl(WWW::Pastebin::PastebinCom::Create)
|
|
%{perl_requires}
|
|
|
|
%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
|
|
looking at you, the http://paste.husk.org manpage), then you have to find a
|
|
new one. And if you usually use a script to publish text, then it's too
|
|
much hassle.
|
|
|
|
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.
|
|
|
|
It's also modular: you only need to put on CPAN a the
|
|
App::Nopaste::Service::Foo manpage module and anyone can begin using it.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes
|
|
|
|
%changelog
|