| [5353] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Summary: Double-Array Trie Library |
|---|
| 4 | Name: libdatrie |
|---|
| 5 | Version: 0.2.5 |
|---|
| [6890] | 6 | Release: 2%{?_dist_release} |
|---|
| [5353] | 7 | Source0: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.gz |
|---|
| 8 | License: GPLv2 |
|---|
| 9 | Group: System Environment/Libraries |
|---|
| 10 | URL: http://linux.thai.net/~thep/datrie/datrie.html |
|---|
| 11 | |
|---|
| 12 | BuildRequires: doxygen |
|---|
| 13 | |
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 15 | |
|---|
| 16 | Vendor: Project Vine |
|---|
| 17 | Distribution: Vine Linux |
|---|
| 18 | Packager: Takemikaduchi |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | This is an implementation of double-array structure for representing trie, |
|---|
| 23 | as proposed by Junichi Aoe. |
|---|
| 24 | |
|---|
| 25 | Trie is a kind of digital search tree, an efficient indexing method with |
|---|
| 26 | O(1) time complexity for searching. Comparably as efficient as hashing, |
|---|
| 27 | trie also provides flexibility on incremental matching and key spelling |
|---|
| 28 | manipulation. This makes it ideal for lexical analyzers, as well as spelling |
|---|
| 29 | dictionaries. |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | %package devel |
|---|
| 33 | Summary: Development tools for libdatrie |
|---|
| 34 | Summary(ja): libdatrie の開発環境 |
|---|
| 35 | Group: Development/Libraries |
|---|
| 36 | Requires: %{name} = %{version}-%{release} |
|---|
| 37 | Requires: pkgconfig |
|---|
| 38 | |
|---|
| 39 | %description devel |
|---|
| 40 | Header files and libraries for building a extension library for the |
|---|
| 41 | libdatrie. |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | %package doc |
|---|
| 45 | Summary: Documentation for libdatrie |
|---|
| 46 | Summary(ja): libdatrie 用のドキュメント |
|---|
| 47 | Group: Documentation |
|---|
| 48 | Requires: %{name} = %{version}-%{release} |
|---|
| 49 | BuildArch: noarch |
|---|
| 50 | |
|---|
| 51 | %description doc |
|---|
| 52 | This package contains documentation for libdatrie |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | # compat32 |
|---|
| 56 | %package -n compat32-%{name} |
|---|
| 57 | Summary: Double-Array Trie Library |
|---|
| 58 | Group: System Environment/Libraries |
|---|
| 59 | Requires: %{name} = %{version}-%{release} |
|---|
| 60 | |
|---|
| 61 | %description -n compat32-%{name} |
|---|
| 62 | This is an implementation of double-array structure for representing trie, |
|---|
| 63 | as proposed by Junichi Aoe. |
|---|
| 64 | |
|---|
| 65 | Trie is a kind of digital search tree, an efficient indexing method with |
|---|
| 66 | O(1) time complexity for searching. Comparably as efficient as hashing, |
|---|
| 67 | trie also provides flexibility on incremental matching and key spelling |
|---|
| 68 | manipulation. This makes it ideal for lexical analyzers, as well as spelling |
|---|
| 69 | dictionaries. |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | %package -n compat32-%{name}-devel |
|---|
| 73 | Summary: Development tools for libdatrie |
|---|
| 74 | Summary(ja): libdatrie の開発環境 |
|---|
| 75 | Group: Development/Libraries |
|---|
| 76 | Requires: compat32-%{name} = %{version}-%{release} |
|---|
| 77 | Requires: pkgconfig |
|---|
| 78 | |
|---|
| 79 | %description -n compat32-%{name}-devel |
|---|
| 80 | Header files and libraries for building a extension library for the |
|---|
| 81 | libdatrie. |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %prep |
|---|
| 85 | %setup -q |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | %build |
|---|
| 89 | %configure \ |
|---|
| 90 | --disable-static |
|---|
| 91 | |
|---|
| 92 | %{__make} %{?_smp_mflags} |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | %install |
|---|
| 96 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 97 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 98 | |
|---|
| 99 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
|---|
| 100 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | %clean |
|---|
| 104 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 105 | |
|---|
| 106 | %post -p /sbin/ldconfig |
|---|
| 107 | |
|---|
| 108 | %postun -p /sbin/ldconfig |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | %files |
|---|
| 112 | %defattr(-,root,root,-) |
|---|
| 113 | %doc COPYING ChangeLog NEWS README |
|---|
| 114 | %{_bindir}/trietool-0.2 |
|---|
| 115 | %{_libdir}/%{name}.so.* |
|---|
| 116 | %{_mandir}/man1/*.gz |
|---|
| 117 | |
|---|
| 118 | %files devel |
|---|
| 119 | %defattr(-,root,root,-) |
|---|
| 120 | %{_includedir}/datrie |
|---|
| 121 | %{_libdir}/%{name}.so |
|---|
| 122 | %{_libdir}/pkgconfig/datrie-0.2.pc |
|---|
| 123 | |
|---|
| 124 | %files doc |
|---|
| 125 | %defattr(-,root,root,-) |
|---|
| 126 | %{_docdir}/%{name}/README.migration |
|---|
| 127 | %{_docdir}/datrie |
|---|
| 128 | |
|---|
| 129 | %if %{build_compat32} |
|---|
| 130 | %files -n compat32-%{name} |
|---|
| 131 | %defattr(-, root, root,-) |
|---|
| 132 | %{_libdir}/%{name}.so.* |
|---|
| 133 | |
|---|
| 134 | %files -n compat32-%{name}-devel |
|---|
| 135 | %defattr(-, root, root,-) |
|---|
| 136 | %{_libdir}/%{name}.so |
|---|
| 137 | %endif |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | %changelog |
|---|
| [6890] | 141 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-2 |
|---|
| 142 | - remove *.pc from compat32-%{name}-devel |
|---|
| 143 | - fix typo |
|---|
| 144 | |
|---|
| 145 | * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-1 |
|---|
| [5353] | 146 | - initial build for Vine Linux |
|---|
| 147 | |
|---|