forked from pool/perl-App-Nopaste
120 lines
4.0 KiB
RPMSpec
120 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package perl-App-Nopaste
|
|
#
|
|
# Copyright (c) 2014 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.96
|
|
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/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
|
# MANUAL
|
|
Source1: SusePaste.pm
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Load)
|
|
BuildRequires: perl(Getopt::Long::Descriptive)
|
|
BuildRequires: perl(JSON)
|
|
BuildRequires: perl(LWP::Protocol)
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
BuildRequires: perl(Module::Pluggable)
|
|
BuildRequires: perl(Module::Runtime)
|
|
BuildRequires: perl(URI::Escape)
|
|
BuildRequires: perl(WWW::Mechanize)
|
|
BuildRequires: perl(version)
|
|
Requires: perl(Class::Load)
|
|
Requires: perl(Getopt::Long::Descriptive)
|
|
Requires: perl(JSON)
|
|
Requires: perl(Module::Pluggable)
|
|
Requires: perl(Module::Runtime)
|
|
Requires: perl(URI::Escape)
|
|
Requires: perl(WWW::Mechanize)
|
|
Recommends: perl(Browser::Open)
|
|
Recommends: perl(Clipboard)
|
|
Recommends: perl(WWW::Pastebin::PastebinCom::Create) >= 1.003
|
|
%{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.
|
|
|
|
%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
|
|
%{__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
|