1
0
Stephan Kulow 2013-05-15 15:43:42 +00:00 committed by Git OBS Bridge
parent a57a24ad7d
commit de78aa9c8e

View File

@ -25,6 +25,8 @@ 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
# MANUAL
Source1: SusePaste.pm
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@ -83,8 +85,33 @@ 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.
%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.
%prep
%setup -q -n %{cpan_name}-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
find . -type f -print0 | xargs -0 chmod 644
%build