Files
perl-Solr/perl-Solr.spec
2025-08-12 18:17:08 +02:00

74 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Solr
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Solr
Name: perl-Solr
Version: 0.30.0
Release: 0
# 0.03 -> normalize -> 0.30.0
%define cpan_version 0.03
#Upstream: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =cut
License: Apache-2.0
Summary: Perl extension for interfacing with Solr, a lucene based search engine
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GA/GARAFOLA/%{cpan_name}/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Slurp)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Log::Log4perl) >= 1.14
BuildRequires: perl(XML::Simple)
Requires: perl(File::Slurp)
Requires: perl(HTTP::Request)
Requires: perl(LWP::UserAgent)
Requires: perl(Log::Log4perl) >= 1.14
Requires: perl(XML::Simple)
Provides: perl(Solr) = %{version}
Provides: perl(Solr::HTTPUpdateHandler) = %{version}
Provides: perl(Solr::Schema) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module provides a set of methods for adding (updating) and deleting
entries in an existing solr server.
%prep
%autosetup -n %{cpan_name}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog