File perl-News-Search.spec of Package perl-News-Search
#
# spec file for package perl-News-Search
#
# Copyright (c) 2015 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-News-Search
Version: 1.15
Release: 0
%define cpan_name News-Search
Summary: Usenet news searching toolkit
License: BSD-3-Clause
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/News-Search/
Source: http://www.cpan.org/authors/id/S/SU/SUNTONG/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor::Fast)
Requires: perl(Class::Accessor::Fast)
%{perl_requires}
%description
News::Search searches Usenet news postings.
It can be used to search local news groups that google doesn't cover. Or,
even for news groups that are covered by google, it can give you all the
hits in one file, in the format that you prescribed.
You can also use the provided the news-search manpage in cron to watch
specific news groups for specific criteria and mail you reports according
to the interval you set.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README release-log.txt
%changelog