]>
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 |
d21166ff | 8 | Version: 1.0.15 |
4624cdfc | 9 | Release: 3 |
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 |
d21166ff | 13 | # Source0-md5: b0deb87f3c7d3237a3d587c1e0f2f266 |
9c5a6be5 | 14 | URL: http://librdf.org/ |
283dd99c | 15 | %if %{with threestore} |
14845a81 JB |
16 | BuildRequires: 3store-devel >= 2.0 |
17 | BuildRequires: 3store-devel < 3.0 | |
283dd99c | 18 | %endif |
9c3d57bf | 19 | BuildRequires: autoconf >= 2.53 |
5bdac8fa | 20 | BuildRequires: automake >= 1:1.11 |
ec6b87a7 | 21 | BuildRequires: db-devel |
fcec26f3 | 22 | BuildRequires: gtk-doc >= 1.3 |
73e11545 | 23 | BuildRequires: libltdl-devel |
22f51868 | 24 | BuildRequires: libraptor2-devel >= 2.0.4 |
5bdac8fa | 25 | BuildRequires: libtool >= 2:2.0 |
d04c2610 | 26 | BuildRequires: mysql-devel >= 3.23.58 |
493bc4a0 | 27 | BuildRequires: openssl-devel >= 0.9.7d |
9c5a6be5 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: postgresql-devel | |
fcec26f3 | 30 | BuildRequires: rasqal-devel >= 1:0.9.25 |
9c5a6be5 | 31 | BuildRequires: rpmbuild(macros) >= 1.98 |
a4379346 | 32 | BuildRequires: sed >= 4.0 |
9c5a6be5 | 33 | BuildRequires: sqlite3-devel >= 3 |
434fbba9 | 34 | BuildRequires: unixODBC-devel |
22f51868 | 35 | Requires: libraptor2 >= 2.0.4 |
fcec26f3 | 36 | Requires: rasqal >= 1:0.9.25 |
493fe0ac JB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
ec6b87a7 JB |
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. | |
47 | ||
ca9ca427 JR |
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. | |
ec6b87a7 JB |
57 | |
58 | %package devel | |
59 | Summary: Headers for Redland RDF library | |
e2351b75 | 60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF |
ec6b87a7 | 61 | Group: Development/Libraries |
d04c2610 | 62 | Requires: %{name} = %{version}-%{release} |
f0759125 | 63 | Requires: db-devel |
73e11545 | 64 | Requires: libltdl-devel |
22f51868 | 65 | Requires: libraptor2-devel >= 2.0.4 |
fcec26f3 | 66 | Requires: rasqal-devel >= 1:0.9.25 |
ec6b87a7 JB |
67 | |
68 | %description devel | |
69 | Headers for Redland RDF library. | |
70 | ||
ca9ca427 JR |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe biblioteki Redland RDF. | |
ec6b87a7 JB |
73 | |
74 | %package static | |
75 | Summary: Static Redland RDF library | |
e2351b75 | 76 | Summary(pl.UTF-8): Statyczna biblioteka Redland RDF |
ec6b87a7 | 77 | Group: Development/Libraries |
d04c2610 | 78 | Requires: %{name}-devel = %{version}-%{release} |
ec6b87a7 JB |
79 | |
80 | %description static | |
81 | Static Redland RDF library. | |
82 | ||
ca9ca427 | 83 | %description static -l pl.UTF-8 |
ec6b87a7 JB |
84 | Statyczna biblioteka Redland RDF. |
85 | ||
73e11545 JB |
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 | |
89 | Group: Libraries | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description storage-mysql | |
93 | MySQL storage plugin for Redland RDF library. | |
94 | ||
95 | %description storage-mysql -l pl.UTF-8 | |
96 | Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland | |
97 | RDF. | |
98 | ||
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 | |
102 | Group: Libraries | |
d04c2610 | 103 | Requires: %{name} = %{version}-%{release} |
fe0c5f3f | 104 | |
73e11545 JB |
105 | %description storage-postgresql |
106 | PostgreSQL storage plugin for Redland RDF library. | |
fe0c5f3f | 107 | |
73e11545 JB |
108 | %description storage-postgresql -l pl.UTF-8 |
109 | Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki | |
110 | Redland RDF. | |
111 | ||
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 | |
115 | Group: Libraries | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | ||
118 | %description storage-sqlite | |
119 | SQLite storage plugin for Redland RDF library. | |
120 | ||
121 | %description storage-sqlite -l pl.UTF-8 | |
122 | Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland | |
123 | RDF. | |
124 | ||
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 | |
128 | Group: Libraries | |
129 | Requires: %{name} = %{version}-%{release} | |
130 | ||
131 | %description storage-tstore | |
132 | 3store storage plugin for Redland RDF library. | |
133 | ||
134 | %description storage-tstore -l pl.UTF-8 | |
135 | Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland | |
136 | RDF. | |
fe0c5f3f | 137 | |
ad19b744 CM |
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 | |
141 | Group: Libraries | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
144 | %description storage-virtuoso | |
145 | virtuoso storage plugin for Redland RDF library. | |
146 | ||
147 | %description storage-virtuoso -l pl.UTF-8 | |
148 | Wtyczka przechowywania danych w bazie virtuoso dla biblioteki Redland | |
149 | RDF. | |
150 | ||
493fe0ac JB |
151 | %prep |
152 | %setup -q | |
153 | ||
46b62964 | 154 | sed -i 's,bdbc_prefix/lib$,bdbc_prefix/%{_lib},' configure.ac |
a4379346 | 155 | |
493fe0ac | 156 | %build |
ec6b87a7 | 157 | %{__libtoolize} |
c99e2732 | 158 | %{__gtkdocize} |
ec6b87a7 JB |
159 | %{__aclocal} |
160 | %{__autoconf} | |
161 | %{__autoheader} | |
162 | %{__automake} | |
75bfd5de | 163 | %configure \ |
434fbba9 JB |
164 | ac_cv_lib_iodbc_SQLConnect=no \ |
165 | --disable-ltdl-install \ | |
73e11545 | 166 | --enable-modular \ |
9c5a6be5 | 167 | --with-html-dir=%{_gtkdocdir} \ |
434fbba9 JB |
168 | --with-odbc-inc=/usr/include \ |
169 | --with-odbc-lib=/usr/%{_lib} \ | |
d04c2610 | 170 | --with-raptor=system \ |
73e11545 | 171 | --with-rasqal=system \ |
434fbba9 | 172 | --with-threads \ |
73e11545 | 173 | --with%{!?with_threestore:out}-threestore |
ec6b87a7 | 174 | |
3b2bc1b5 | 175 | %{__make} |
493fe0ac JB |
176 | |
177 | %install | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %{__make} install \ | |
181 | DESTDIR=$RPM_BUILD_ROOT | |
182 | ||
5bdac8fa | 183 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/redland/*.{la,a} |
73e11545 | 184 | |
493fe0ac JB |
185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
ec6b87a7 JB |
188 | %post -p /sbin/ldconfig |
189 | %postun -p /sbin/ldconfig | |
190 | ||
493fe0ac JB |
191 | %files |
192 | %defattr(644,root,root,755) | |
9c5a6be5 | 193 | %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html |
75bfd5de | 194 | %attr(755,root,root) %{_bindir}/rdfproc |
ec6b87a7 JB |
195 | %attr(755,root,root) %{_bindir}/redland-db-upgrade |
196 | %attr(755,root,root) %{_libdir}/librdf.so.*.*.* | |
a4379346 | 197 | %attr(755,root,root) %ghost %{_libdir}/librdf.so.0 |
73e11545 | 198 | %dir %{_libdir}/redland |
cea26c28 JB |
199 | %dir %{_datadir}/redland |
200 | %{_datadir}/redland/mysql-v*.ttl | |
75bfd5de | 201 | %{_mandir}/man1/rdfproc.1* |
9c3d57bf | 202 | %{_mandir}/man1/redland-db-upgrade.1* |
ec6b87a7 JB |
203 | |
204 | %files devel | |
205 | %defattr(644,root,root,755) | |
9c5a6be5 | 206 | %doc docs/{README.html,storage.html} |
ec6b87a7 JB |
207 | %attr(755,root,root) %{_bindir}/redland-config |
208 | %attr(755,root,root) %{_libdir}/librdf.so | |
209 | %{_libdir}/librdf.la | |
210 | %{_includedir}/librdf.h | |
211 | %{_includedir}/rdf_*.h | |
212 | %{_includedir}/redland.h | |
841e524c | 213 | %{_datadir}/redland/Redland.i |
d04c2610 | 214 | %{_pkgconfigdir}/redland.pc |
9c3d57bf | 215 | %{_mandir}/man1/redland-config.1* |
ec6b87a7 | 216 | %{_mandir}/man3/redland.3* |
9c5a6be5 | 217 | %{_gtkdocdir}/redland |
ec6b87a7 JB |
218 | |
219 | %files static | |
220 | %defattr(644,root,root,755) | |
221 | %{_libdir}/librdf.a | |
73e11545 JB |
222 | |
223 | %files storage-mysql | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_mysql.so | |
226 | ||
227 | %files storage-postgresql | |
228 | %defattr(644,root,root,755) | |
229 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_postgresql.so | |
230 | ||
231 | %files storage-sqlite | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_sqlite.so | |
234 | ||
ad19b744 CM |
235 | %files storage-virtuoso |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_virtuoso.so | |
238 | ||
73e11545 JB |
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 | |
243 | %endif |