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