Files
perl-RDF-Core/perl-RDF-Core.spec
2025-08-12 18:16:48 +02:00

140 lines
4.1 KiB
RPMSpec

#
# spec file for package perl-RDF-Core
#
# 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 RDF-Core
Name: perl-RDF-Core
Version: 0.510.0
Release: 0
# 0.51 -> normalize -> 0.510.0
%define cpan_version 0.51
License: This package is subject to the MPL (or the GPL alternatively).
Summary: An object oriented Perl modules for handling tasks related to RDF
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DP/DPOKORNY/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.14
BuildRequires: perl(URI) >= 1.03
BuildRequires: perl(XML::Parser) >= 2.3
Requires: perl(DBI) >= 1.14
Requires: perl(URI) >= 1.03
Requires: perl(XML::Parser) >= 2.3
Provides: perl(RDF::Core) = %{version}
Provides: perl(RDF::Core::Constants)
Provides: perl(RDF::Core::Enumerator)
Provides: perl(RDF::Core::Enumerator::DB_File)
Provides: perl(RDF::Core::Enumerator::Memory)
Provides: perl(RDF::Core::Enumerator::Postgres)
Provides: perl(RDF::Core::Evaluator)
Provides: perl(RDF::Core::Function)
Provides: perl(RDF::Core::Literal)
Provides: perl(RDF::Core::Model)
Provides: perl(RDF::Core::Model::Parser)
Provides: perl(RDF::Core::Model::Serializer)
Provides: perl(RDF::Core::ModelSet)
Provides: perl(RDF::Core::Node)
Provides: perl(RDF::Core::NodeFactory)
Provides: perl(RDF::Core::Parser)
Provides: perl(RDF::Core::Query)
Provides: perl(RDF::Core::Resource)
Provides: perl(RDF::Core::Schema)
Provides: perl(RDF::Core::Serializer)
Provides: perl(RDF::Core::Statement)
Provides: perl(RDF::Core::Storage)
Provides: perl(RDF::Core::Storage::DB_File)
Provides: perl(RDF::Core::Storage::Memory)
Provides: perl(RDF::Core::Storage::Postgres)
%undefine __perllib_provides
%{perl_requires}
%description
RDF::Core has these parts:
* * *RDF::Core::Model*
Model provides interface to store RDF statements, ask about them and
retrieve them back.
* * *RDF::Core::Constants*
Defines usefule constants for the RDF processing like namespaces etc.
* * *RDF::Core::Parser*
Generates statements from an RDF XML document.
* * *RDF::Core::Model::Parser*
Model::Parser is a simple interface object to a parser. It's purpose is to
provide a prototype of object accomodating any other parser.
* * *RDF::Core::Serializer*
Serializes RDF Model into XML.
* * *RDF::Core::Model::Serializer*
Model::Serializer is an interface object for Serializer.
* * *RDF::Core::Storage*
An object for storing statements. There are several implementations of
Storage - in memory, in a BerkeleyDB 1.x (DB_File) files and PostgreSQL
database.
* * *RDF::Core::Enumerator*
Enumerator is a result set of statements retrieved from Model
* * *RDF::Core::Query*
An implementation of query language.
* * *RDF::Core::Schema*
The RDF Schema utilities.
* * *Basic elements*
RDF::Core::Statement, RDF::Core::Resource, RDF::Core::Literal,
RDF::Core::Node
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 doc README upd-doc.sh
%changelog