perl-RDF-Core-vl.spec 3.2 KB

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