1 # TODO: various language support (java, perl, php, ruby, tcl)
2 Summary: Redland - a library that provides a high-level interface for RDF
3 Summary(pl): Redland - biblioteka udostêpniaj±ca wysokopoziomowy interfejs do RDF
7 License: LGPL v2 or MPL 1.1
9 Source0: http://www.redland.opensource.ac.uk/dist/source/%{name}-%{version}.tar.gz
10 # Source0-md5: d78c768825df2727aec8336fe9772d8d
11 Patch0: %{name}-system-raptor.patch
12 URL: http://www.redland.opensource.ac.uk/
13 BuildRequires: autoconf >= 2.53
14 BuildRequires: automake >= 1.6
15 BuildRequires: db-devel
16 BuildRequires: libraptor-devel >= 1.2.0
17 BuildRequires: libtool
18 BuildRequires: mysql-devel >= 3.23.58
19 BuildRequires: openssl-devel >= 0.9.7d
20 BUildRequires: rpm-pythonprov
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Redland is a library that provides a high-level interface for RDF
25 allowing the RDF graph to be parsed from XML, stored, queried and
26 manipulated. Redland implements each of the RDF concepts in its own
27 class via an object based API, reflected into the other language APIs:
28 Perl, Python, Tcl, Java and Ruby. Some of the classes providing the
29 parsers, storage mechanisms and other elements are built as modules
30 that can be added or removed as required.
33 Redland to biblioteka udostêpniaj±ca wysokopoziomowy interfejs do RDF,
34 pozwalaj±ca na analizê grafu RDF z XML-a, jego przechowywanie,
35 odpytywanie i obróbkê. Redland zawiera implementacje ka¿dego pojêcia z
36 RDF w odobnej klasie poprzez obiekt oparty na API, maj±cy
37 odzwierciedlenie w API dla innych jêzyków: Perla, Pythona, Tcl-a, Javy
38 i Ruby'ego. Czê¶æ klas udostêpniaj±cych analizatory, mechanizmy
39 przechowywania i inne elementy jest zbudowana jako modu³y, które mog±
40 byæ dodawane lub usuwane w razie potrzeby.
43 Summary: Headers for Redland RDF library
44 Summary(pl): Pliki nag³ówkowe biblioteki Redland RDF
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
48 Requires: libraptor-devel >= 1.2.0
49 Requires: mysql-devel >= 3.23.58
52 Headers for Redland RDF library.
54 %description devel -l pl
55 Pliki nag³ówkowe biblioteki Redland RDF.
58 Summary: Static Redland RDF library
59 Summary(pl): Statyczna biblioteka Redland RDF
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static Redland RDF library.
66 %description static -l pl
67 Statyczna biblioteka Redland RDF.
70 Summary: Raptor RDF parser test program with Redland RDF support
71 Summary(pl): Testowy program parsera Raptor RDF ze wsparciem dla Redland RDF
73 Requires: %{name} = %{version}-%{release}
76 Raptor RDF parser test program with Redland RDF support.
78 %description rapper -l pl
79 Testowy program parsera Raptor RDF ze wsparciem dla Redland RDF.
81 %package -n python-redland
82 Summary: Python bindings for Redland RDF library
83 Summary(pl): Pythonowy interfejs do biblioteki Redland RDF
84 Group: Libraries/Python
85 Requires: %{name} = %{version}-%{release}
88 %description -n python-redland
89 Python bindings for Redland RDF library
91 %description -n python-redland -l pl
92 Pythonowy interfejs do biblioteki Redland RDF
109 automake -a -c --foreign
112 --with-raptor=system \
115 # --with-java --with-jdk=/usr/lib/java -- builds, but can be only optional
116 # --with-perl -- needs INSTALLDIRS=vendor in perl/Makefile.am
117 # --with-ruby -- missing install -d before installing *.so
118 # --with-tcl -- missing install -d before installing *.so
119 # --with-php -- cannot find config.h
120 # --with-ecma-cli=mono -- TODO
124 # build rapper with Redland/RDF support
128 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
133 %{__make} install -C raptor \
134 DESTDIR=$RPM_BUILD_ROOT
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
143 %defattr(644,root,root,755)
144 %doc AUTHORS ChangeLog FAQS.html LICENSE.html NEWS.html README.html RELEASE.html TODO.html
145 %attr(755,root,root) %{_bindir}/rdfproc
146 %attr(755,root,root) %{_bindir}/redland-db-upgrade
147 %attr(755,root,root) %{_libdir}/librdf.so.*.*.*
148 %{_mandir}/man1/rdfproc.1*
149 %{_mandir}/man1/redland-db-upgrade.1*
152 %defattr(644,root,root,755)
153 %doc docs/{README.html,overview.png,api}
154 %attr(755,root,root) %{_bindir}/redland-config
155 %attr(755,root,root) %{_libdir}/librdf.so
157 %{_includedir}/librdf.h
158 %{_includedir}/rdf_*.h
159 %{_includedir}/redland.h
160 %{_pkgconfigdir}/redland.pc
161 %{_mandir}/man1/redland-config.1*
162 %{_mandir}/man3/redland.3*
165 %defattr(644,root,root,755)
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_bindir}/rapper
171 %{_mandir}/man1/rapper.1*
173 %files -n python-redland
174 %defattr(644,root,root,755)
176 %attr(755,root,root) %{py_sitedir}/Redland.so