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