]>
Commit | Line | Data |
---|---|---|
283dd99c ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without threestore # with 3store | |
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 |
3dcd3284 | 8 | Version: 1.0.8 |
04c61df6 | 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 |
3dcd3284 | 13 | # Source0-md5: ca66e26082cab8bb817185a116db809b |
de39a299 | 14 | Patch0: %{name}-link.patch |
73e11545 | 15 | Patch1: %{name}-storage-file.patch |
9c5a6be5 | 16 | URL: http://librdf.org/ |
283dd99c | 17 | %if %{with threestore} |
14845a81 JB |
18 | BuildRequires: 3store-devel >= 2.0 |
19 | BuildRequires: 3store-devel < 3.0 | |
283dd99c | 20 | %endif |
9c3d57bf | 21 | BuildRequires: autoconf >= 2.53 |
02162650 | 22 | BuildRequires: automake >= 1:1.7 |
ec6b87a7 | 23 | BuildRequires: db-devel |
c99e2732 | 24 | BuildRequires: gtk-doc |
73e11545 | 25 | BuildRequires: libltdl-devel |
3dcd3284 | 26 | BuildRequires: libraptor-devel >= 1.4.17 |
ec6b87a7 | 27 | BuildRequires: libtool |
d04c2610 | 28 | BuildRequires: mysql-devel >= 3.23.58 |
493bc4a0 | 29 | BuildRequires: openssl-devel >= 0.9.7d |
9c5a6be5 JB |
30 | BuildRequires: pkgconfig |
31 | BuildRequires: postgresql-devel | |
3dcd3284 | 32 | BuildRequires: rasqal-devel >= 1:0.9.16 |
9c5a6be5 | 33 | BuildRequires: rpmbuild(macros) >= 1.98 |
a4379346 | 34 | BuildRequires: sed >= 4.0 |
9c5a6be5 | 35 | BuildRequires: sqlite3-devel >= 3 |
3dcd3284 JB |
36 | Requires: libraptor >= 1.4.17 |
37 | Requires: rasqal >= 1:0.9.16 | |
493fe0ac JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
ec6b87a7 JB |
41 | Redland is a library that provides a high-level interface for RDF |
42 | allowing the RDF graph to be parsed from XML, stored, queried and | |
43 | manipulated. Redland implements each of the RDF concepts in its own | |
44 | class via an object based API, reflected into the other language APIs: | |
45 | Perl, Python, Tcl, Java and Ruby. Some of the classes providing the | |
46 | parsers, storage mechanisms and other elements are built as modules | |
47 | that can be added or removed as required. | |
48 | ||
ca9ca427 JR |
49 | %description -l pl.UTF-8 |
50 | Redland to biblioteka udostępniająca wysokopoziomowy interfejs do RDF, | |
51 | pozwalająca na analizę grafu RDF z XML-a, jego przechowywanie, | |
52 | odpytywanie i obróbkę. Redland zawiera implementacje każdego pojęcia z | |
53 | RDF w osobnej klasie poprzez obiekt oparty na API, mający | |
54 | odzwierciedlenie w API dla innych języków: Perla, Pythona, Tcl-a, Javy | |
55 | i Ruby'ego. Część klas udostępniających analizatory, mechanizmy | |
56 | przechowywania i inne elementy jest zbudowana jako moduły, które mogą | |
57 | być dodawane lub usuwane w razie potrzeby. | |
ec6b87a7 JB |
58 | |
59 | %package devel | |
60 | Summary: Headers for Redland RDF library | |
e2351b75 | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF |
ec6b87a7 | 62 | Group: Development/Libraries |
d04c2610 | 63 | Requires: %{name} = %{version}-%{release} |
f0759125 | 64 | Requires: db-devel |
73e11545 | 65 | Requires: libltdl-devel |
3dcd3284 JB |
66 | Requires: libraptor-devel >= 1.4.17 |
67 | Requires: rasqal-devel >= 1:0.9.16 | |
ec6b87a7 JB |
68 | |
69 | %description devel | |
70 | Headers for Redland RDF library. | |
71 | ||
ca9ca427 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe biblioteki Redland RDF. | |
ec6b87a7 JB |
74 | |
75 | %package static | |
76 | Summary: Static Redland RDF library | |
e2351b75 | 77 | Summary(pl.UTF-8): Statyczna biblioteka Redland RDF |
ec6b87a7 | 78 | Group: Development/Libraries |
d04c2610 | 79 | Requires: %{name}-devel = %{version}-%{release} |
ec6b87a7 JB |
80 | |
81 | %description static | |
82 | Static Redland RDF library. | |
83 | ||
ca9ca427 | 84 | %description static -l pl.UTF-8 |
ec6b87a7 JB |
85 | Statyczna biblioteka Redland RDF. |
86 | ||
73e11545 JB |
87 | %package storage-mysql |
88 | Summary: MySQL storage plugin for Redland RDF library | |
89 | Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland RDF | |
90 | Group: Libraries | |
91 | Requires: %{name} = %{version}-%{release} | |
92 | ||
93 | %description storage-mysql | |
94 | MySQL storage plugin for Redland RDF library. | |
95 | ||
96 | %description storage-mysql -l pl.UTF-8 | |
97 | Wtyczka przechowywania danych w bazie MySQL dla biblioteki Redland | |
98 | RDF. | |
99 | ||
100 | %package storage-postgresql | |
101 | Summary: PostgreSQL storage plugin for Redland RDF library | |
102 | Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki Redland RDF | |
103 | Group: Libraries | |
d04c2610 | 104 | Requires: %{name} = %{version}-%{release} |
fe0c5f3f | 105 | |
73e11545 JB |
106 | %description storage-postgresql |
107 | PostgreSQL storage plugin for Redland RDF library. | |
fe0c5f3f | 108 | |
73e11545 JB |
109 | %description storage-postgresql -l pl.UTF-8 |
110 | Wtyczka przechowywania danych w bazie PostgreSQL dla biblioteki | |
111 | Redland RDF. | |
112 | ||
113 | %package storage-sqlite | |
114 | Summary: SQLite storage plugin for Redland RDF library | |
115 | Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland RDF | |
116 | Group: Libraries | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | ||
119 | %description storage-sqlite | |
120 | SQLite storage plugin for Redland RDF library. | |
121 | ||
122 | %description storage-sqlite -l pl.UTF-8 | |
123 | Wtyczka przechowywania danych w bazie SQLite dla biblioteki Redland | |
124 | RDF. | |
125 | ||
126 | %package storage-tstore | |
127 | Summary: 3store storage plugin for Redland RDF library | |
128 | Summary(pl.UTF-8): Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland RDF | |
129 | Group: Libraries | |
130 | Requires: %{name} = %{version}-%{release} | |
131 | ||
132 | %description storage-tstore | |
133 | 3store storage plugin for Redland RDF library. | |
134 | ||
135 | %description storage-tstore -l pl.UTF-8 | |
136 | Wtyczka przechowywania danych w bazie 3store dla biblioteki Redland | |
137 | RDF. | |
fe0c5f3f | 138 | |
493fe0ac JB |
139 | %prep |
140 | %setup -q | |
de39a299 | 141 | %patch0 -p1 |
73e11545 | 142 | %patch1 -p1 |
493fe0ac | 143 | |
46b62964 PS |
144 | sed -i 's,bdbc_prefix/lib$,bdbc_prefix/%{_lib},' configure.ac |
145 | sed -i 's,for bdbc_version in 4\.6,for bdbc_version in 4\.7 4\.6,' configure.ac | |
a4379346 | 146 | |
493fe0ac | 147 | %build |
ec6b87a7 | 148 | %{__libtoolize} |
c99e2732 | 149 | %{__gtkdocize} |
ec6b87a7 JB |
150 | %{__aclocal} |
151 | %{__autoconf} | |
152 | %{__autoheader} | |
153 | %{__automake} | |
75bfd5de | 154 | %configure \ |
52d5a559 | 155 | --enable-ltdl-install=no \ |
73e11545 | 156 | --enable-modular \ |
52d5a559 | 157 | --with-threads \ |
9c5a6be5 | 158 | --with-html-dir=%{_gtkdocdir} \ |
d04c2610 | 159 | --with-raptor=system \ |
73e11545 JB |
160 | --with-rasqal=system \ |
161 | --with%{!?with_threestore:out}-threestore | |
ec6b87a7 | 162 | |
493fe0ac JB |
163 | %{__make} |
164 | ||
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
168 | %{__make} install \ | |
169 | DESTDIR=$RPM_BUILD_ROOT | |
170 | ||
73e11545 JB |
171 | rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.{la,a} |
172 | ||
493fe0ac JB |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
ec6b87a7 JB |
176 | %post -p /sbin/ldconfig |
177 | %postun -p /sbin/ldconfig | |
178 | ||
493fe0ac JB |
179 | %files |
180 | %defattr(644,root,root,755) | |
9c5a6be5 | 181 | %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html |
75bfd5de | 182 | %attr(755,root,root) %{_bindir}/rdfproc |
ec6b87a7 JB |
183 | %attr(755,root,root) %{_bindir}/redland-db-upgrade |
184 | %attr(755,root,root) %{_libdir}/librdf.so.*.*.* | |
a4379346 | 185 | %attr(755,root,root) %ghost %{_libdir}/librdf.so.0 |
73e11545 JB |
186 | %dir %{_libdir}/redland |
187 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_file.so | |
cea26c28 JB |
188 | %dir %{_datadir}/redland |
189 | %{_datadir}/redland/mysql-v*.ttl | |
75bfd5de | 190 | %{_mandir}/man1/rdfproc.1* |
9c3d57bf | 191 | %{_mandir}/man1/redland-db-upgrade.1* |
ec6b87a7 JB |
192 | |
193 | %files devel | |
194 | %defattr(644,root,root,755) | |
9c5a6be5 | 195 | %doc docs/{README.html,storage.html} |
ec6b87a7 JB |
196 | %attr(755,root,root) %{_bindir}/redland-config |
197 | %attr(755,root,root) %{_libdir}/librdf.so | |
198 | %{_libdir}/librdf.la | |
199 | %{_includedir}/librdf.h | |
200 | %{_includedir}/rdf_*.h | |
201 | %{_includedir}/redland.h | |
841e524c | 202 | %{_datadir}/redland/Redland.i |
d04c2610 | 203 | %{_pkgconfigdir}/redland.pc |
9c3d57bf | 204 | %{_mandir}/man1/redland-config.1* |
ec6b87a7 | 205 | %{_mandir}/man3/redland.3* |
9c5a6be5 | 206 | %{_gtkdocdir}/redland |
ec6b87a7 JB |
207 | |
208 | %files static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/librdf.a | |
73e11545 JB |
211 | |
212 | %files storage-mysql | |
213 | %defattr(644,root,root,755) | |
214 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_mysql.so | |
215 | ||
216 | %files storage-postgresql | |
217 | %defattr(644,root,root,755) | |
218 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_postgresql.so | |
219 | ||
220 | %files storage-sqlite | |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_sqlite.so | |
223 | ||
224 | %if %{with threestore} | |
225 | %files storage-tstore | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libdir}/redland/librdf_storage_tstore.so | |
228 | %endif |