]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - missing deps: | |
3 | # * Sesame2 storage backend (java-based) | |
4 | # * Raptor RDF serializer | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without serializer # with raptor serializer. need to figure out proper BR | |
8 | %bcond_without sesame2 # with sesame2backend | |
9 | ||
10 | %define qtbrver 4.4.3 | |
11 | ||
12 | Summary: Soprano - Qt wrapper API to librdf | |
13 | Summary(pl.UTF-8): Soprano - wrapper Qt do librdf | |
14 | Name: soprano | |
15 | Version: 2.2.3 | |
16 | Release: 2 | |
17 | License: GPL v2 | |
18 | Group: X11/Applications | |
19 | Source0: http://dl.sourceforge.net/soprano/%{name}-%{version}.tar.bz2 | |
20 | # Source0-md5: 22c992a252144ae0a3a964ba2f6f1933 | |
21 | URL: http://sourceforge.net/projects/soprano | |
22 | BuildRequires: QtCore-devel >= %{qtbrver} | |
23 | BuildRequires: QtDBus-devel >= %{qtbrver} | |
24 | BuildRequires: QtNetwork-devel >= %{qtbrver} | |
25 | BuildRequires: QtTest-devel >= %{qtbrver} | |
26 | BuildRequires: clucene-core-devel >= 0.9.16a-2 | |
27 | BuildRequires: cmake >= 2.6.2 | |
28 | %{?with_sesame2:BuildRequires: libgcj-devel} | |
29 | %{?with_serializer:BuildRequires: libraptor-devel} | |
30 | BuildRequires: qt4-build >= %{qtbrver} | |
31 | BuildRequires: qt4-qmake >= %{qtbrver} | |
32 | BuildRequires: rasqal-devel | |
33 | BuildRequires: redland-devel >= 1.0.6 | |
34 | BuildRequires: rpmbuild(macros) >= 1.453 | |
35 | BuildConflicts: java-sun | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Soprano (formally known as QRDF) is a library which provides a Qt | |
40 | wrapper API to different RDF storage solutions. It features named | |
41 | graphs (contexts) and has a modular plug-in structure which allows to | |
42 | use different RDF storage implementations. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Soprano (wcześniej znane jako QRDF) to biblioteka udostępniająca | |
46 | API wrappera Qt do różnych rozwiązań przechowywania danych RDF. | |
47 | Obsługuje nazwane grafy (konteksty) i ma strukturę modularnych | |
48 | wtyczek, co pozwala na używanie różnych implementacji | |
49 | przechowywania danych RDF. | |
50 | ||
51 | %package devel | |
52 | Summary: Header files for soprano | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe dla soprano | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description devel | |
58 | Header files for soprano. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe dla soprano. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | # Sesame2 backend doesn't really use the new JNI-1.6 feature -> GetObjectRefType. | |
66 | #sed -i 's:JNI_VERSION_1_6:JNI_VERSION_1_4:g' CMakeLists.txt | |
67 | # cleanup. | |
68 | #sed -i 's:${JAVA_INCLUDE_PATH2}::' backends/sesame2/CMakeLists.txt | |
69 | ||
70 | %build | |
71 | install -d build | |
72 | cd build | |
73 | # add this to get verbose output | |
74 | # -DCMAKE_VERBOSE_MAKEFILE=1 | |
75 | %cmake \ | |
76 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
77 | -DQT_QMAKE_EXECUTABLE=%{_bindir}/qmake-qt4 \ | |
78 | %if "%{_lib}" == "lib64" | |
79 | -DLIB_SUFFIX=64 \ | |
80 | %endif | |
81 | -DJAVA_INCLUDE_PATH=%{_libdir}/gcc/%{_target_platform}/%{cc_version}/include \ | |
82 | -DJAVA_INCLUDE_PATH2=%{_libdir}/gcc/%{_target_platform}/%{cc_version}/include \ | |
83 | -DJAVA_JVM_LIBRARY=%{_libdir}/gcj-%{cc_version}-10/libjvm.so \ | |
84 | ../ | |
85 | ||
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} -C build install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_bindir}/sopranocmd | |
103 | %attr(755,root,root) %{_bindir}/sopranod | |
104 | %attr(755,root,root) %{_bindir}/onto2vocabularyclass | |
105 | %attr(755,root,root) %{_libdir}/libsoprano.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libsoprano.so.4 | |
107 | %attr(755,root,root) %{_libdir}/libsopranoclient.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libsopranoclient.so.1 | |
109 | %attr(755,root,root) %{_libdir}/libsopranoserver.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libsopranoserver.so.1 | |
111 | %attr(755,root,root) %{_libdir}/libsopranoindex.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libsopranoindex.so.1 | |
113 | %dir %{_libdir}/soprano | |
114 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_redlandbackend.so | |
115 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_nquadparser.so | |
116 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_nquadserializer.so | |
117 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_raptorparser.so | |
118 | %{?with_sesame2:%attr(755,root,root) %{_libdir}/soprano/libsoprano_sesame2backend.so} | |
119 | %{?with_serializer:%attr(755,root,root) %{_libdir}/soprano/libsoprano_raptorserializer.so} | |
120 | %{_datadir}/soprano | |
121 | %{_datadir}/dbus-1/interfaces/org.soprano.Model.xml | |
122 | %{_datadir}/dbus-1/interfaces/org.soprano.NodeIterator.xml | |
123 | %{_datadir}/dbus-1/interfaces/org.soprano.QueryResultIterator.xml | |
124 | %{_datadir}/dbus-1/interfaces/org.soprano.Server.xml | |
125 | %{_datadir}/dbus-1/interfaces/org.soprano.StatementIterator.xml | |
126 | ||
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/libsoprano.so | |
130 | %attr(755,root,root) %{_libdir}/libsopranoserver.so | |
131 | %attr(755,root,root) %{_libdir}/libsopranoclient.so | |
132 | %attr(755,root,root) %{_libdir}/libsopranoindex.so | |
133 | %dir %{_includedir}/soprano | |
134 | %{_includedir}/soprano/*.h | |
135 | %{_includedir}/Soprano | |
136 | %{_pkgconfigdir}/soprano.pc |