]> git.pld-linux.org Git - packages/redland.git/commitdiff
- finished C library (other languages not ready yet)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 22 May 2003 21:40:10 +0000 (21:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    redland-amfix.patch -> 1.1
    redland-system-raptor.patch -> 1.1
    redland.spec -> 1.4

redland-amfix.patch [new file with mode: 0644]
redland-system-raptor.patch [new file with mode: 0644]
redland.spec

diff --git a/redland-amfix.patch b/redland-amfix.patch
new file mode 100644 (file)
index 0000000..2e59f9c
--- /dev/null
@@ -0,0 +1,31 @@
+--- redland-0.9.12/repat/Makefile.am.orig      2002-09-06 20:00:12.000000000 +0200
++++ redland-0.9.12/repat/Makefile.am   2003-05-22 23:18:13.000000000 +0200
+@@ -1,10 +1,8 @@
+-noinst_LIBRARIES = librepat.a
+ noinst_LTLIBRARIES = librepat.la
+ CPPFLAGS=@CPPFLAGS@ @LIBRDF_XML_CPPFLAGS@
+ CFLAGS=@CFLAGS@ @REPAT_FLAGS@
+-librepat_a_SOURCES = rdfparse.c rdfparse.h
+ librepat_la_SOURCES = rdfparse.c rdfparse.h
+ noinst_PROGRAMS = rdfdump rdftest
+--- redland-0.9.12/raptor/configure.in.orig    2003-02-12 13:38:50.000000000 +0100
++++ redland-0.9.12/raptor/configure.in 2003-05-22 23:21:25.000000000 +0200
+@@ -104,14 +104,9 @@
+ # was AC_REPLACE_FUNCS(strcasecmp) but strcasecmp has two alternatives:
+ # the other non-standard function stricmp or a local alternative
+-LIBOBJS=
+-LTLIBOBJS=
+ if test $ac_cv_func_stricmp = no -a $ac_cv_func_stricmp = no; then
+-  LIBOBJS="$LIBOBJS strcasecmp.o"
+-  LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
++  AC_LIBOBJ([strcasecmp])
+ fi
+-AC_SUBST(LIBOBJS)
+-AC_SUBST(LTLIBOBJS)
+ AC_MSG_CHECKING(whether need to declare optind)
diff --git a/redland-system-raptor.patch b/redland-system-raptor.patch
new file mode 100644 (file)
index 0000000..ee9da0a
--- /dev/null
@@ -0,0 +1,77 @@
+--- redland-0.9.12/configure.in.orig   2003-01-31 12:07:51.000000000 +0100
++++ redland-0.9.12/configure.in        2003-05-22 23:10:38.000000000 +0200
+@@ -629,8 +629,7 @@
+     PARSER_SRCS="$PARSER_SRCS rdf_parser_$parser.c"
+     if test $parser = raptor; then
+-      LIBRDF_INTERNAL_CPPFLAGS="-I\$(top_srcdir)/raptor $LIBRDF_INTERNAL_CPPFLAGS"
+-      LIBRDF_INTERNAL_LIBS="\$(top_builddir)/raptor/libraptor.la $LIBRDF_INTERNAL_LIBS"
++      LIBRDF_INTERNAL_LIBS="-lraptor $LIBRDF_INTERNAL_LIBS"
+     fi
+     n=HAVE_${uname}_RDF_PARSER
+--- redland-0.9.12/Makefile.am.orig    2003-02-12 18:55:10.000000000 +0100
++++ redland-0.9.12/Makefile.am 2003-05-22 23:14:29.000000000 +0200
+@@ -23,7 +23,7 @@
+ noinst_SCRIPTS = redland-src-config
+ # Subdirectories to build/install etc.
+-SUBDIRS=@SD@ repat raptor librdf examples utils
++SUBDIRS=@SD@ repat librdf raptor examples utils
+ CONFIG_SUBDIRS=raptor
+ # Subdirectories to use for distribution
+ DIST_SUBDIRS=librdf docs examples \
+--- redland-0.9.12/raptor/Makefile.am.orig     2003-02-13 00:50:02.000000000 +0100
++++ redland-0.9.12/raptor/Makefile.am  2003-05-22 23:13:47.000000000 +0200
+@@ -20,25 +20,15 @@
+ bin_PROGRAMS = rapper
+-bin_SCRIPTS = raptor-config
+-noinst_SCRIPTS = raptor-src-config
+-lib_LTLIBRARIES = libraptor.la
++noinst_SCRIPTS = raptor-config raptor-src-config
+-include_HEADERS = raptor.h ntriples.h
++noinst_HEADERS = raptor.h ntriples.h raptor_internal.h win32_config.h
+-noinst_HEADERS = raptor_internal.h win32_config.h
+-
+-man_MANS = rapper.1 libraptor.3
++man_MANS = rapper.1
+ rapper_SOURCES = rdfdump.c
+-rapper_LDADD = libraptor.la @REDLAND_LIBS@
++rapper_LDADD = -lraptor @REDLAND_LIBS@
+ rapper_DEPENDENCIES = @REDLAND_LIBS@
+-libraptor_la_SOURCES = raptor_parse.c ntriples_parse.c \
+-raptor_uri.c raptor_libxml.c raptor_win32.c raptor_locator.c \
+-raptor_namespace.c raptor_qname.c raptor_general.c raptor_utf8.c
+-
+-libraptor_la_LDFLAGS = -version-info @RAPTOR_LIBTOOL_VERSION@
+-libraptor_la_LIBADD = @LTLIBOBJS@
+ EXTRA_DIST=ChangeLog \
+ README      NEWS      LICENSE.txt \
+--- redland-0.9.12/examples/Makefile.am.orig   2003-01-03 13:16:27.000000000 +0100
++++ redland-0.9.12/examples/Makefile.am        2003-05-22 23:26:31.000000000 +0200
+@@ -15,7 +15,7 @@
+ examples: $(EXAMPLES)
+ CPPFLAGS=-I$(top_srcdir)/librdf
+-LDFLAGS=@LIBRDF_LDFLAGS@ $(top_builddir)/librdf/librdf.la $(top_builddir)/raptor/libraptor.la
++LDFLAGS=@LIBRDF_LDFLAGS@ $(top_builddir)/librdf/librdf.la
+ LIBS=@LIBRDF_LIBS@
+ example1_SOURCES = example1.c
+--- redland-0.9.12/utils/Makefile.am.orig      2003-02-12 11:28:42.000000000 +0100
++++ redland-0.9.12/utils/Makefile.am   2003-05-22 23:30:11.000000000 +0200
+@@ -5,7 +5,7 @@
+ EXTRA_DIST=update-api-0912.pl
+ CPPFLAGS=-I$(top_srcdir)/librdf
+-LDFLAGS=@LIBRDF_LDFLAGS@ $(top_builddir)/librdf/librdf.la $(top_builddir)/raptor/libraptor.la
++LDFLAGS=@LIBRDF_LDFLAGS@ $(top_builddir)/librdf/librdf.la
+ LIBS=@LIBRDF_LIBS@
+ redland_db_upgrade_SOURCES = db_upgrade.c
index bd65518290bd903d5bb76554f51c69cb477d76cc..3159332dfcd7cf6a83ed2baee1a13792cee0dbe4 100644 (file)
-Summary:       -
-Summary(pl):   -
+# TODO: various language support (java, perl, php, python, ruby, tcl)
+Summary:       Redland - a library that provides a high-level interface for RDF
+Summary(pl):   Redland - biblioteka udostêpniaj±ca wysokopoziomowy interfejs do RDF
 Name:          redland
 Version:       0.9.12
 Release:       0.1
 License:       LGPL v2 or MPL 1.1
-Group:         -
+Group:         Libraries
 Source0:       http://www.redland.opensource.ac.uk/dist/source/%{name}-%{version}.tar.gz
+Patch0:                %{name}-system-raptor.patch
+Patch1:                %{name}-amfix.patch
 URL:           http://www.redland.opensource.ac.uk/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: db-devel
+# expat for repat
+BuildRequires: expat-devel
+BuildRequires: libraptor-devel
+BuildRequires: libtool
+BuildRequires: openssl-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+Redland is a library that provides a high-level interface for RDF
+allowing the RDF graph to be parsed from XML, stored, queried and
+manipulated. Redland implements each of the RDF concepts in its own
+class via an object based API, reflected into the other language APIs:
+Perl, Python, Tcl, Java and Ruby. Some of the classes providing the
+parsers, storage mechanisms and other elements are built as modules
+that can be added or removed as required.
+
+%description -l pl
+Redland to biblioteka udostêpniaj±ca wysokopoziomowy interfejs do RDF,
+pozwalaj±ca na analizê grafu RDF z XML, jego przechowywanie,
+odpytywanie i obróbkê. Redland zawiera implementacje ka¿dego pojêcia z
+RDF w odobnej klasie poprzez obiekt oparty na API, maj±cy
+odzwierciedlenie w API dla innych jêzyków: Perla, Pythona, Tcl-a, Javy
+i Ruby'ego. Czê¶æ klas udostêpniaj±cych analizatory, mechanizmy
+przechowywania i inne elementy jest zbudowana jako modu³y, które mog±
+byæ dodawane lub usuwane w razie potrzeby.
+
+%package devel
+Summary:       Headers for Redland RDF library
+Summary(pl):   Pliki nag³ówkowe biblioteki Redland RDF
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+
+%description devel
+Headers for Redland RDF library.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki Redland RDF.
+
+%package static
+Summary:       Static Redland RDF library
+Summary(pl):   Statyczna biblioteka Redland RDF
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description static
+Static Redland RDF library.
+
+%description static -l pl
+Statyczna biblioteka Redland RDF.
+
+%package rapper
+Summary:       Raptor RDF parser test program with Redland RDF support
+Summary(pl):   Testowy program parsera Raptor RDF ze wsparciem dla Redland RDF
+Group:         Applications
+Requires:      %{name} = %{version}
+
+%description rapper
+Raptor RDF parser test program with Redland RDF support.
+
+%description rapper -l pl
+Testowy program parsera Raptor RDF ze wsparciem dla Redland RDF.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+cd raptor
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+# don't use -f here
+automake -a -c --foreign
+cd ..
 %configure
+
 %{__make}
 
 %install
@@ -27,5 +106,31 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS ChangeLog FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html
+%attr(755,root,root) %{_bindir}/redland-db-upgrade
+%attr(755,root,root) %{_libdir}/librdf.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc docs/{README.html,overview.png,api}
+%attr(755,root,root) %{_bindir}/redland-config
+%attr(755,root,root) %{_libdir}/librdf.so
+%{_libdir}/librdf.la
+%{_includedir}/librdf.h
+%{_includedir}/rdf_*.h
+%{_includedir}/redland.h
+%{_mandir}/man3/redland.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/librdf.a
+
+%files rapper
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/rapper
+%{_mandir}/man1/rapper.1*
This page took 0.080267 seconds and 4 git commands to generate.