]>
Commit | Line | Data |
---|---|---|
283dd99c ER |
1 | # |
2 | # Conditional build: | |
f57c581d | 3 | %bcond_with threestore # with 3store |
283dd99c | 4 | # |
ec6b87a7 | 5 | Summary: Redland - a library that provides a high-level interface for RDF |
e2351b75 | 6 | Summary(pl.UTF-8): Redland - biblioteka udostępniająca wysokopoziomowy interfejs do RDF |
493fe0ac | 7 | Name: redland |
ed456e33 | 8 | Version: 1.0.9 |
a5e6dd17 | 9 | Release: 1 |
ad0a36a2 | 10 | License: LGPL v2.1+ or GPL v2+ or Apache v2.0 |
ec6b87a7 | 11 | Group: Libraries |
9c5a6be5 | 12 | Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz |
ed456e33 | 13 | # Source0-md5: e5ef0c29c55b4f0f5aeed7955b4d383b |
de39a299 | 14 | Patch0: %{name}-link.patch |
73e11545 | 15 | Patch1: %{name}-storage-file.patch |
ed456e33 | 16 | Patch2: %{name}-librdf_storage_register_factory.patch |
17 | Patch3: %{name}-sqlite.patch | |
9c5a6be5 | 18 | URL: http://librdf.org/ |
283dd99c | 19 | %if %{with threestore} |
14845a81 JB |
20 | BuildRequires: 3store-devel >= 2.0 |
21 | BuildRequires: 3store-devel < 3.0 | |
283dd99c | 22 | %endif |
9c3d57bf | 23 | BuildRequires: autoconf >= 2.53 |
02162650 | 24 | BuildRequires: automake >= 1:1.7 |
ec6b87a7 | 25 | BuildRequires: db-devel |
c99e2732 | 26 | BuildRequires: gtk-doc |
73e11545 | 27 | BuildRequires: libltdl-devel |
3dcd3284 | 28 | BuildRequires: libraptor-devel >= 1.4.17 |
ec6b87a7 | 29 | BuildRequires: libtool |
d04c2610 | 30 | BuildRequires: mysql-devel >= 3.23.58 |
493bc4a0 | 31 | BuildRequires: openssl-devel >= 0.9.7d |
9c5a6be5 JB |
32 | BuildRequires: pkgconfig |
33 | BuildRequires: postgresql-devel | |
3dcd3284 | 34 | BuildRequires: rasqal-devel >= 1:0.9.16 |
9c5a6be5 | 35 | BuildRequires: rpmbuild(macros) >= 1.98 |
a4379346 | 36 | BuildRequires: sed >= 4.0 |
9c5a6be5 | 37 | BuildRequires: sqlite3-devel >= 3 |
3dcd3284 JB |
38 | Requires: libraptor >= 1.4.17 |
39 | Requires: rasqal >= 1:0.9.16 | |
493fe0ac JB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
ec6b87a7 JB |
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. | |
50 | ||
ca9ca427 JR |
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. | |
ec6b87a7 JB |
60 | |
61 | %package devel | |
62 | Summary: Headers for Redland RDF library | |
e2351b75 | 63 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF |
ec6b87a7 | 64 | Group: Development/Libraries |
d04c2610 | 65 | Requires: %{name} = %{version}-%{release} |
f0759125 | 66 | Requires: db-devel |
73e11545 | 67 | Requires: libltdl-devel |
3dcd3284 JB |
68 | Requires: libraptor-devel >= 1.4.17 |
69 | Requires: rasqal-devel >= 1:0.9.16 | |
ec6b87a7 JB |
70 | |
71 | %description devel | |
72 | Headers for Redland RDF library. | |
73 | ||
ca9ca427 JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe biblioteki Redland RDF. | |
ec6b87a7 JB |
76 | |
77 | %package static | |
78 | Summary: Static Redland RDF library | |
e2351b75 | 79 | Summary(pl.UTF-8): Statyczna biblioteka Redland RDF |
ec6b87a7 | 80 | Group: Development/Libraries |
d04c2610 | 81 | Requires: %{name}-devel = %{version}-%{release} |
ec6b87a7 JB |
82 | |
83 | %description static | |
84 | Static Redland RDF library. | |
85 | ||
ca9ca427 | 86 | %description static -l pl.UTF-8 |
ec6b87a7 JB |
87 | Statyczna biblioteka Redland RDF. |
88 | ||
73e11545 JB |
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 | |
92 | Group: Libraries | |
93 | Requires: %{name} = %{version}-%{release} | |
94 | ||
95 | %description storage-mysql | |
96 | MySQL storage plugin for Redland RDF library. | |
97 | ||
98 | %description storage-mysql -l pl.UTF-8 | |
99 | Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland | |
100 | RDF. | |
101 | ||
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 | |
105 | Group: Libraries | |
d04c2610 | 106 | Requires: %{name} = %{version}-%{release} |
fe0c5f3f | 107 | |
73e11545 JB |
108 | %description storage-postgresql |
109 | PostgreSQL storage plugin for Redland RDF library. | |
fe0c5f3f | 110 | |
73e11545 JB |
111 | %description storage-postgresql -l pl.UTF-8 |
112 | Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki | |
113 | Redland RDF. | |
114 | ||
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 | |
118 | Group: Libraries | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | ||
121 | %description storage-sqlite | |
122 | SQLite storage plugin for Redland RDF library. | |
123 | ||
124 | %description storage-sqlite -l pl.UTF-8 | |
125 | Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland | |
126 | RDF. | |
127 | ||
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 | |
131 | Group: Libraries | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description storage-tstore | |
135 | 3store storage plugin for Redland RDF library. | |
136 | ||
137 | %description storage-tstore -l pl.UTF-8 | |
138 | Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland | |
139 | RDF. | |
fe0c5f3f | 140 | |
493fe0ac JB |
141 | %prep |
142 | %setup -q | |
de39a299 | 143 | %patch0 -p1 |
73e11545 | 144 | %patch1 -p1 |
ed456e33 | 145 | %patch2 -p1 |
146 | %patch3 -p1 | |
493fe0ac | 147 | |
46b62964 PS |
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 | |
a4379346 | 150 | |
493fe0ac | 151 | %build |
ec6b87a7 | 152 | %{__libtoolize} |
c99e2732 | 153 | %{__gtkdocize} |
ec6b87a7 JB |
154 | %{__aclocal} |
155 | %{__autoconf} | |
156 | %{__autoheader} | |
157 | %{__automake} | |
75bfd5de | 158 | %configure \ |
52d5a559 | 159 | --enable-ltdl-install=no \ |
73e11545 | 160 | --enable-modular \ |
52d5a559 | 161 | --with-threads \ |
9c5a6be5 | 162 | --with-html-dir=%{_gtkdocdir} \ |
d04c2610 | 163 | --with-raptor=system \ |
73e11545 JB |
164 | --with-rasqal=system \ |
165 | --with%{!?with_threestore:out}-threestore | |
ec6b87a7 | 166 | |
3b2bc1b5 | 167 | %{__make} |
493fe0ac JB |
168 | |
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %{__make} install \ | |
173 | DESTDIR=$RPM_BUILD_ROOT | |
174 | ||
73e11545 JB |
175 | rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.{la,a} |
176 | ||
493fe0ac JB |
177 | %clean |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
ec6b87a7 JB |
180 | %post -p /sbin/ldconfig |
181 | %postun -p /sbin/ldconfig | |
182 | ||
493fe0ac JB |
183 | %files |
184 | %defattr(644,root,root,755) | |
9c5a6be5 | 185 | %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html |
75bfd5de | 186 | %attr(755,root,root) %{_bindir}/rdfproc |
ec6b87a7 JB |
187 | %attr(755,root,root) %{_bindir}/redland-db-upgrade |
188 | %attr(755,root,root) %{_libdir}/librdf.so.*.*.* | |
a4379346 | 189 | %attr(755,root,root) %ghost %{_libdir}/librdf.so.0 |
73e11545 JB |
190 | %dir %{_libdir}/redland |
191 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_file.so | |
cea26c28 JB |
192 | %dir %{_datadir}/redland |
193 | %{_datadir}/redland/mysql-v*.ttl | |
75bfd5de | 194 | %{_mandir}/man1/rdfproc.1* |
9c3d57bf | 195 | %{_mandir}/man1/redland-db-upgrade.1* |
ec6b87a7 JB |
196 | |
197 | %files devel | |
198 | %defattr(644,root,root,755) | |
9c5a6be5 | 199 | %doc docs/{README.html,storage.html} |
ec6b87a7 JB |
200 | %attr(755,root,root) %{_bindir}/redland-config |
201 | %attr(755,root,root) %{_libdir}/librdf.so | |
202 | %{_libdir}/librdf.la | |
203 | %{_includedir}/librdf.h | |
204 | %{_includedir}/rdf_*.h | |
205 | %{_includedir}/redland.h | |
841e524c | 206 | %{_datadir}/redland/Redland.i |
d04c2610 | 207 | %{_pkgconfigdir}/redland.pc |
9c3d57bf | 208 | %{_mandir}/man1/redland-config.1* |
ec6b87a7 | 209 | %{_mandir}/man3/redland.3* |
9c5a6be5 | 210 | %{_gtkdocdir}/redland |
ec6b87a7 JB |
211 | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
214 | %{_libdir}/librdf.a | |
73e11545 JB |
215 | |
216 | %files storage-mysql | |
217 | %defattr(644,root,root,755) | |
218 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_mysql.so | |
219 | ||
220 | %files storage-postgresql | |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_postgresql.so | |
223 | ||
224 | %files storage-sqlite | |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_sqlite.so | |
227 | ||
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 | |
232 | %endif |