2011-10-21 23:07:47 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-App-Nopaste
|
|
|
|
#
|
2014-02-09 16:55:31 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-09-04 15:18:09 +02:00
|
|
|
|
2010-08-31 23:33:17 +02:00
|
|
|
Name: perl-App-Nopaste
|
2014-02-09 16:55:31 +01:00
|
|
|
Version: 0.96
|
2010-08-31 23:33:17 +02:00
|
|
|
Release: 0
|
2013-05-15 17:26:43 +02:00
|
|
|
%define cpan_name App-Nopaste
|
|
|
|
Summary: easy access to any pastebin
|
2011-12-21 12:36:30 +01:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
2013-05-15 17:26:43 +02:00
|
|
|
Url: http://search.cpan.org/dist/App-Nopaste/
|
2014-02-09 17:16:13 +01:00
|
|
|
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
2013-05-15 17:43:42 +02:00
|
|
|
# MANUAL
|
|
|
|
Source1: SusePaste.pm
|
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
|
|
|
|
BuildRequires: perl(Class::Load)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive)
|
2012-09-04 15:18:09 +02:00
|
|
|
BuildRequires: perl(JSON)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(LWP::Protocol)
|
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2013-05-15 17:26:43 +02:00
|
|
|
BuildRequires: perl(URI::Escape)
|
2011-12-21 12:36:30 +01:00
|
|
|
BuildRequires: perl(WWW::Mechanize)
|
2014-02-09 16:55:31 +01:00
|
|
|
BuildRequires: perl(version)
|
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)
|
2013-05-15 17:26:43 +02:00
|
|
|
Requires: perl(JSON)
|
2010-08-31 23:33:17 +02:00
|
|
|
Requires: perl(Module::Pluggable)
|
2014-02-09 16:55:31 +01:00
|
|
|
Requires: perl(Module::Runtime)
|
2013-05-15 17:26:43 +02:00
|
|
|
Requires: perl(URI::Escape)
|
2012-09-04 15:18:09 +02:00
|
|
|
Requires: perl(WWW::Mechanize)
|
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
|
2013-05-15 17:26:43 +02:00
|
|
|
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.
|
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.
|
|
|
|
|
2013-05-15 17:26:43 +02:00
|
|
|
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.
|
2010-08-31 23:33:17 +02:00
|
|
|
|
2013-05-15 17:43:42 +02:00
|
|
|
%package -n nopaste
|
|
|
|
Summary: Easy access to any pastebin
|
|
|
|
Group: Productivity/Networking/Web/Utilities
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n nopaste
|
|
|
|
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, <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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2010-08-31 23:33:17 +02:00
|
|
|
%prep
|
2013-05-15 17:26:43 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2013-05-15 17:43:42 +02:00
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
|
2013-05-15 17:26:43 +02:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%build
|
2014-02-09 17:19:30 +01:00
|
|
|
%{__perl} Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2013-05-15 17:26:43 +02:00
|
|
|
|
|
|
|
%check
|
2014-02-09 17:19:30 +01:00
|
|
|
./Build test
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%install
|
2014-02-09 17:19:30 +01:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
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)
|
2014-02-09 17:19:30 +01:00
|
|
|
%doc Changes CONTRIBUTING LICENSE README README.md
|
2010-08-31 23:33:17 +02:00
|
|
|
|
2011-10-21 23:07:47 +02:00
|
|
|
%changelog
|