File perl-WWW-Pastebin-PastebinCom-Create.spec of Package perl-WWW-Pastebin-PastebinCom-Create
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-WWW-Pastebin-PastebinCom-Create
#
# Copyright (c) 2011 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-WWW-Pastebin-PastebinCom-Create
Version: 0.003
Release: 0
Summary: Paste to pastebin.com from Perl
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/Z/ZO/ZOFFIX/WWW-Pastebin-PastebinCom-Create-%{version}.tar.gz
Url: http://search.cpan.org/dist/WWW-Pastebin-PastebinCom-Create
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp) >= 1.04
BuildRequires: perl(LWP::UserAgent) >= 2.036
BuildRequires: perl(Module::Build) >= 0.35
BuildRequires: perl(Test::More)
BuildRequires: perl(URI) >= 1.35
BuildRequires: perl(overload) >= 1.04
Requires: perl(URI) >= 1.35
Requires: perl(LWP::UserAgent) >= 2.036
Requires: perl(overload) >= 1.04
Requires: perl(Carp) >= 1.04
%description
The module provides means of pasting large texts into the
http://pastebin.com pastebin site.
%prep
%setup -q -n "WWW-Pastebin-PastebinCom-Create-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/WWW
%dir %{perl_vendorlib}/WWW/Pastebin
%dir %{perl_vendorlib}/WWW/Pastebin/PastebinCom
%{perl_vendorlib}/WWW/Pastebin/PastebinCom/Create.pm
%dir %{perl_vendorarch}/auto/WWW
%dir %{perl_vendorarch}/auto/WWW/Pastebin
%dir %{perl_vendorarch}/auto/WWW/Pastebin/PastebinCom
%{perl_vendorarch}/auto/WWW/Pastebin/PastebinCom/Create
%doc %{perl_man3dir}/WWW::Pastebin::PastebinCom::Create.%{perl_man3ext}%{ext_man}
%changelog