packages: 4store/4store-destdir.patch (NEW), 4store/4store-prefix.patch (NE...

aredridel aredridel at pld-linux.org
Thu Jul 16 07:14:02 CEST 2009


Author: aredridel                    Date: Thu Jul 16 05:14:02 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added

---- Files affected:
packages/4store:
   4store-destdir.patch (NONE -> 1.1)  (NEW), 4store-prefix.patch (NONE -> 1.1)  (NEW), 4store-termcap.patch (NONE -> 1.1)  (NEW), 4store.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/4store/4store-destdir.patch
diff -u /dev/null packages/4store/4store-destdir.patch:1.1
--- /dev/null	Thu Jul 16 07:14:02 2009
+++ packages/4store/4store-destdir.patch	Thu Jul 16 07:13:57 2009
@@ -0,0 +1,11 @@
+diff -ur 4store-v0.9.2-o/man/Makefile 4store-v0.9.2/man/Makefile
+--- 4store-v0.9.2-o/man/Makefile	2009-07-15 23:00:00.521364579 -0600
++++ 4store-v0.9.2/man/Makefile	2009-07-15 23:03:23.948009963 -0600
+@@ -3,5 +3,5 @@
+ clean:
+ 
+ install: *.1
+-	install -d /usr/share/man/man1
+-	install *.1 /usr/share/man/man1
++	install -d $(DESTDIR)/usr/share/man/man1
++	install *.1 $(DESTDIR)/usr/share/man/man1

================================================================
Index: packages/4store/4store-prefix.patch
diff -u /dev/null packages/4store/4store-prefix.patch:1.1
--- /dev/null	Thu Jul 16 07:14:02 2009
+++ packages/4store/4store-prefix.patch	Thu Jul 16 07:13:57 2009
@@ -0,0 +1,128 @@
+diff -ur 4store-v0.9.2-o/4store.spec 4store-v0.9.2/4store.spec
+--- 4store-v0.9.2-o/4store.spec	2009-07-14 03:10:22.000000000 -0600
++++ 4store-v0.9.2/4store.spec	2009-07-15 22:32:12.751531050 -0600
+@@ -6,7 +6,7 @@
+ License: GPLv3+
+ Group: Applications/Databases
+ BuildRoot: %{_builddir}/%{name}-root
+-Prefix: /usr/local
++Prefix: /usr
+ 
+ %description
+ 4store is a distributed RDF storage engine and SPARQL query engine. 4store runs
+@@ -22,4 +22,4 @@
+ rm -rf %{buildroot}
+ %files
+ %defattr(-,root,root)
+-/usr/local/bin/
++/usr/bin/
+diff -ur 4store-v0.9.2-o/docs/INSTALL 4store-v0.9.2/docs/INSTALL
+--- 4store-v0.9.2-o/docs/INSTALL	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/docs/INSTALL	2009-07-15 22:32:12.751531050 -0600
+@@ -4,18 +4,18 @@
+ 
+ # install a 64-bit raptor from freshly extracted source
+ 
+-./configure --libdir=/usr/local/lib64 && make
++./configure --libdir=/usr/lib64 && make
+ sudo make install
+ 
+ # similarly for 64-bit rasqal
+ 
+ ./configure "--enable-query-languages=laqrs sparql rdql" \
+- --libdir=/usr/local/lib64 && make
++ --libdir=/usr/lib64 && make
+ sudo make install
+ 
+ 
+ # ensure PKG_CONFIG_PATH is set correctly
+-# ensure /etc/ld.so.conf.d/ includes /usr/local/lib64
++# ensure /etc/ld.so.conf.d/ includes /usr/lib64
+ 
+ sudo ldconfig
+ 
+diff -ur 4store-v0.9.2-o/man/Makefile 4store-v0.9.2/man/Makefile
+--- 4store-v0.9.2-o/man/Makefile	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/man/Makefile	2009-07-15 22:32:12.751531050 -0600
+@@ -3,5 +3,5 @@
+ clean:
+ 
+ install: *.1
+-	install -d /usr/local/share/man/man1
+-	install *.1 /usr/local/share/man/man1
++	install -d /usr/share/man/man1
++	install *.1 /usr/share/man/man1
+diff -ur 4store-v0.9.2-o/src/backend/Makefile 4store-v0.9.2/src/backend/Makefile
+--- 4store-v0.9.2-o/src/backend/Makefile	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/src/backend/Makefile	2009-07-15 22:32:12.751531050 -0600
+@@ -19,8 +19,8 @@
+ 	rm -rf *.dSYM
+ 
+ install:
+-	mkdir -p $(DESTDIR)/usr/local/bin/
+-	install $(BINS) $(DESTDIR)/usr/local/bin/
++	mkdir -p $(DESTDIR)/usr/bin/
++	install $(BINS) $(DESTDIR)/usr/bin/
+ 
+ test: all
+ 	@mkdir -p /tmp/tstest/
+diff -ur 4store-v0.9.2-o/src/frontend/Makefile 4store-v0.9.2/src/frontend/Makefile
+--- 4store-v0.9.2-o/src/frontend/Makefile	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/src/frontend/Makefile	2009-07-15 22:32:12.751531050 -0600
+@@ -21,8 +21,8 @@
+ all: $(BINS) $(test_BINS)
+ 
+ install:
+-	mkdir -p $(DESTDIR)/usr/local/bin/
+-	install $(BINS) $(DESTDIR)/usr/local/bin/
++	mkdir -p $(DESTDIR)/usr/bin/
++	install $(BINS) $(DESTDIR)/usr/bin/
+ 
+ clean:
+ 	rm -f *.o $(BINS) $(test_BINS)
+diff -ur 4store-v0.9.2-o/src/http/Makefile 4store-v0.9.2/src/http/Makefile
+--- 4store-v0.9.2-o/src/http/Makefile	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/src/http/Makefile	2009-07-15 22:32:12.751531050 -0600
+@@ -14,8 +14,8 @@
+ all: $(BINS) $(test_BINS)
+ 
+ install:
+-	mkdir -p $(DESTDIR)/usr/local/bin/
+-	install $(BINS) $(DESTDIR)/usr/local/bin/
++	mkdir -p $(DESTDIR)/usr/bin/
++	install $(BINS) $(DESTDIR)/usr/bin/
+ 
+ clean:
+ 	rm -f *.o $(BINS)
+diff -ur 4store-v0.9.2-o/src/utilities/Makefile 4store-v0.9.2/src/utilities/Makefile
+--- 4store-v0.9.2-o/src/utilities/Makefile	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/src/utilities/Makefile	2009-07-15 22:32:12.751531050 -0600
+@@ -16,9 +16,9 @@
+ install: $(BINS)
+ 	mkdir -p $(DESTDIR)/var/lib/4store
+ 	chmod 1777 $(DESTDIR)/var/lib/4store
+-	mkdir -p $(DESTDIR)/usr/local/bin/
+-	install $(BINS) $(DESTDIR)/usr/local/bin/
+-	install $(SCRIPTS) $(DESTDIR)/usr/local/bin/
++	mkdir -p $(DESTDIR)/usr/bin/
++	install $(BINS) $(DESTDIR)/usr/bin/
++	install $(SCRIPTS) $(DESTDIR)/usr/bin/
+ 
+ clean: 
+ 	rm -f $(BINS) $(TESTS) *.o
+diff -ur 4store-v0.9.2-o/tests/benchmark/benchmark.rq 4store-v0.9.2/tests/benchmark/benchmark.rq
+--- 4store-v0.9.2-o/tests/benchmark/benchmark.rq	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/tests/benchmark/benchmark.rq	2009-07-15 22:32:12.751531050 -0600
+@@ -24,5 +24,5 @@
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX vocab: <http://www.census.gov/tiger/2002/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX feature: <http://www.census.gov/tiger/2002/CFCC/> SELECT DISTINCT ?startlat ?startlong ?g WHERE { GRAPH ?g { ?place rdfs:label "Sugar Hill Terrance West" . ?place vocab:path ?path . ?path vocab:start ?start . ?start vocab:lat ?startlat . ?start vocab:long ?startlong . } . FILTER(xsd:decimal(?startlat) < 37.721735 && xsd:decimal(?startlat) > 37.721720) }
+ #EOQ
+ 
+-PREFIX vocab: <http://www.census.gov/tiger/2002/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX feature: <http://www.census.gov/tiger/2002/CFCC/> SELECT DISTINCT ?place ?label WHERE { GRAPH <file:///usr/local/tiger/CA/TGR06001.ttl> { ?path rdf:type feature:H12 . ?place vocab:path ?path . ?place rdfs:label ?label . } }
++PREFIX vocab: <http://www.census.gov/tiger/2002/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX feature: <http://www.census.gov/tiger/2002/CFCC/> SELECT DISTINCT ?place ?label WHERE { GRAPH <file:///usr/tiger/CA/TGR06001.ttl> { ?path rdf:type feature:H12 . ?place vocab:path ?path . ?place rdfs:label ?label . } }
+ #EOQ
+diff -ur 4store-v0.9.2-o/tests/benchmark/queries/feature-h12.rq 4store-v0.9.2/tests/benchmark/queries/feature-h12.rq
+--- 4store-v0.9.2-o/tests/benchmark/queries/feature-h12.rq	2009-07-14 03:10:23.000000000 -0600
++++ 4store-v0.9.2/tests/benchmark/queries/feature-h12.rq	2009-07-15 22:32:12.751531050 -0600
+@@ -1 +1 @@
+-PREFIX vocab: <http://www.census.gov/tiger/2002/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX feature: <http://www.census.gov/tiger/2002/CFCC/> SELECT DISTINCT ?place ?label WHERE { GRAPH <file:///usr/local/tiger/CA/TGR06001.ttl> { ?path rdf:type feature:H12 . ?place vocab:path ?path . ?place rdfs:label ?label . } }
++PREFIX vocab: <http://www.census.gov/tiger/2002/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX feature: <http://www.census.gov/tiger/2002/CFCC/> SELECT DISTINCT ?place ?label WHERE { GRAPH <file:///usr/tiger/CA/TGR06001.ttl> { ?path rdf:type feature:H12 . ?place vocab:path ?path . ?place rdfs:label ?label . } }

================================================================
Index: packages/4store/4store-termcap.patch
diff -u /dev/null packages/4store/4store-termcap.patch:1.1
--- /dev/null	Thu Jul 16 07:14:02 2009
+++ packages/4store/4store-termcap.patch	Thu Jul 16 07:13:57 2009
@@ -0,0 +1,23 @@
+diff -ur 4store-v0.9.2-o/configure 4store-v0.9.2/configure
+--- 4store-v0.9.2-o/configure	2009-07-14 03:10:22.000000000 -0600
++++ 4store-v0.9.2/configure	2009-07-15 22:38:51.500429771 -0600
+@@ -32,7 +32,6 @@
+ test -e "`which pcre-config`" && pass "pcre installed" || fail "no pcre devel system installed"
+ libtest "readline"
+ libtest "ncurses"
+-libtest "termcap"
+ pkg-config --exists avahi && pass "avahi installed" || optfail "no avahi, will build without cluster support"
+ 
+ rm -f /tmp/configure-$$.*
+diff -ur 4store-v0.9.2-o/src/utilities/Makefile 4store-v0.9.2/src/utilities/Makefile
+--- 4store-v0.9.2-o/src/utilities/Makefile	2009-07-15 22:32:12.751531050 -0600
++++ 4store-v0.9.2/src/utilities/Makefile	2009-07-15 22:38:25.512972143 -0600
+@@ -2,7 +2,7 @@
+ include ../darwin.mk
+ 
+ CFLAGS = -Wall -g -std=gnu99 -I.. -DGIT_REV=\"$(gitrev)\" `pkg-config --cflags glib-2.0`
+-LDFLAGS = $(ldfdarwin) $(ldflinux) `pkg-config --libs glib-2.0 raptor` -lreadline -ltermcap
++LDFLAGS = $(ldfdarwin) $(ldflinux) `pkg-config --libs glib-2.0 raptor` -lreadline
+ 
+ BINS = 4s-backend-setup 4s-backend-destroy 4s-backend-info 4s-backend-copy \
+  4s-backend-passwd 4s-rid

================================================================
Index: packages/4store/4store.spec
diff -u /dev/null packages/4store/4store.spec:1.1
--- /dev/null	Thu Jul 16 07:14:02 2009
+++ packages/4store/4store.spec	Thu Jul 16 07:13:57 2009
@@ -0,0 +1,97 @@
+# $Revision$, $Date$
+Summary:	Fast RDF quad store
+Name:		4store
+Version:	0.9.2
+Release:	1
+License:	LGPL v2+
+Group:		Applications/Databases
+Source0:	http://4store.org/download/%{name}-v%{version}.tar.gz
+# Source0-md5:	40cff8523f2bcff56d2ee6f826fec43d
+URL:		http://4store.org/
+Patch0:		%{name}-prefix.patch
+Patch1:		%{name}-termcap.patch
+Patch2:		%{name}-destdir.patch
+BuildRequires:	autoconf >= 2.59-9
+BuildRequires:	automake
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+4store is a database storage and query engine that holds RDF data. It
+has been used by Garlik as their primary RDF platform for three years,
+and has proved itself to be robust and secure.
+
+4store's main strengths are it's performance, scalability and
+stability. It does not provide many features over and above RDF
+storage and SPARQL queries, but if your are looking for a scalable,
+secure, fast and efficient RDF store, then 4store should be on your
+shortlist.
+
+%package devel
+Summary:	Header files for 4store libraries
+Summary(pl.UTF-8):	Pliki nagłówkowe bibliote4store
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for 4store libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek 4store.
+
+%package static
+Summary:	Static 4store libraries
+Summary(pl.UTF-8):	Statyczne biblioteki 4store
+Group:		X11/Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static 4store libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki 4store.
+
+%prep
+%setup -q -n %{name}-v%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc TODO docs/*
+%attr(755,root,root) %{_bindir}/4s*
+%{_mandir}/man1/*.1.*
+
+%files devel
+%defattr(644,root,root,755)
+
+%files static
+%defattr(644,root,root,755)
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/07/16 05:13:57  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list