]> git.pld-linux.org Git - SPECS.git/blob - perl-SVG-Metadata.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-SVG-Metadata.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    SVG
6 %define         pnam    Metadata
7 Summary:        SVG::Metadata - Perl module to capture metadata info about an SVG file
8 Summary(pl.UTF-8):      SVG::Metadata - moduł Perla do wydobywania informacji na temat pliku SVG
9 Name:           perl-%{pdir}-%{pnam}
10 Version:        0.28
11 Release:        1
12 # same as perl
13 License:        GPL v2
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1100e73fd31a8ea2fc6402ad198c678f
17 URL:            http://search.cpan.org/dist/SVG-Metadata/
18 BuildRequires:  perl-XML-Twig >= 3.15
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module provides a way of extracting, browsing and using RDF
26 metadata embedded in an SVG file.
27
28 The SVG spec itself does not provide any particular mechanisms for
29 handling metadata, but instead relies on embedded, namespaced RDF
30 sections, as per XML philosophy. Unfortunately, many SVG tools don't
31 support the concept of RDF metadata; indeed many don't support the
32 idea of embedded XML "islands" at all. Some will even ignore and drop
33 the RDF data entirely when encountered.
34
35 The motivation for this module is twofold. First, it provides a
36 mechanism for accessing this metadata from the SVG files. Second, it
37 provides a means of validating SVG files to detect if they have the
38 metadata.
39
40 The motivation for this script is primarily for the Open Clip Art
41 Library (http://www.openclipart.org/), as a way of filtering out
42 submissions that lack metadata from being included in the official
43 distributions. A secondary motivation is to serve as a testing tool
44 for SVG editors like Inkscape (http://www.inkscape.org/).
45
46 %description -l pl.UTF-8
47 Ten moduł dostarcza metodę do wydobywania, przeglądania i używania
48 metadanych RDF osadzonych w pliku SVG.
49
50 Sama specyfikacja SVG nie dostarcza żadnych konkretnych mechanizmów do
51 obsługi metadanych, ale polega na osadzonych sekcjach RDF z własnymi
52 przestrzeniami nazw, zgodnie z filozofią XML. Niestety wiele narzędzi
53 do SVG nie obsługuje idei metadanych RDF; w rzeczywistości wiele w
54 ogóle nie obsługuje idei osadzania "wysp" XML. Niektóre nawet ignorują
55 i porzucają całość danych RDF.
56
57 Motywacja dla tego modułu jest dwojaka. Po pierwsze, dostarcza
58 mechanizm do dostępu do metadanych z plików SVG. Po drugie, dostarcza
59 środki do sprawdzania poprawności plików SVG w celu wykrycia, czy mają
60 metadane.
61
62 Ten skrypt był tworzony głównie z myślą o bibliotee Open Clip Art
63 (http://www.openclipart.org/), jako sposób filtrowania z oficjalnych
64 dystrybucji nadesłanych prac nie mających metadanych. Drugim
65 przeznaczeniem było wykorzystanie jako narzędzie testowe dla edytorów
66 SVG takich jak Inkscape (http://www.inkscape.org/).
67
68 %prep
69 %setup -q -n %{pdir}-%{pnam}-%{version}
70
71 %build
72 %{__perl} Makefile.PL \
73         INSTALLDIRS=vendor
74
75 %{__make}
76
77 # Note: tests do not pass (no .t files in t/ directory)
78 #%%{?with_tests:%{__make} test}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc ChangeLog README
92 %attr(755,root,root) %{_bindir}/*
93 %{perl_vendorlib}/SVG/*.pm
94 %{_mandir}/man1/*
95 %{_mandir}/man3/*
This page took 0.132595 seconds and 3 git commands to generate.