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