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