]>
Commit | Line | Data |
---|---|---|
6b75f615 | 1 | %define _snap 20070602 |
2 | ||
8667f3ab JB |
3 | Summary: Soprano - Qt wrapper API to librdf |
4 | Summary(pl.UTF-8): Soprano - wrapper Qt do librdf | |
195f432c | 5 | Name: soprano |
6b75f615 | 6 | Version: 0.9.0 |
7 | Release: 0.%{_snap}.1 | |
5a8ef18c | 8 | License: GPLv2 |
195f432c | 9 | Group: X11/Applications |
6b75f615 | 10 | Source0: %{name}-%{_snap}.tar.bz2 |
195f432c | 11 | # Source0-md5: 8785c5166b4c36bba29eb943c558c51d |
5a8ef18c | 12 | URL: http://sourceforge.net/projects/soprano |
195f432c | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
15 | BuildRequires: cmake | |
16 | BuildRequires: qt4-build | |
17 | BuildRequires: qt4-qmake | |
18 | BuildRequires: redland-devel | |
19 | BuildRequires: rpmbuild(macros) >= 1.129 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
8667f3ab JB |
23 | Soprano (formally known as QRDF) is a library which provides a Qt |
24 | wrapper API to different RDF storage solutions. It features named | |
25 | graphs (contexts) and has a modular plug-in structure which allows to | |
26 | use different RDF storage implementations. | |
195f432c | 27 | |
8667f3ab JB |
28 | %description -l pl.UTF-8 |
29 | Soprano (wcześniej znane jako QRDF) to biblioteka udostępniająca API | |
30 | wrappera Qt do różnych rozwiązań przechowywania danych RDF. Obsługuje | |
31 | nazwane grafy (konteksty) i ma strukturę modularnych wtyczek, co | |
32 | pozwala na używanie różnych implementacji przechowywania danych RDF. | |
195f432c | 33 | |
34 | %package devel | |
35 | Summary: Header files for soprano | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe dla soprano | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for soprano. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe dla soprano. | |
45 | ||
46 | %prep | |
47 | %setup -q -n %{name} | |
48 | ||
49 | %build | |
50 | install -d build | |
51 | cd build | |
52 | %cmake \ | |
53 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
54 | -DQT_QMAKE_EXECUTABLE=%{_bindir}/qt4-qmake \ | |
55 | %if "%{_lib}" == "lib64" | |
56 | -DLIB_SUFFIX=64 \ | |
57 | %endif | |
58 | ../ | |
59 | ||
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
8667f3ab JB |
64 | |
65 | %{__make} -C build install \ | |
195f432c | 66 | DESTDIR=$RPM_BUILD_ROOT |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_libdir}/*.so* | |
77 | %dir %{_libdir}/soprano | |
78 | %attr(755,root,root) %{_libdir}/soprano/*.so | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %dir %{_includedir}/soprano | |
83 | %{_includedir}/soprano/*.h |