forked from pool/perl-App-Nopaste
Accepting request 296965 from devel:languages:perl:autoupdate
- updated to 1.004 see /usr/share/doc/packages/perl-App-Nopaste/Changes OBS-URL: https://build.opensuse.org/request/show/296965 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Nopaste?expand=0&rev=26
This commit is contained in:
parent
ff14157add
commit
13ab0c4eab
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5d8125f398ee8ce8356d23311e152653d8b6a650b49b14adce01c14a685e010b
|
||||
size 39469
|
3
App-Nopaste-1.004.tar.gz
Normal file
3
App-Nopaste-1.004.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62eac2cd9bef0a3bd41c16da94236619ecab1f5cf950807dcd64783c9a7d2a16
|
||||
size 45403
|
18
cpanspec.yml
Normal file
18
cpanspec.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
sources:
|
||||
- SusePaste.pm
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
post_prep: |-
|
||||
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 10:11:38 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.004
|
||||
see /usr/share/doc/packages/perl-App-Nopaste/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 9 13:31:34 UTC 2014 - coolo@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-App-Nopaste
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,37 +17,40 @@
|
||||
|
||||
|
||||
Name: perl-App-Nopaste
|
||||
Version: 0.96
|
||||
Version: 1.004
|
||||
Release: 0
|
||||
%define cpan_name App-Nopaste
|
||||
Summary: easy access to any pastebin
|
||||
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
|
||||
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: SusePaste.pm
|
||||
Source2: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Browser::Open)
|
||||
BuildRequires: perl(Class::Load)
|
||||
BuildRequires: perl(Getopt::Long::Descriptive)
|
||||
BuildRequires: perl(JSON)
|
||||
BuildRequires: perl(JSON::MaybeXS)
|
||||
BuildRequires: perl(LWP::Protocol)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
||||
BuildRequires: perl(Module::Pluggable)
|
||||
BuildRequires: perl(Module::Runtime)
|
||||
BuildRequires: perl(Test::Deep)
|
||||
BuildRequires: perl(URI::Escape)
|
||||
BuildRequires: perl(WWW::Mechanize)
|
||||
BuildRequires: perl(version)
|
||||
BuildRequires: perl(namespace::clean)
|
||||
Requires: perl(Browser::Open)
|
||||
Requires: perl(Class::Load)
|
||||
Requires: perl(Getopt::Long::Descriptive)
|
||||
Requires: perl(JSON)
|
||||
Requires: perl(JSON::MaybeXS)
|
||||
Requires: perl(Module::Pluggable)
|
||||
Requires: perl(Module::Runtime)
|
||||
Requires: perl(URI::Escape)
|
||||
Requires: perl(WWW::Mechanize)
|
||||
Requires: perl(namespace::clean)
|
||||
Recommends: perl(Browser::Open)
|
||||
Recommends: perl(Clipboard)
|
||||
Recommends: perl(WWW::Pastebin::PastebinCom::Create) >= 1.003
|
||||
@ -71,48 +74,27 @@ 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
|
||||
# MANUAL BEGIN
|
||||
%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/
|
||||
# MANUAL END
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CONTRIBUTING LICENSE README README.md
|
||||
%doc Changes CONTRIBUTING LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user