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