1 | %define ver 0.2.1 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | %define srcname marisa |
---|
5 | |
---|
6 | Summary: Matching Algorithm with Recursively Implemented StorAge |
---|
7 | Name: marisa-trie |
---|
8 | Version: %{ver} |
---|
9 | Release: %{rel}%{_dist_release} |
---|
10 | License: BSD |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://code.google.com/p/marisa-trie/ |
---|
13 | Source0: http://marisa-trie.googlecode.com/files/%{srcname}-%{version}.tar.gz |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
15 | |
---|
16 | Vendor: Project Vine |
---|
17 | Distribution: Vine Linux |
---|
18 | Packager: iwaim |
---|
19 | |
---|
20 | %description |
---|
21 | *Matching Algorithm with Recursively Implemented !StorAge (MARISA)* is a static |
---|
22 | and space-efficient trie data structure. And *libmarisa* is a C++ library to p |
---|
23 | rovide an implementation of MARISA. Also, the package of *libmarisa* contains a |
---|
24 | set of command line tools for building and operating a MARISA-based dictionary |
---|
25 | . |
---|
26 | |
---|
27 | A MARISA-based dictionary supports not only lookup but also reverse lookup, com |
---|
28 | mon prefix search and predictive search. |
---|
29 | |
---|
30 | * Lookup is to check whether or not a given string exists in a dictionary. |
---|
31 | * Reverse lookup is to restore a key from its ID. |
---|
32 | * Common prefix search is to find keys from prefixes of a given string. |
---|
33 | * Predictive search is to find keys starting with a given string. |
---|
34 | |
---|
35 | The biggest advantage of *libmarisa* is that its dictionary size is considerabl |
---|
36 | y more compact than others. See below for the dictionary size of other implemen |
---|
37 | tations. |
---|
38 | |
---|
39 | |
---|
40 | %package devel |
---|
41 | Summary: Header files and libraries for developing apps which will use marisa-trie |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | The marisa-trie-devel package contains the header files and libraries. |
---|
47 | |
---|
48 | %prep |
---|
49 | %setup -q -n %{srcname}-%{version} |
---|
50 | |
---|
51 | %build |
---|
52 | %configure --enable-shared |
---|
53 | %__make |
---|
54 | |
---|
55 | %install |
---|
56 | %__rm -rf $RPM_BUILD_ROOT |
---|
57 | %makeinstall |
---|
58 | |
---|
59 | # remove files |
---|
60 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a} |
---|
61 | |
---|
62 | %clean |
---|
63 | %__rm -rf $RPM_BUILD_ROOT |
---|
64 | |
---|
65 | %files |
---|
66 | %defattr(-,root,root,-) |
---|
67 | %doc README ChangeLog COPYING AUTHORS NEWS docs |
---|
68 | %{_bindir}/marisa-benchmark |
---|
69 | %{_bindir}/marisa-build |
---|
70 | %{_bindir}/marisa-common-prefix-search |
---|
71 | %{_bindir}/marisa-dump |
---|
72 | %{_bindir}/marisa-lookup |
---|
73 | %{_bindir}/marisa-predictive-search |
---|
74 | %{_bindir}/marisa-reverse-lookup |
---|
75 | %{_libdir}/libmarisa.so.* |
---|
76 | |
---|
77 | %files devel |
---|
78 | %defattr(-,root,root,-) |
---|
79 | %doc COPYING AUTHORS |
---|
80 | %{_libdir}/pkgconfig/marisa.pc |
---|
81 | %dir %{_includedir}/marisa |
---|
82 | %{_includedir}/marisa.h |
---|
83 | %{_includedir}/marisa/*.h |
---|
84 | %{_libdir}/libmarisa.so |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1 |
---|
88 | - initial build for Vine Linux |
---|
89 | |
---|