[perl-App-DuckDuckGo] Initial import (#1116487).

David Dick ddick at fedoraproject.org
Thu Jul 17 20:42:15 UTC 2014


commit 99d5bbbbd3c321bd7c85c02f2fd0763e33488838
Author: David Dick <ddick at cpan.org>
Date:   Fri Jul 18 06:42:33 2014 +1000

    Initial import (#1116487).

 .gitignore               |    1 +
 perl-App-DuckDuckGo.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..36dde73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/App-DuckDuckGo-0.008.tar.gz
diff --git a/perl-App-DuckDuckGo.spec b/perl-App-DuckDuckGo.spec
new file mode 100644
index 0000000..54739c8
--- /dev/null
+++ b/perl-App-DuckDuckGo.spec
@@ -0,0 +1,69 @@
+Name:           perl-App-DuckDuckGo
+Version:        0.008
+Release:        1%{?dist}
+Summary:        Application class used to query duckduckgo.com from the command line
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/App-DuckDuckGo/
+Source0:        http://www.cpan.org/authors/id/G/GE/GETTY/App-DuckDuckGo-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(Moose) >= 1.24
+BuildRequires:  perl(MooseX::Getopt) >= 0.35
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More) >= 0.90
+BuildRequires:  perl(WWW::DuckDuckGo) >= 0.004
+BuildRequires:  perl(warnings)
+Requires:       perl(Moose) >= 1.24
+Requires:       perl(MooseX::Getopt) >= 0.35
+Requires:       perl(WWW::DuckDuckGo) >= 0.004
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(Moose\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(WWW::DuckDuckGo\\)$
+%description
+This is the class which is used by the duckduckgo command to do the work. Please
+refer to the duckduckgo package to get the documentation for the command line
+tool.
+
+%prep
+%setup -q -n App-DuckDuckGo-%{version}
+sed -i 's|#!/usr/bin/env perl|#!%{__perl}|' bin/duckduckgo
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%package -n duckduckgo
+Summary: Command line tool to use the DuckDuckGo API
+
+%description -n duckduckgo
+This application queries the DuckDuckGo API and displays the result in
+a nice human-readable way or in a batch mode which could be used by a 
+shell script to automatically work with the DuckDuckGo API results.
+
+%files -n duckduckgo
+%doc LICENSE README
+%{_mandir}/man1/*
+%{_bindir}/*
+
+%changelog
+* Fri Jun 27 2014 David Dick <ddick at cpan.org> - 0.008-1
+- Initial release
diff --git a/sources b/sources
index e69de29..f03a5a7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+301c0ded3b7657f7ea7677e03004f62e  App-DuckDuckGo-0.008.tar.gz


More information about the scm-commits mailing list