diff --git a/.gitignore b/.gitignore index e69de29..2010eac 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/raptor2-2.0.3.tar.gz diff --git a/raptor2-2.0.3-raptor2_doc.patch b/raptor2-2.0.3-raptor2_doc.patch new file mode 100644 index 0000000..d6a4f7f --- /dev/null +++ b/raptor2-2.0.3-raptor2_doc.patch @@ -0,0 +1,25 @@ +diff -up raptor2-2.0.3/docs/Makefile.am.raptor2_docs raptor2-2.0.3/docs/Makefile.am +--- raptor2-2.0.3/docs/Makefile.am.raptor2_docs 2011-04-26 13:42:05.000000000 -0500 ++++ raptor2-2.0.3/docs/Makefile.am 2011-07-23 22:40:25.820689480 -0500 +@@ -23,7 +23,7 @@ + + + # The name of the module. +-DOC_MODULE=raptor ++DOC_MODULE=raptor2 + + # The top-level SGML file. + DOC_MAIN_SGML_FILE=raptor-docs.xml +diff -up raptor2-2.0.3/docs/Makefile.in.raptor2_docs raptor2-2.0.3/docs/Makefile.in +--- raptor2-2.0.3/docs/Makefile.in.raptor2_docs 2011-05-12 12:35:25.000000000 -0500 ++++ raptor2-2.0.3/docs/Makefile.in 2011-07-23 22:40:49.783389770 -0500 +@@ -264,7 +264,7 @@ top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + + # The name of the module. +-DOC_MODULE = raptor ++DOC_MODULE = raptor2 + + # The top-level SGML file. + DOC_MAIN_SGML_FILE = raptor-docs.xml + DOC_MAIN_SGML_FILE = raptor-docs.xml diff --git a/raptor2.spec b/raptor2.spec new file mode 100644 index 0000000..b6809dc --- /dev/null +++ b/raptor2.spec @@ -0,0 +1,102 @@ + +Summary: RDF Parser Toolkit for Redland +Name: raptor2 +Version: 2.0.3 +Release: 2%{?dist} + +License: GPLv2+ or LGPLv2+ or ASL 2.0 +Source: http://download.librdf.org/source/raptor2-%{version}.tar.gz +URL: http://librdf.org/raptor/ + +## upstreamable patches +# make docs not conflict with raptor(1), DOC_MODULE=raptor2 +Patch50: raptor2-2.0.3-raptor2_doc.patch + +BuildRequires: curl-devel +BuildRequires: gtk-doc +BuildRequires: libxslt-devel +BuildRequires: yajl-devel + +## when/if rappor gets moved from there to here -- rex +#Conflicts: raptor < 1.4.21-10 + +%description +Raptor is the RDF Parser Toolkit for Redland that provides +a set of standalone RDF parsers, generating triples from RDF/XML +or N-Triples. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +%{summary}. + + +%prep +%setup -q + +%patch50 -p1 -b .raptor2_doc + +# hack to nuke rpaths +%if "%{_libdir}" != "/usr/lib" +sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure +%endif + + +%build +%configure --disable-static --enable-release +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} + +make DESTDIR=%{buildroot} install + +## unpackaged files +rm -fv %{buildroot}%{_libdir}/lib*.la +rm -fv %{buildroot}%{_bindir}/rapper +rm -fv %{buildroot}%{_mandir}/man1/rapper* + + +%check +make check + + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%doc AUTHORS ChangeLog NEWS README +%doc COPYING* LICENSE.txt LICENSE-2.0.txt +%{_libdir}/libraptor2.so.0* +## rapper conflicts with raptor(1) --rex +#{_bindir}/rapper +#{_mandir}/man1/rapper* + +%files devel +%doc UPGRADING.html +%{_includedir}/raptor2/ +%{_libdir}/libraptor2.so +%{_libdir}/pkgconfig/raptor2.pc +%{_mandir}/man3/libraptor2* +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/raptor2/ + + +%changelog +* Tue Jul 26 2011 Rex Dieter 2.0.3-2 +- -devel: drop Group: tag +- add lot's of %%doc's +- License: GPLv2+ or LGPLv2+ or ASL 2.0 (or newer) + +* Sat Jul 23 2011 Rex Dieter 2.0.3-1 +- first try + + diff --git a/sources b/sources index e69de29..14e343f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +46eff4b20f8752d1146a3e0c8b2168dd raptor2-2.0.3.tar.gz