]>
Commit | Line | Data |
---|---|---|
a1caaefe SS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with glib2 # use glib2 (default glib) | |
4 | # | |
73e5496b | 5 | Summary: 3store RDF engine |
79305065 | 6 | Summary(pl.UTF-8): Silnik RDF 3store |
73e5496b JB |
7 | Name: 3store |
8 | Version: 2.2.22 | |
0ae2934d | 9 | Release: 10 |
73e5496b JB |
10 | License: GPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://dl.sourceforge.net/threestore/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 6fa70d2830c82eb030d8888f4da0c86c | |
0a32ac47 | 14 | Patch0: %{name}-ac.patch |
a1caaefe | 15 | Patch1: glib2.patch |
73e5496b | 16 | URL: http://threestore.sourceforge.net/ |
0a32ac47 JB |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
73e5496b | 19 | BuildRequires: flex |
a1caaefe SS |
20 | %{!?with_glib2:BuildRequires: glib-devel} |
21 | %{?with_glib2:BuildRequires: glib2-devel} | |
73e5496b | 22 | BuildRequires: libraptor-devel >= 0.9.10 |
0a32ac47 | 23 | BuildRequires: libtool |
73e5496b | 24 | BuildRequires: mysql-devel |
54020355 | 25 | %{?with_glib2:BuildRequires: pkgconfig} |
9ff042b4 | 26 | BuildRequires: readline-devel |
73e5496b JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | 3store is a highly scalable RDF triplestore, made available under the | |
31 | GNU General Public Licence and funded by the AKT Consortium | |
32 | <http://www.aktors.org/>. | |
33 | ||
3fa76339 JR |
34 | %description -l pl.UTF-8 |
35 | 3store to wysoce skalowalne triplestore RDF, udostępnione na | |
73e5496b JB |
36 | Powszechnej Licencji Publicznej GNU (GPL), sponsorowane przez AKT |
37 | Consortium <http://www.aktors.org/>. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for 3store library | |
79305065 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki 3store |
73e5496b JB |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
74fd07b0 JB |
44 | # for -lfl |
45 | Requires: flex | |
323452f9 SS |
46 | %{!?with_glib2:Requires: glib-devel} |
47 | %{?with_glib2:Requires: glib2-devel} | |
73e5496b JB |
48 | Requires: libraptor-devel >= 0.9.10 |
49 | Requires: mysql-devel | |
50 | ||
51 | %description devel | |
52 | Header files for 3store library. | |
53 | ||
3fa76339 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki 3store. | |
73e5496b JB |
56 | |
57 | %package static | |
58 | Summary: Static 3store library | |
79305065 | 59 | Summary(pl.UTF-8): Statyczna biblioteka 3store |
73e5496b JB |
60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static 3store library. | |
65 | ||
3fa76339 | 66 | %description static -l pl.UTF-8 |
73e5496b JB |
67 | Statyczna biblioteka 3store. |
68 | ||
69 | %prep | |
70 | %setup -q | |
0a32ac47 | 71 | %patch0 -p1 |
a1caaefe | 72 | %{?with_glib2:%patch1 -p1} |
73e5496b JB |
73 | |
74 | %build | |
0a32ac47 JB |
75 | %{__libtoolize} |
76 | %{__aclocal} | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
73e5496b JB |
80 | %configure |
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog README | |
98 | %attr(755,root,root) %{_bindir}/tstore_* | |
99 | %attr(755,root,root) %{_libdir}/librdfsql.so.*.*.* | |
c2faba38 | 100 | %attr(755,root,root) %ghost %{_libdir}/librdfsql.so.0 |
73e5496b | 101 | %attr(755,root,root) %{_libdir}/libokbc.so.*.*.* |
c2faba38 | 102 | %attr(755,root,root) %ghost %{_libdir}/libokbc.so.0 |
73e5496b JB |
103 | %{_datadir}/3store |
104 | ||
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_bindir}/3store-config | |
108 | %attr(755,root,root) %{_libdir}/librdfsql.so | |
109 | %attr(755,root,root) %{_libdir}/libokbc.so | |
110 | %{_libdir}/librdfsql.la | |
111 | %{_libdir}/libokbc.la | |
112 | %{_includedir}/rdfsql | |
113 | %{_pkgconfigdir}/3store.pc | |
114 | ||
115 | %files static | |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/librdfsql.a | |
118 | %{_libdir}/libokbc.a |