3 %bcond_with threestore # with 3store
5 Summary: Redland - a library that provides a high-level interface for RDF
6 Summary(pl.UTF-8): Redland - biblioteka udostępniająca wysokopoziomowy interfejs do RDF
10 License: LGPL v2.1+ or GPL v2+ or Apache v2.0
12 Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
13 # Source0-md5: 40f37a5ad97fdfbf984f78dcea0c6115
14 Patch1: %{name}-storage-file.patch
15 URL: http://librdf.org/
16 %if %{with threestore}
17 BuildRequires: 3store-devel >= 2.0
18 BuildRequires: 3store-devel < 3.0
20 BuildRequires: autoconf >= 2.53
21 BuildRequires: automake >= 1:1.7
22 BuildRequires: db-devel
23 BuildRequires: gtk-doc
24 BuildRequires: libltdl-devel
25 BuildRequires: libraptor-devel >= 1.4.19
26 BuildRequires: libtool
27 BuildRequires: mysql-devel >= 3.23.58
28 BuildRequires: openssl-devel >= 0.9.7d
29 BuildRequires: pkgconfig
30 BuildRequires: postgresql-devel
31 BuildRequires: rasqal-devel >= 1:0.9.19
32 BuildRequires: rpmbuild(macros) >= 1.98
33 BuildRequires: sed >= 4.0
34 BuildRequires: sqlite3-devel >= 3
35 Requires: libraptor >= 1.4.19
36 Requires: rasqal >= 1:0.9.19
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Redland is a library that provides a high-level interface for RDF
41 allowing the RDF graph to be parsed from XML, stored, queried and
42 manipulated. Redland implements each of the RDF concepts in its own
43 class via an object based API, reflected into the other language APIs:
44 Perl, Python, Tcl, Java and Ruby. Some of the classes providing the
45 parsers, storage mechanisms and other elements are built as modules
46 that can be added or removed as required.
48 %description -l pl.UTF-8
49 Redland to biblioteka udostępniająca wysokopoziomowy interfejs do RDF,
50 pozwalająca na analizę grafu RDF z XML-a, jego przechowywanie,
51 odpytywanie i obróbkę. Redland zawiera implementacje każdego pojęcia z
52 RDF w osobnej klasie poprzez obiekt oparty na API, mający
53 odzwierciedlenie w API dla innych języków: Perla, Pythona, Tcl-a, Javy
54 i Ruby'ego. Część klas udostępniających analizatory, mechanizmy
55 przechowywania i inne elementy jest zbudowana jako moduły, które mogą
56 być dodawane lub usuwane w razie potrzeby.
59 Summary: Headers for Redland RDF library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
64 Requires: libltdl-devel
65 Requires: libraptor-devel >= 1.4.19
66 Requires: rasqal-devel >= 1:0.9.19
69 Headers for Redland RDF library.
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe biblioteki Redland RDF.
75 Summary: Static Redland RDF library
76 Summary(pl.UTF-8): Statyczna biblioteka Redland RDF
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 Static Redland RDF library.
83 %description static -l pl.UTF-8
84 Statyczna biblioteka Redland RDF.
86 %package storage-mysql
87 Summary: MySQL storage plugin for Redland RDF library
88 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland RDF
90 Requires: %{name} = %{version}-%{release}
92 %description storage-mysql
93 MySQL storage plugin for Redland RDF library.
95 %description storage-mysql -l pl.UTF-8
96 Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland
99 %package storage-postgresql
100 Summary: PostgreSQL storage plugin for Redland RDF library
101 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki Redland RDF
103 Requires: %{name} = %{version}-%{release}
105 %description storage-postgresql
106 PostgreSQL storage plugin for Redland RDF library.
108 %description storage-postgresql -l pl.UTF-8
109 Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki
112 %package storage-sqlite
113 Summary: SQLite storage plugin for Redland RDF library
114 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland RDF
116 Requires: %{name} = %{version}-%{release}
118 %description storage-sqlite
119 SQLite storage plugin for Redland RDF library.
121 %description storage-sqlite -l pl.UTF-8
122 Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland
125 %package storage-tstore
126 Summary: 3store storage plugin for Redland RDF library
127 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland RDF
129 Requires: %{name} = %{version}-%{release}
131 %description storage-tstore
132 3store storage plugin for Redland RDF library.
134 %description storage-tstore -l pl.UTF-8
135 Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland
138 %package storage-virtuoso
139 Summary: virtuoso storage plugin for Redland RDF library
140 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie virtuoso dla biblioteki Redland RDF
142 Requires: %{name} = %{version}-%{release}
144 %description storage-virtuoso
145 virtuoso storage plugin for Redland RDF library.
147 %description storage-virtuoso -l pl.UTF-8
148 Wtyczka przechowywania danych w bazie virtuoso dla biblioteki Redland
155 sed -i 's,bdbc_prefix/lib$,bdbc_prefix/%{_lib},' configure.ac
156 sed -i 's,for bdbc_version in 4\.6,for bdbc_version in 4\.7 4\.6,' configure.ac
166 --enable-ltdl-install=no \
169 --with-html-dir=%{_gtkdocdir} \
170 --with-raptor=system \
171 --with-rasqal=system \
172 --with%{!?with_threestore:out}-threestore
177 rm -rf $RPM_BUILD_ROOT
180 DESTDIR=$RPM_BUILD_ROOT
182 rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.{la,a}
185 rm -rf $RPM_BUILD_ROOT
187 %post -p /sbin/ldconfig
188 %postun -p /sbin/ldconfig
191 %defattr(644,root,root,755)
192 %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html
193 %attr(755,root,root) %{_bindir}/rdfproc
194 %attr(755,root,root) %{_bindir}/redland-db-upgrade
195 %attr(755,root,root) %{_libdir}/librdf.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/librdf.so.0
197 %dir %{_libdir}/redland
198 %attr(755,root,root) %{_libdir}/redland/librdf_storage_file.so
199 %dir %{_datadir}/redland
200 %{_datadir}/redland/mysql-v*.ttl
201 %{_mandir}/man1/rdfproc.1*
202 %{_mandir}/man1/redland-db-upgrade.1*
205 %defattr(644,root,root,755)
206 %doc docs/{README.html,storage.html}
207 %attr(755,root,root) %{_bindir}/redland-config
208 %attr(755,root,root) %{_libdir}/librdf.so
210 %{_includedir}/librdf.h
211 %{_includedir}/rdf_*.h
212 %{_includedir}/redland.h
213 %{_datadir}/redland/Redland.i
214 %{_pkgconfigdir}/redland.pc
215 %{_mandir}/man1/redland-config.1*
216 %{_mandir}/man3/redland.3*
217 %{_gtkdocdir}/redland
220 %defattr(644,root,root,755)
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/redland/librdf_storage_mysql.so
227 %files storage-postgresql
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/redland/librdf_storage_postgresql.so
231 %files storage-sqlite
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/redland/librdf_storage_sqlite.so
235 %files storage-virtuoso
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/redland/librdf_storage_virtuoso.so
239 %if %{with threestore}
240 %files storage-tstore
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/redland/librdf_storage_tstore.so