3 %bcond_without tests # do not perform "make test"
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}
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
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides a way of extracting, browsing and using RDF
26 metadata embedded in an SVG file.
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.
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
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/).
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.
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.
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ą
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/).
69 %setup -q -n %{pdir}-%{pnam}-%{version}
72 %{__perl} Makefile.PL \
77 # Note: tests do not pass (no .t files in t/ directory)
78 #%%{?with_tests:%{__make} test}
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/*
93 %{perl_vendorlib}/SVG/*.pm