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