]>
Commit | Line | Data |
---|---|---|
2fc92623 | 1 | %define _snap rc2 |
6b75f615 | 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 |
2fc92623 | 6 | Version: 1.99 |
6b75f615 | 7 | Release: 0.%{_snap}.1 |
5a8ef18c | 8 | License: GPLv2 |
195f432c | 9 | Group: X11/Applications |
2fc92623 RT |
10 | Source0: http://dl.sourceforge.net/soprano/%{name}-%{version}-%{_snap}.tar.bz2 |
11 | # Source0-md5: 78ae22f085e5e9eb06ee7cda23ecfa0f | |
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 | |
2fc92623 | 47 | %setup -q -n %{name}-%{version}-%{_snap} |
195f432c | 48 | |
49 | %build | |
50 | install -d build | |
51 | cd build | |
52 | %cmake \ | |
53 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
0b2cd574 | 54 | -DCMAKE_VERBOSE_MAKEFILE=1 \ |
195f432c | 55 | -DQT_QMAKE_EXECUTABLE=%{_bindir}/qt4-qmake \ |
56 | %if "%{_lib}" == "lib64" | |
57 | -DLIB_SUFFIX=64 \ | |
58 | %endif | |
0b2cd574 | 59 | .. |
195f432c | 60 | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
8667f3ab JB |
65 | |
66 | %{__make} -C build install \ | |
195f432c | 67 | DESTDIR=$RPM_BUILD_ROOT |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
2fc92623 RT |
77 | %attr(755,root,root) %{_bindir}/sopranocmd |
78 | %attr(755,root,root) %{_bindir}/sopranod | |
0b2cd574 | 79 | %attr(755,root,root) %{_libdir}/libsoprano.so.*.*.* |
2fc92623 | 80 | %attr(755,root,root) %ghost %{_libdir}/libsoprano.so.4 |
195f432c | 81 | %dir %{_libdir}/soprano |
2fc92623 RT |
82 | %attr(755,root,root) %ghost %{_libdir}/libsopranoclient.so.1 |
83 | %attr(755,root,root) %{_libdir}/libsopranoclient.so.1.0.0 | |
84 | ||
85 | %attr(755,root,root) %ghost %{_libdir}/libsopranoserver.so.1 | |
86 | %attr(755,root,root) %{_libdir}/libsopranoserver.so.1.0.0 | |
87 | ||
0b2cd574 | 88 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_redlandbackend.so |
2fc92623 RT |
89 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_nquadparser.so |
90 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_nquadserializer.so | |
91 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_raptorparser.so | |
92 | %attr(755,root,root) %{_libdir}/soprano/libsoprano_raptorserializer.so | |
93 | ||
94 | %{_pkgconfigdir}/soprano.pc | |
95 | ||
96 | %dir %{_datadir}/dbus-1/interfaces | |
97 | %{_datadir}/dbus-1/interfaces/org.soprano.Model.xml | |
98 | %{_datadir}/dbus-1/interfaces/org.soprano.NodeIterator.xml | |
99 | %{_datadir}/dbus-1/interfaces/org.soprano.QueryResultIterator.xml | |
100 | %{_datadir}/dbus-1/interfaces/org.soprano.Server.xml | |
101 | %{_datadir}/dbus-1/interfaces/org.soprano.StatementIterator.xml | |
102 | ||
103 | %{_datadir}/soprano | |
195f432c | 104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
0b2cd574 | 107 | %attr(755,root,root) %{_libdir}/libsoprano.so |
2fc92623 RT |
108 | %attr(755,root,root) %{_libdir}/libsopranoserver.so |
109 | %attr(755,root,root) %{_libdir}/libsopranoclient.so | |
110 | ||
195f432c | 111 | %dir %{_includedir}/soprano |
112 | %{_includedir}/soprano/*.h | |
2fc92623 | 113 | %{_includedir}/Soprano |