| 1 | Summary: An object oriented Perl modules for handling tasks related to RDF |
|---|
| 2 | Name: perl-RDF-Core |
|---|
| 3 | Version: 0.51 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | License: MPL or GPL |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | Source0: RDF-Core-%{version}.tar.gz |
|---|
| 8 | URL: http://www.cpan.org/dist/RDF-Core/ |
|---|
| 9 | |
|---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 11 | BuildArch: noarch |
|---|
| 12 | BuildRequires: perl >= 5.004, perl-URI >= 1.03, perl-XML-Parser >= 2.30 |
|---|
| 13 | BuildRequires: perl-DBI >= 1.14 |
|---|
| 14 | Requires: perl >= 5.004 |
|---|
| 15 | Requires: perl-URI >= 1.03 |
|---|
| 16 | Requires: perl-XML-Parser >= 2.30 |
|---|
| 17 | Requires: perl-DBI >= 1.14 |
|---|
| 18 | |
|---|
| 19 | Vendor: Project Vine |
|---|
| 20 | Distribution: Vine Linux |
|---|
| 21 | |
|---|
| 22 | %description |
|---|
| 23 | RDF::Core is a pure perl implementation of RDF storage, parser, serializer |
|---|
| 24 | and query. |
|---|
| 25 | |
|---|
| 26 | The storage functionality is basic - store, delete, query statements, where |
|---|
| 27 | query means ask about existence or count or retrieve statements conforming |
|---|
| 28 | given mask of (subject, predicate, object). Three storages are available - |
|---|
| 29 | in memory, file (DB_File) and DBMS (PostgreSQL). |
|---|
| 30 | |
|---|
| 31 | The parser supports full RDF/XML syntax including aboutEach attribute (though |
|---|
| 32 | it became obsolete). The serializer attempts to preserve anonymous nodes and |
|---|
| 33 | to compact xml a bit grouping statements with common subject. |
|---|
| 34 | |
|---|
| 35 | The query language is rather focused on resources than on statements. The |
|---|
| 36 | typical pattern is me->neighbor->child->age to express neighbour's children's |
|---|
| 37 | age, not (me,neighbour, him) && (him, child, it) && (it, age, value). |
|---|
| 38 | It contains some shortcuts to express things, that are (possibly) expressed |
|---|
| 39 | often, like object->rdf:type = someClass. Functions are another enhancement |
|---|
| 40 | of the language. They can be used instead of resource or property. Functions |
|---|
| 41 | are implemented in a separated library, so that it's easy to create new or |
|---|
| 42 | modify existing ones. |
|---|
| 43 | |
|---|
| 44 | Original creator of RDF::Core is Ginger Alliance (www.gingerall.com). |
|---|
| 45 | |
|---|
| 46 | %prep |
|---|
| 47 | %setup -q -n RDF-Core-%{version} |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
|---|
| 51 | make |
|---|
| 52 | |
|---|
| 53 | %install |
|---|
| 54 | rm -rf %{buildroot} |
|---|
| 55 | mkdir -p %{buildroot}%{_prefix} |
|---|
| 56 | make DESTDIR=%{buildroot} install |
|---|
| 57 | |
|---|
| 58 | rm -f %{buildroot}%{perl_vendorlib}/perllocal.pod |
|---|
| 59 | rm -f %{buildroot}%{perl_vendorarch}/auto/RDF/Core/.packlist |
|---|
| 60 | |
|---|
| 61 | find %{buildroot}%{_prefix} -type f -print | |
|---|
| 62 | sed "s@^%{buildroot}@@g" | |
|---|
| 63 | grep -v ^%{_mandir} > %{name}.files |
|---|
| 64 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
|---|
| 65 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 66 | exit -1 |
|---|
| 67 | fi |
|---|
| 68 | |
|---|
| 69 | %check |
|---|
| 70 | make test |
|---|
| 71 | |
|---|
| 72 | %clean |
|---|
| 73 | rm -rf %{buildroot} |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %files -f %{name}.files |
|---|
| 77 | %defattr(-,root,root) |
|---|
| 78 | %doc Changes README dbmodel doc |
|---|
| 79 | %{_mandir}/*/* |
|---|
| 80 | %dir %{perl_vendorlib}/RDF |
|---|
| 81 | %dir %{perl_vendorlib}/RDF/Core |
|---|
| 82 | %dir %{perl_vendorlib}/RDF/Core/Enumerator |
|---|
| 83 | %dir %{perl_vendorlib}/RDF/Core/Model |
|---|
| 84 | %dir %{perl_vendorlib}/RDF/Core/Storage |
|---|
| 85 | |
|---|
| 86 | %changelog |
|---|
| 87 | * Sun Oct 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.51-1 |
|---|
| 88 | - applied new versioning policy |
|---|
| 89 | |
|---|
| 90 | * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.51-0vl1 |
|---|
| 91 | - new upstream release |
|---|
| 92 | - changed Group to Development/Libraries |
|---|
| 93 | |
|---|
| 94 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.31-0vl1 |
|---|
| 95 | - new upstream release |
|---|
| 96 | - build on perl-5.8.6-0vl1 |
|---|
| 97 | |
|---|
| 98 | * Sun Jul 6 2003 IWAI Masaharu <iwai@alib.jp> 0.30-0vl1 |
|---|
| 99 | - first build for Vine Linux |
|---|