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