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

108 lines
3.4 KiB
RPMSpec

#
# spec file for package perl-RDF-Simple
#
# 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-Simple
Name: perl-RDF-Simple
Version: 0.421.0
Release: 0
# 0.421 -> normalize -> 0.421.0
%define cpan_version 0.421
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Read and write RDF without complication
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MT/MTHURN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::MethodMaker)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(IO::CaptureOutput)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Regexp::Common)
BuildRequires: perl(Test::File)
BuildRequires: perl(XML::SAX)
Requires: perl(Class::MethodMaker)
Requires: perl(File::Slurp)
Requires: perl(LWP::UserAgent)
Requires: perl(Regexp::Common)
Requires: perl(XML::SAX)
Provides: perl(RDF::Simple) = 1.410.0
Provides: perl(RDF::Simple::NS) = 1.410.0
Provides: perl(RDF::Simple::Parser) = 1.160.0
Provides: perl(RDF::Simple::Parser::Attribs) = 1.310.0
Provides: perl(RDF::Simple::Parser::Element) = 1.310.0
Provides: perl(RDF::Simple::Parser::Handler) = 1.180.0
Provides: perl(RDF::Simple::Serialiser) = 1.140.0
Provides: perl(RDF::Simple::Serializer) = 1.310.0
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(Module::Install)
# MANUAL END
%description
This package is for very simple manipulations of RDF/XML serialisations of
RDF graphs. It consists of:
RDF::Simple::Parser
RDF::Simple::Serialiser
Please consult the individual pod for these packages. The parser requires
XML::SAX
Also provided is RDF::Simple::NS, a utility class for XML namespaces in RDF
The aim here is to keep things Simple: e.g., the parser doesn't
differentiate between literal and resource values in the model. All you get
back is a bucket-o-triples (array of arrays)
Use the parser to read RDF that you recieve.
The serialiser does its best to do DWYM. Use the serialiser to build RDF to
send to others.
If you want a more complex and involved RDF API, I'd suggest looking at
RDF::Core or at the Attean Semantic web framework at
http://metacpan.org/pod/Attean
Please report bugs via RT at
<https://rt.cpan.org/Dist/Display.html?Queue=RDF-Simple>
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 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
%license LICENSE
%changelog