]>
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 | |
353d2a44 | 9 | Release: 13 |
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 |
d4760af2 | 16 | Patch2: format-security.patch |
73e5496b | 17 | URL: http://threestore.sourceforge.net/ |
0a32ac47 JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
73e5496b | 20 | BuildRequires: flex |
a1caaefe SS |
21 | %{!?with_glib2:BuildRequires: glib-devel} |
22 | %{?with_glib2:BuildRequires: glib2-devel} | |
73e5496b | 23 | BuildRequires: libraptor-devel >= 0.9.10 |
0a32ac47 | 24 | BuildRequires: libtool |
73e5496b | 25 | BuildRequires: mysql-devel |
54020355 | 26 | %{?with_glib2:BuildRequires: pkgconfig} |
9ff042b4 | 27 | BuildRequires: readline-devel |
73e5496b JB |
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 | ||
3fa76339 JR |
35 | %description -l pl.UTF-8 |
36 | 3store to wysoce skalowalne triplestore RDF, udostępnione na | |
73e5496b JB |
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 | |
79305065 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki 3store |
73e5496b JB |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
74fd07b0 JB |
45 | # for -lfl |
46 | Requires: flex | |
323452f9 SS |
47 | %{!?with_glib2:Requires: glib-devel} |
48 | %{?with_glib2:Requires: glib2-devel} | |
73e5496b JB |
49 | Requires: libraptor-devel >= 0.9.10 |
50 | Requires: mysql-devel | |
51 | ||
52 | %description devel | |
53 | Header files for 3store library. | |
54 | ||
3fa76339 JR |
55 | %description devel -l pl.UTF-8 |
56 | Pliki nagłówkowe biblioteki 3store. | |
73e5496b JB |
57 | |
58 | %package static | |
59 | Summary: Static 3store library | |
79305065 | 60 | Summary(pl.UTF-8): Statyczna biblioteka 3store |
73e5496b JB |
61 | Group: Development/Libraries |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static 3store library. | |
66 | ||
3fa76339 | 67 | %description static -l pl.UTF-8 |
73e5496b JB |
68 | Statyczna biblioteka 3store. |
69 | ||
70 | %prep | |
71 | %setup -q | |
0a32ac47 | 72 | %patch0 -p1 |
a1caaefe | 73 | %{?with_glib2:%patch1 -p1} |
d4760af2 | 74 | %patch2 -p1 |
73e5496b JB |
75 | |
76 | %build | |
0a32ac47 JB |
77 | %{__libtoolize} |
78 | %{__aclocal} | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
73e5496b JB |
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.*.*.* | |
c2faba38 | 102 | %attr(755,root,root) %ghost %{_libdir}/librdfsql.so.0 |
73e5496b | 103 | %attr(755,root,root) %{_libdir}/libokbc.so.*.*.* |
c2faba38 | 104 | %attr(755,root,root) %ghost %{_libdir}/libokbc.so.0 |
73e5496b JB |
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 |