]>
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 |
cea26c28 | 8 | Version: 1.0.6 |
4b9fd8b2 | 9 | Release: 4 |
c8708410 | 10 | License: LGPL v2.1+ or GPL v2+ or Apache v2 |
ec6b87a7 | 11 | Group: Libraries |
9c5a6be5 | 12 | Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz |
cea26c28 | 13 | # Source0-md5: 901bf87252658c8b247dc6eda00f8724 |
de39a299 | 14 | Patch0: %{name}-link.patch |
9c5a6be5 | 15 | URL: http://librdf.org/ |
283dd99c | 16 | %if %{with threestore} |
14845a81 JB |
17 | BuildRequires: 3store-devel >= 2.0 |
18 | BuildRequires: 3store-devel < 3.0 | |
283dd99c | 19 | %endif |
9c3d57bf | 20 | BuildRequires: autoconf >= 2.53 |
02162650 | 21 | BuildRequires: automake >= 1:1.7 |
ec6b87a7 | 22 | BuildRequires: db-devel |
c99e2732 | 23 | BuildRequires: gtk-doc |
cea26c28 | 24 | BuildRequires: libraptor-devel >= 1.4.15 |
ec6b87a7 | 25 | BuildRequires: libtool |
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 | |
cea26c28 | 30 | BuildRequires: rasqal-devel >= 1:0.9.14 |
9c5a6be5 | 31 | BuildRequires: rpmbuild(macros) >= 1.98 |
a4379346 | 32 | BuildRequires: sed >= 4.0 |
9c5a6be5 | 33 | BuildRequires: sqlite3-devel >= 3 |
cea26c28 JB |
34 | Requires: libraptor >= 1.4.15 |
35 | Requires: rasqal >= 1:0.9.14 | |
493fe0ac JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
ec6b87a7 JB |
39 | Redland is a library that provides a high-level interface for RDF |
40 | allowing the RDF graph to be parsed from XML, stored, queried and | |
41 | manipulated. Redland implements each of the RDF concepts in its own | |
42 | class via an object based API, reflected into the other language APIs: | |
43 | Perl, Python, Tcl, Java and Ruby. Some of the classes providing the | |
44 | parsers, storage mechanisms and other elements are built as modules | |
45 | that can be added or removed as required. | |
46 | ||
ca9ca427 JR |
47 | %description -l pl.UTF-8 |
48 | Redland to biblioteka udostępniająca wysokopoziomowy interfejs do RDF, | |
49 | pozwalająca na analizę grafu RDF z XML-a, jego przechowywanie, | |
50 | odpytywanie i obróbkę. Redland zawiera implementacje każdego pojęcia z | |
51 | RDF w osobnej klasie poprzez obiekt oparty na API, mający | |
52 | odzwierciedlenie w API dla innych języków: Perla, Pythona, Tcl-a, Javy | |
53 | i Ruby'ego. Część klas udostępniających analizatory, mechanizmy | |
54 | przechowywania i inne elementy jest zbudowana jako moduły, które mogą | |
55 | być dodawane lub usuwane w razie potrzeby. | |
ec6b87a7 JB |
56 | |
57 | %package devel | |
58 | Summary: Headers for Redland RDF library | |
e2351b75 | 59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Redland RDF |
ec6b87a7 | 60 | Group: Development/Libraries |
d04c2610 | 61 | Requires: %{name} = %{version}-%{release} |
283dd99c | 62 | %if %{with threestore} |
14845a81 JB |
63 | Requires: 3store-devel >= 2.0 |
64 | Requires: 3store-devel < 3.0 | |
283dd99c | 65 | %endif |
f0759125 | 66 | Requires: db-devel |
cea26c28 | 67 | Requires: libraptor-devel >= 1.4.15 |
d04c2610 | 68 | Requires: mysql-devel >= 3.23.58 |
9c5a6be5 | 69 | Requires: postgresql-devel |
cea26c28 | 70 | Requires: rasqal-devel >= 1:0.9.14 |
9c5a6be5 | 71 | Requires: sqlite3-devel >= 3 |
ec6b87a7 JB |
72 | |
73 | %description devel | |
74 | Headers for Redland RDF library. | |
75 | ||
ca9ca427 JR |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe biblioteki Redland RDF. | |
ec6b87a7 JB |
78 | |
79 | %package static | |
80 | Summary: Static Redland RDF library | |
e2351b75 | 81 | Summary(pl.UTF-8): Statyczna biblioteka Redland RDF |
ec6b87a7 | 82 | Group: Development/Libraries |
d04c2610 | 83 | Requires: %{name}-devel = %{version}-%{release} |
ec6b87a7 JB |
84 | |
85 | %description static | |
86 | Static Redland RDF library. | |
87 | ||
ca9ca427 | 88 | %description static -l pl.UTF-8 |
ec6b87a7 JB |
89 | Statyczna biblioteka Redland RDF. |
90 | ||
fe0c5f3f | 91 | %package -n python-redland |
92 | Summary: Python bindings for Redland RDF library | |
e2351b75 | 93 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki Redland RDF |
fe0c5f3f | 94 | Group: Libraries/Python |
d04c2610 JB |
95 | Requires: %{name} = %{version}-%{release} |
96 | %pyrequires_eq python | |
fe0c5f3f | 97 | |
98 | %description -n python-redland | |
99 | Python bindings for Redland RDF library | |
100 | ||
ca9ca427 | 101 | %description -n python-redland -l pl.UTF-8 |
fe0c5f3f | 102 | Pythonowy interfejs do biblioteki Redland RDF |
103 | ||
493fe0ac JB |
104 | %prep |
105 | %setup -q | |
de39a299 | 106 | %patch0 -p1 |
493fe0ac | 107 | |
a4379346 JB |
108 | sed -i -e 's,bdbc_prefix/lib$,bdbc_prefix/%{_lib},' configure.ac |
109 | ||
493fe0ac | 110 | %build |
ec6b87a7 | 111 | %{__libtoolize} |
c99e2732 | 112 | %{__gtkdocize} |
ec6b87a7 JB |
113 | %{__aclocal} |
114 | %{__autoconf} | |
115 | %{__autoheader} | |
116 | %{__automake} | |
75bfd5de | 117 | %configure \ |
9c5a6be5 | 118 | --with-html-dir=%{_gtkdocdir} \ |
283dd99c | 119 | --with-threestore=%{!?with_threestore:no}%{?with_threestore:yes} \ |
d04c2610 | 120 | --with-raptor=system \ |
841e524c | 121 | --with-rasqal=system |
ec6b87a7 | 122 | |
493fe0ac JB |
123 | %{__make} |
124 | ||
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %{__make} install \ | |
129 | DESTDIR=$RPM_BUILD_ROOT | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
ec6b87a7 JB |
134 | %post -p /sbin/ldconfig |
135 | %postun -p /sbin/ldconfig | |
136 | ||
493fe0ac JB |
137 | %files |
138 | %defattr(644,root,root,755) | |
9c5a6be5 | 139 | %doc AUTHORS ChangeLog* FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html |
75bfd5de | 140 | %attr(755,root,root) %{_bindir}/rdfproc |
ec6b87a7 JB |
141 | %attr(755,root,root) %{_bindir}/redland-db-upgrade |
142 | %attr(755,root,root) %{_libdir}/librdf.so.*.*.* | |
a4379346 | 143 | %attr(755,root,root) %ghost %{_libdir}/librdf.so.0 |
cea26c28 JB |
144 | %dir %{_datadir}/redland |
145 | %{_datadir}/redland/mysql-v*.ttl | |
75bfd5de | 146 | %{_mandir}/man1/rdfproc.1* |
9c3d57bf | 147 | %{_mandir}/man1/redland-db-upgrade.1* |
ec6b87a7 JB |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
9c5a6be5 | 151 | %doc docs/{README.html,storage.html} |
ec6b87a7 JB |
152 | %attr(755,root,root) %{_bindir}/redland-config |
153 | %attr(755,root,root) %{_libdir}/librdf.so | |
154 | %{_libdir}/librdf.la | |
155 | %{_includedir}/librdf.h | |
156 | %{_includedir}/rdf_*.h | |
157 | %{_includedir}/redland.h | |
841e524c | 158 | %{_datadir}/redland/Redland.i |
d04c2610 | 159 | %{_pkgconfigdir}/redland.pc |
9c3d57bf | 160 | %{_mandir}/man1/redland-config.1* |
ec6b87a7 | 161 | %{_mandir}/man3/redland.3* |
9c5a6be5 | 162 | %{_gtkdocdir}/redland |
ec6b87a7 JB |
163 | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/librdf.a |