From a57a24ad7dfb641e1d83ae8d5d1fdaf8d6beb332a3d94263fc8d19d56c479b21 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 15 May 2013 15:26:43 +0000 Subject: [PATCH 1/2] - updated to 0.92 Fix the language mappins for Ubuntu's pastebin (Sergey Romanov) Don't need to load Moose in the tests (Sergey Romanov) Decode incoming text as utf8 (Jesse Luehrs) Support for GITHUB_USER and GITHUB_PASS (Rafael Kitover) Name the gist file `nopaste` not `nopaste.txt` for possible syntax highlighting (Rafael Kitover) Use decode_json not a regular expression to decode Gist response body (Shawn M Moore) Give a hint to perldoc App::Nopaste::Service::Gist on 401 (Shawn M Moore) Port from Moose and MooseX::Getopt to Getopt::Long::Descriptive (frew) App::Nopaste is not using any interesting Moose features, so it doesn't make sense to pay the startup cost (even though it's probably dominated by network latency) Please report any regressions! OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Nopaste?expand=0&rev=19 --- App-Nopaste-0.35.tar.gz | 3 - App-Nopaste-0.92.tar.gz | 3 + perl-App-Nopaste.changes | 20 ++++++ perl-App-Nopaste.spec | 129 +++++++++++++++------------------------ 4 files changed, 72 insertions(+), 83 deletions(-) delete mode 100644 App-Nopaste-0.35.tar.gz create mode 100644 App-Nopaste-0.92.tar.gz diff --git a/App-Nopaste-0.35.tar.gz b/App-Nopaste-0.35.tar.gz deleted file mode 100644 index 4fa11ac..0000000 --- a/App-Nopaste-0.35.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41bcd5540b8d002b817afbf0e434fdfeda84148c17827d4a9e090bf1bc85f9c0 -size 40698 diff --git a/App-Nopaste-0.92.tar.gz b/App-Nopaste-0.92.tar.gz new file mode 100644 index 0000000..9f9b6a8 --- /dev/null +++ b/App-Nopaste-0.92.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a7d8b19662c96679a7844685d9833cd16a75c47683d8a68908b56a2cc2da211 +size 42911 diff --git a/perl-App-Nopaste.changes b/perl-App-Nopaste.changes index 6b41177..3c84895 100644 --- a/perl-App-Nopaste.changes +++ b/perl-App-Nopaste.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed May 15 15:24:28 UTC 2013 - coolo@suse.com + +- updated to 0.92 + Fix the language mappins for Ubuntu's pastebin (Sergey Romanov) + Don't need to load Moose in the tests (Sergey Romanov) + + Decode incoming text as utf8 (Jesse Luehrs) + Support for GITHUB_USER and GITHUB_PASS (Rafael Kitover) + Name the gist file `nopaste` not `nopaste.txt` for possible syntax highlighting (Rafael Kitover) + Use decode_json not a regular expression to decode Gist response body (Shawn M Moore) + Give a hint to perldoc App::Nopaste::Service::Gist on 401 (Shawn M Moore) + + Port from Moose and MooseX::Getopt to Getopt::Long::Descriptive (frew) + App::Nopaste is not using any interesting Moose features, + so it doesn't make sense to pay the startup cost (even + though it's probably dominated by network latency) + + Please report any regressions! + ------------------------------------------------------------------- Tue Sep 4 13:09:10 UTC 2012 - coolo@suse.com diff --git a/perl-App-Nopaste.spec b/perl-App-Nopaste.spec index c29ae46..06ed2bd 100644 --- a/perl-App-Nopaste.spec +++ b/perl-App-Nopaste.spec @@ -1,7 +1,7 @@ # # spec file for package perl-App-Nopaste # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 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 @@ -17,43 +17,53 @@ Name: perl-App-Nopaste -Version: 0.35 +Version: 0.92 Release: 0 -Summary: Easy access to any pastebin +%define cpan_name App-Nopaste +Summary: easy access to any pastebin License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/App-Nopaste-%{version}.tar.gz -Source1: SusePaste.pm -Url: http://search.cpan.org/dist/App-Nopaste +Url: http://search.cpan.org/dist/App-Nopaste/ +Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make +BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Browser::Open) BuildRequires: perl(Class::Load) BuildRequires: perl(Clipboard) -BuildRequires: perl(Config::GitLike) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(File::Spec) -BuildRequires: perl(File::Temp) -BuildRequires: perl(HTML::Form) +BuildRequires: perl(Getopt::Long::Descriptive) >= 0.090 BuildRequires: perl(JSON) BuildRequires: perl(Module::Pluggable) -BuildRequires: perl(Moose) >= 0.74 -BuildRequires: perl(MooseX::Getopt) >= 0.17 +BuildRequires: perl(URI::Escape) BuildRequires: perl(WWW::Mechanize) BuildRequires: perl(WWW::Pastebin::PastebinCom::Create) -Requires: perl(HTML::Form) +#BuildRequires: perl(App::Nopaste) +#BuildRequires: perl(App::Nopaste::Command) +#BuildRequires: perl(App::Nopaste::Service) +#BuildRequires: perl(CPANPLUS::Backend) +#BuildRequires: perl(HTTP::Request::Common) +#BuildRequires: perl(inc::Module::Install) +#BuildRequires: perl(LWP::Protocol) +#BuildRequires: perl(LWP::Simple) +#BuildRequires: perl(Module::AutoInstall) +#BuildRequires: perl(Module::Build) +#BuildRequires: perl(Module::Install::AutoManifest) +#BuildRequires: perl(Module::Install::Base) +#BuildRequires: perl(Module::Install::GithubMeta) +#BuildRequires: perl(Module::Install::ManifestSkip) +#BuildRequires: perl(Parse::CPAN::Meta) +#BuildRequires: perl(YAML::Tiny) +Requires: perl(Browser::Open) +Requires: perl(Class::Load) +Requires: perl(Clipboard) +Requires: perl(Getopt::Long::Descriptive) >= 0.090 +Requires: perl(JSON) Requires: perl(Module::Pluggable) -Requires: perl(Moose) >= 0.74 -Requires: perl(MooseX::Getopt) >= 0.17 +Requires: perl(URI::Escape) Requires: perl(WWW::Mechanize) -Recommends: perl(Browser::Open) -Recommends: perl(Clipboard) -Recommends: perl(WWW::Pastebin::PastebinCom::Create) -Recommends: perl(Config::GitLike) -Recommends: perl(File::Temp) -Recommends: perl(File::Spec) +Requires: perl(WWW::Pastebin::PastebinCom::Create) +%{perl_requires} %description Pastebins (also known as nopaste sites) let you post text, usually code, @@ -62,76 +72,35 @@ 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, ), then you have to find a new one. -And if you usually use a script to publish text, then it's too much -hassle. +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 -App::Nopaste::Service::Foo 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, ), 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. %prep -%setup -q -n "App-Nopaste-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL -%__install -m 0644 "%{SOURCE1}" lib/App/Nopaste/Service/ +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install - -find "%{buildroot}%{perl_vendorlib}" -type f -name '*.pm' -exec %__chmod 0644 {} \; - %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %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} %changelog From de78aa9c8e853a26fc5aaba7fb9aff242756d2d8f6c5639f26a27b772dadf272 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 15 May 2013 15:43:42 +0000 Subject: [PATCH 2/2] readd susepaste OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Nopaste?expand=0&rev=20 --- perl-App-Nopaste.spec | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/perl-App-Nopaste.spec b/perl-App-Nopaste.spec index 06ed2bd..378821b 100644 --- a/perl-App-Nopaste.spec +++ b/perl-App-Nopaste.spec @@ -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, ), 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