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