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