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