2010-08-31 23:33:17 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
Name: perl-App-Nopaste
|
2011-03-23 01:28:42 +01:00
|
|
|
Version: 0.28
|
2010-08-31 23:33:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Easy access to any pastebin
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/App-Nopaste-%{version}.tar.gz
|
2010-08-31 23:36:23 +02:00
|
|
|
Source1: SusePaste.pm
|
2010-08-31 23:33:17 +02:00
|
|
|
URL: http://search.cpan.org/dist/App-Nopaste
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 14:37:54 +01:00
|
|
|
%{perl_requires}
|
2010-12-03 14:55:04 +01:00
|
|
|
BuildRequires: perl-macros
|
2010-08-31 23:33:17 +02:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(MooseX::Getopt) >= 0.17
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
|
|
|
BuildRequires: perl(WWW::Mechanize)
|
|
|
|
BuildRequires: perl(Moose) >= 0.74
|
2010-11-26 23:17:47 +01:00
|
|
|
BuildRequires: perl(Clipboard)
|
2011-02-24 18:38:59 +01:00
|
|
|
BuildRequires: perl(Browser::Open)
|
2010-11-26 23:17:47 +01:00
|
|
|
BuildRequires: perl(WWW::Pastebin::PastebinCom::Create)
|
|
|
|
BuildRequires: perl(Config::GitLike)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(File::Spec)
|
2011-03-23 01:45:43 +01:00
|
|
|
BuildRequires: perl(HTML::Form)
|
2010-08-31 23:33:17 +02:00
|
|
|
Requires: perl(MooseX::Getopt) >= 0.17
|
|
|
|
Requires: perl(Module::Pluggable)
|
|
|
|
Requires: perl(WWW::Mechanize)
|
|
|
|
Requires: perl(Moose) >= 0.74
|
2011-03-23 01:45:43 +01:00
|
|
|
Requires: perl(HTML::Form)
|
2011-02-24 18:38:59 +01:00
|
|
|
Recommends: perl(Browser::Open)
|
2010-11-26 23:17:47 +01:00
|
|
|
Recommends: perl(Clipboard)
|
|
|
|
Recommends: perl(WWW::Pastebin::PastebinCom::Create)
|
|
|
|
Recommends: perl(Config::GitLike)
|
|
|
|
Recommends: perl(File::Temp)
|
|
|
|
Recommends: perl(File::Spec)
|
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
|
|
|
|
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.
|
|
|
|
|
|
|
|
It's also modular: you only need to put on CPAN a
|
|
|
|
App::Nopaste::Service::Foo module and anyone can begin using it.
|
|
|
|
|
|
|
|
%package -n nopaste
|
|
|
|
Summary: Easy access to any pastebin
|
|
|
|
License: Perl License
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "App-Nopaste-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2010-08-31 23:36:23 +02:00
|
|
|
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
|
2010-08-31 23:33:17 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
|
|
|
|
find "%{buildroot}%{perl_vendorlib}" -type f -name '*.pm' -exec %__chmod 0644 {} \;
|
|
|
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes
|
|
|
|
%dir %{perl_vendorlib}/App
|
|
|
|
%{perl_vendorlib}/App/Nopaste.pm
|
|
|
|
%dir %{perl_vendorlib}/App/Nopaste
|
|
|
|
%{perl_vendorlib}/App/Nopaste/*.pm
|
|
|
|
%dir %{perl_vendorlib}/App/Nopaste/Service
|
|
|
|
%{perl_vendorlib}/App/Nopaste/Service/*.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/App
|
|
|
|
%{perl_vendorarch}/auto/App/Nopaste
|
|
|
|
%doc %{perl_man3dir}/App::Nopaste.%{perl_man3ext}%{ext_man}
|
|
|
|
%doc %{perl_man3dir}/App::Nopaste::*.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
%files -n nopaste
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/nopaste
|
|
|
|
%doc %{_mandir}/man1/nopaste.1%{ext_man}
|
|
|
|
|