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: e5ef0c29c55b4f0f5aeed7955b4d383b
14 Patch0: %{name}-link.patch
15 Patch1: %{name}-storage-file.patch
16 Patch2: %{name}-librdf_storage_register_factory.patch
17 Patch3: %{name}-sqlite.patch
18 URL: http://librdf.org/
19 %if %{with threestore}
20 BuildRequires: 3store-devel >= 2.0
21 BuildRequires: 3store-devel < 3.0
23 BuildRequires: autoconf >= 2.53
24 BuildRequires: automake >= 1:1.7
25 BuildRequires: db-devel
26 BuildRequires: gtk-doc
27 BuildRequires: libltdl-devel
28 BuildRequires: libraptor-devel >= 1.4.17
29 BuildRequires: libtool
30 BuildRequires: mysql-devel >= 3.23.58
31 BuildRequires: openssl-devel >= 0.9.7d
32 BuildRequires: pkgconfig
33 BuildRequires: postgresql-devel
34 BuildRequires: rasqal-devel >= 1:0.9.16
35 BuildRequires: rpmbuild(macros) >= 1.98
36 BuildRequires: sed >= 4.0
37 BuildRequires: sqlite3-devel >= 3
38 Requires: libraptor >= 1.4.17
39 Requires: rasqal >= 1:0.9.16
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Redland is a library that provides a high-level interface for RDF
44 allowing the RDF graph to be parsed from XML, stored, queried and
45 manipulated. Redland implements each of the RDF concepts in its own
46 class via an object based API, reflected into the other language APIs:
47 Perl, Python, Tcl, Java and Ruby. Some of the classes providing the
48 parsers, storage mechanisms and other elements are built as modules
49 that can be added or removed as required.
51 %description -l pl.UTF-8
52 Redland to biblioteka udostępniająca wysokopoziomowy interfejs do RDF,
53 pozwalająca na analizę grafu RDF z XML-a, jego przechowywanie,
54 odpytywanie i obróbkę. Redland zawiera implementacje każdego pojęcia z
55 RDF w osobnej klasie poprzez obiekt oparty na API, mający
56 odzwierciedlenie w API dla innych języków: Perla, Pythona, Tcl-a, Javy
57 i Ruby'ego. Część klas udostępniających analizatory, mechanizmy
58 przechowywania i inne elementy jest zbudowana jako moduły, które mogą
59 być dodawane lub usuwane w razie potrzeby.
62 Summary: Headers for Redland RDF library
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
67 Requires: libltdl-devel
68 Requires: libraptor-devel >= 1.4.17
69 Requires: rasqal-devel >= 1:0.9.16
72 Headers for Redland RDF library.
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe biblioteki Redland RDF.
78 Summary: Static Redland RDF library
79 Summary(pl.UTF-8): Statyczna biblioteka Redland RDF
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
84 Static Redland RDF library.
86 %description static -l pl.UTF-8
87 Statyczna biblioteka Redland RDF.
89 %package storage-mysql
90 Summary: MySQL storage plugin for Redland RDF library
91 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland RDF
93 Requires: %{name} = %{version}-%{release}
95 %description storage-mysql
96 MySQL storage plugin for Redland RDF library.
98 %description storage-mysql -l pl.UTF-8
99 Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland
102 %package storage-postgresql
103 Summary: PostgreSQL storage plugin for Redland RDF library
104 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki Redland RDF
106 Requires: %{name} = %{version}-%{release}
108 %description storage-postgresql
109 PostgreSQL storage plugin for Redland RDF library.
111 %description storage-postgresql -l pl.UTF-8
112 Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki
115 %package storage-sqlite
116 Summary: SQLite storage plugin for Redland RDF library
117 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland RDF
119 Requires: %{name} = %{version}-%{release}
121 %description storage-sqlite
122 SQLite storage plugin for Redland RDF library.
124 %description storage-sqlite -l pl.UTF-8
125 Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland
128 %package storage-tstore
129 Summary: 3store storage plugin for Redland RDF library
130 Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland RDF
132 Requires: %{name} = %{version}-%{release}
134 %description storage-tstore
135 3store storage plugin for Redland RDF library.
137 %description storage-tstore -l pl.UTF-8
138 Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland
148 sed -i 's,bdbc_prefix/lib$,bdbc_prefix/%{_lib},' configure.ac
149 sed -i 's,for bdbc_version in 4\.6,for bdbc_version in 4\.7 4\.6,' configure.ac
159 --enable-ltdl-install=no \
162 --with-html-dir=%{_gtkdocdir} \
163 --with-raptor=system \
164 --with-rasqal=system \
165 --with%{!?with_threestore:out}-threestore
170 rm -rf $RPM_BUILD_ROOT
173 DESTDIR=$RPM_BUILD_ROOT
175 rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.{la,a}
178 rm -rf $RPM_BUILD_ROOT
180 %post -p /sbin/ldconfig
181 %postun -p /sbin/ldconfig
184 %defattr(644,root,root,755)
185 %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html
186 %attr(755,root,root) %{_bindir}/rdfproc
187 %attr(755,root,root) %{_bindir}/redland-db-upgrade
188 %attr(755,root,root) %{_libdir}/librdf.so.*.*.*
189 %attr(755,root,root) %ghost %{_libdir}/librdf.so.0
190 %dir %{_libdir}/redland
191 %attr(755,root,root) %{_libdir}/redland/librdf_storage_file.so
192 %dir %{_datadir}/redland
193 %{_datadir}/redland/mysql-v*.ttl
194 %{_mandir}/man1/rdfproc.1*
195 %{_mandir}/man1/redland-db-upgrade.1*
198 %defattr(644,root,root,755)
199 %doc docs/{README.html,storage.html}
200 %attr(755,root,root) %{_bindir}/redland-config
201 %attr(755,root,root) %{_libdir}/librdf.so
203 %{_includedir}/librdf.h
204 %{_includedir}/rdf_*.h
205 %{_includedir}/redland.h
206 %{_datadir}/redland/Redland.i
207 %{_pkgconfigdir}/redland.pc
208 %{_mandir}/man1/redland-config.1*
209 %{_mandir}/man3/redland.3*
210 %{_gtkdocdir}/redland
213 %defattr(644,root,root,755)
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/redland/librdf_storage_mysql.so
220 %files storage-postgresql
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/redland/librdf_storage_postgresql.so
224 %files storage-sqlite
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/redland/librdf_storage_sqlite.so
228 %if %{with threestore}
229 %files storage-tstore
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/redland/librdf_storage_tstore.so