perl-RDF-Core-vl.spec 3.0 KB

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