diff --git a/README.md b/README.md index 970e92c..0af5412 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libraptor2 +Raptor is a free software / Open Source C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax. +The supported parsing syntaxes are RDF/XML, N-Triples, Turtle, RSS tag soup including Atom 0.3 and the serializing syntaxes are RDF/XML, N-Triples and RSS 1.0. +Raptor was designed to work closely with the Redland RDF library (RDF Parser Toolkit for Redland) but is entirely separate. It is a portable library that works across many POSIX systems (Unix, GNU/Linux, BSDs, OSX, cygwin, win32). Raptor has no memory leaks and is fast. + diff --git a/libraptor2-2.0.4-fix_pkgconfig_includedir.patch b/libraptor2-2.0.4-fix_pkgconfig_includedir.patch new file mode 100644 index 0000000..1385e8e --- /dev/null +++ b/libraptor2-2.0.4-fix_pkgconfig_includedir.patch @@ -0,0 +1,10 @@ +diff -Nru raptor2-2.0.4.orig/raptor2.pc.in raptor2-2.0.4/raptor2.pc.in +--- raptor2-2.0.4.orig/raptor2.pc.in 2010-11-22 17:12:01.000000000 +0100 ++++ raptor2-2.0.4/raptor2.pc.in 2011-10-29 17:34:17.354207738 +0200 +@@ -8,5 +8,5 @@ + Version: @VERSION@ + Libs: -L${libdir} -lraptor2 + Libs.private: @RAPTOR_LDFLAGS@ +-Cflags: -I${includedir} ++Cflags: -I${includedir}/raptor2 + diff --git a/libraptor2.spec b/libraptor2.spec new file mode 100644 index 0000000..99a711f --- /dev/null +++ b/libraptor2.spec @@ -0,0 +1,151 @@ +Name: libraptor2 +Version: 2.0.13 +Release: 1mamba +Summary: An RDF Parser Toolkit +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://librdf.org/raptor/ +Source: http://librdf.org/dist/source/raptor2-%{version}.tar.gz +Patch0: %{name}-2.0.4-fix_pkgconfig_includedir.patch +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: gtk-doc +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: libwww-devel +BuildRequires: libexpat-devel +BuildRequires: libcurl-devel +BuildRequires: libcares-devel +BuildRequires: libssh2-devel +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Raptor is a free software / Open Source C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax. +The supported parsing syntaxes are RDF/XML, N-Triples, Turtle, RSS tag soup including Atom 0.3 and the serializing syntaxes are RDF/XML, N-Triples and RSS 1.0. +Raptor was designed to work closely with the Redland RDF library (RDF Parser Toolkit for Redland) but is entirely separate. It is a portable library that works across many POSIX systems (Unix, GNU/Linux, BSDs, OSX, cygwin, win32). Raptor has no memory leaks and is fast. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Raptor is a free software / Open Source C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax. +The supported parsing syntaxes are RDF/XML, N-Triples, Turtle, RSS tag soup including Atom 0.3 and the serializing syntaxes are RDF/XML, N-Triples and RSS 1.0. +Raptor was designed to work closely with the Redland RDF library (RDF Parser Toolkit for Redland) but is entirely separate. It is a portable library that works across many POSIX systems (Unix, GNU/Linux, BSDs, OSX, cygwin, win32). Raptor has no memory leaks and is fast. + +This package contains static libraries and header files need for development. + +%package -n rapper +Summary: An RDF syntax parsing and serializing utility +Group: System/Tools +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n rapper +An RDF syntax parsing and serializing utility based on raptor2 library. + +%package apidocs +Summary: Raptor API documentation +Group: Documentation +Requires: gtk-doc + +%description apidocs +Raptor API documentation. + +%prep +%setup -q -n raptor2-%{version} +#%patch0 -p1 + +%build +%configure --disable-static --with-pic +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libraptor2.so.* +%doc AUTHORS COPYING COPYING.LIB + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/raptor2 +%{_includedir}/raptor2/raptor.h +%{_includedir}/raptor2/raptor2.h +%{_libdir}/libraptor2.so +%{_libdir}/libraptor2.la +%{_libdir}/pkgconfig/raptor2.pc +%{_mandir}/man3/libraptor2.* +%doc ChangeLog NEWS README README.html + +%files -n rapper +%defattr(-,root,root) +%{_bindir}/rapper +%{_mandir}/man1/rapper.* + +%files apidocs +%defattr(-,root,root) +%{_datadir}/gtk-doc/html/raptor2 + +%changelog +* Sun Mar 02 2014 Automatic Build System 2.0.13-1mamba +- automatic version update by autodist + +* Sat Dec 14 2013 Automatic Build System 2.0.12-1mamba +- automatic update by autodist + +* Thu Aug 29 2013 Automatic Build System 2.0.10-1mamba +- automatic update by autodist + +* Fri Mar 01 2013 Automatic Build System 2.0.9-1mamba +- automatic version update by autodist + +* Mon Oct 15 2012 Automatic Build System 2.0.8-1mamba +- automatic version update by autodist + +* Mon Nov 14 2011 Silvan Calarco 2.0.4-3mamba +- removed previous pkgconfig patch to fix libreoffice build + +* Sat Oct 29 2011 Silvan Calarco 2.0.4-2mamba +- added a patch to fix pkgconfig include directory in cflags + +* Thu Aug 04 2011 Silvan Calarco 2.0.4-1mamba +- update to 2.0.4 + +* Tue Jun 29 2010 Silvan Calarco 1.4.21-2mamba +- rebuilt to add pkgconfig provides + +* Sat Apr 17 2010 Automatic Build System 1.4.21-1mamba +- automatic update by autodist + +* Fri Jan 15 2010 Automatic Build System 1.4.20-1mamba +- automatic update by autodist + +* Tue Jul 21 2009 Automatic Build System 1.4.19-1mamba +- automatic update by autodist + +* Thu Aug 28 2008 Aleph0 1.4.18-1mamba +- update to 1.4.18 + +* Fri May 30 2008 Aleph0 1.4.17-1mamba +- update to 1.4.17 + +* Tue Oct 30 2007 Aleph0 1.4.16-1mamba +- update to 1.4.16 +- new package apidocs + +* Sat Feb 19 2005 Silvan Calarco 1.4.5-1qilnx +- package created by autospec