2008-11-30 04:58:34 +00:00
|
|
|
#
|
2011-11-17 15:38:20 +00:00
|
|
|
# spec file for package perl-MARC-Crosswalk-DublinCore
|
|
|
|
#
|
2024-07-24 20:12:25 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-11-17 15:38:20 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-07-24 20:12:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-11-30 04:58:34 +00:00
|
|
|
#
|
|
|
|
|
2011-11-17 15:38:20 +00:00
|
|
|
|
2024-07-24 20:12:25 +00:00
|
|
|
%define cpan_name MARC-Crosswalk-DublinCore
|
2011-11-17 15:38:20 +00:00
|
|
|
Name: perl-MARC-Crosswalk-DublinCore
|
2024-07-24 20:12:25 +00:00
|
|
|
Version: 0.20.0
|
2012-07-17 17:14:04 +00:00
|
|
|
Release: 0
|
2024-07-24 20:12:25 +00:00
|
|
|
# 0.02 -> normalize -> 0.20.0
|
|
|
|
%define cpan_version 0.02
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-11-17 15:38:20 +00:00
|
|
|
Summary: Convert data between MARC and Dublin Core
|
2024-07-24 20:12:25 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRICAS/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:15:17 +02:00
|
|
|
Source100: README.md
|
2012-07-17 17:14:04 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(DublinCore::Record)
|
|
|
|
BuildRequires: perl(MARC::Record)
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
Requires: perl(DublinCore::Record)
|
|
|
|
Requires: perl(MARC::Record)
|
2024-07-24 20:12:25 +00:00
|
|
|
Provides: perl(MARC::Crosswalk::DublinCore) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2010-12-03 14:41:49 +00:00
|
|
|
%{perl_requires}
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides an implentation of the LOC's spec on how to convert
|
2012-07-17 17:14:04 +00:00
|
|
|
metadata between MARC and Dublin Core format. The spec for converting MARC
|
|
|
|
to Dublin Core is available at: http://www.loc.gov/marc/marc2dc.html, and
|
|
|
|
from DC to MARC: http://www.loc.gov/marc/dccross.html.
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
NB: The conversion cannot be done in a round-trip manner. i.e. Doing a
|
2012-07-17 17:14:04 +00:00
|
|
|
conversion from MARC to DC, then trying to go back to MARC will not yield
|
|
|
|
the original record.
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-24 20:12:25 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-24 20:12:25 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
%check
|
2012-07-17 17:14:04 +00:00
|
|
|
./Build test
|
2008-11-30 04:58:34 +00:00
|
|
|
|
|
|
|
%install
|
2024-07-24 20:12:25 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2012-07-17 17:14:04 +00:00
|
|
|
%perl_gen_filelist
|
2008-11-30 04:58:34 +00:00
|
|
|
|
2012-07-17 17:14:04 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README
|
2008-11-30 04:58:34 +00:00
|
|
|
|
2011-11-17 15:38:20 +00:00
|
|
|
%changelog
|