Files
perl-MARC-Lint/perl-MARC-Lint.spec
2025-08-12 18:15:17 +02:00

66 lines
2.1 KiB
RPMSpec

#
# spec file for package perl-MARC-Lint
#
# Copyright (c) 2017 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
# 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-MARC-Lint
%define real_name MARC-Lint
Summary: Perl extension for checking validity of MARC records
License: Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/perldoc?MARC::Lint
Version: 1.52
Release: 0
Source: %{real_name}_%{version}.tar.gz
Source100: README.md
BuildRequires: perl-Business-ISBN
BuildRequires: perl-MARC-Record
BuildRequires: perl-macros
Requires: perl-MARC >= 1.04
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
Module for checking validity of MARC records. 99% of the users will want to do
something like is shown in the synopsis. The other intrepid 1% will overload
the MARC::Lint module's methods and provide their own special field-level checking.
What this means is that if you have certain requirements, such as making sure that
all 952 tags have a certain call number in them, you can write a function that
checks for that, and still get all the benefits of the MARC::Lint framework.
%prep
%setup -n %{real_name}_%{version}
find . -type f ! -name \\*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %name.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%changelog