diff --git a/App-Nopaste-0.96.tar.gz b/App-Nopaste-0.96.tar.gz deleted file mode 100644 index a838c9c..0000000 --- a/App-Nopaste-0.96.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d8125f398ee8ce8356d23311e152653d8b6a650b49b14adce01c14a685e010b -size 39469 diff --git a/App-Nopaste-1.004.tar.gz b/App-Nopaste-1.004.tar.gz new file mode 100644 index 0000000..1122a9b --- /dev/null +++ b/App-Nopaste-1.004.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62eac2cd9bef0a3bd41c16da94236619ecab1f5cf950807dcd64783c9a7d2a16 +size 45403 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..6c7fd25 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/perl-App-Nopaste.changes b/perl-App-Nopaste.changes index 011c9d6..0469c03 100644 --- a/perl-App-Nopaste.changes +++ b/perl-App-Nopaste.changes @@ -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 diff --git a/perl-App-Nopaste.spec b/perl-App-Nopaste.spec index 4cfd090..63ff617 100644 --- a/perl-App-Nopaste.spec +++ b/perl-App-Nopaste.spec @@ -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, ), 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