[5353] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Double-Array Trie Library |
---|
| 4 | Name: libdatrie |
---|
[8353] | 5 | Version: 0.2.8 |
---|
[7938] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | Source0: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz |
---|
[5353] | 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 | |
---|
[7938] | 32 | %package devel |
---|
[5353] | 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 | |
---|
[7938] | 44 | %package docs |
---|
[5353] | 45 | Summary: Documentation for libdatrie |
---|
| 46 | Summary(ja): libdatrie 用のドキュメント |
---|
| 47 | Group: Documentation |
---|
| 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | BuildArch: noarch |
---|
[7938] | 50 | Provides: %{name}-doc = %{version}-%{release} |
---|
[5353] | 51 | |
---|
[7938] | 52 | %description docs |
---|
[5353] | 53 | This package contains documentation for libdatrie |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | # compat32 |
---|
| 57 | %package -n compat32-%{name} |
---|
| 58 | Summary: Double-Array Trie Library |
---|
| 59 | Group: System Environment/Libraries |
---|
| 60 | Requires: %{name} = %{version}-%{release} |
---|
| 61 | |
---|
| 62 | %description -n compat32-%{name} |
---|
| 63 | This is an implementation of double-array structure for representing trie, |
---|
| 64 | as proposed by Junichi Aoe. |
---|
| 65 | |
---|
| 66 | Trie is a kind of digital search tree, an efficient indexing method with |
---|
| 67 | O(1) time complexity for searching. Comparably as efficient as hashing, |
---|
| 68 | trie also provides flexibility on incremental matching and key spelling |
---|
| 69 | manipulation. This makes it ideal for lexical analyzers, as well as spelling |
---|
| 70 | dictionaries. |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %package -n compat32-%{name}-devel |
---|
| 74 | Summary: Development tools for libdatrie |
---|
| 75 | Summary(ja): libdatrie の開発環境 |
---|
| 76 | Group: Development/Libraries |
---|
| 77 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 78 | Requires: pkgconfig |
---|
| 79 | |
---|
| 80 | %description -n compat32-%{name}-devel |
---|
| 81 | Header files and libraries for building a extension library for the |
---|
| 82 | libdatrie. |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %prep |
---|
| 86 | %setup -q |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %build |
---|
| 90 | %configure \ |
---|
| 91 | --disable-static |
---|
| 92 | |
---|
| 93 | %{__make} %{?_smp_mflags} |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %install |
---|
| 97 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 98 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 99 | |
---|
| 100 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 101 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %clean |
---|
| 105 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 106 | |
---|
| 107 | %post -p /sbin/ldconfig |
---|
| 108 | |
---|
| 109 | %postun -p /sbin/ldconfig |
---|
| 110 | |
---|
[7938] | 111 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
[5353] | 112 | |
---|
[7938] | 113 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 114 | |
---|
| 115 | |
---|
[5353] | 116 | %files |
---|
| 117 | %defattr(-,root,root,-) |
---|
| 118 | %doc COPYING ChangeLog NEWS README |
---|
| 119 | %{_bindir}/trietool-0.2 |
---|
| 120 | %{_libdir}/%{name}.so.* |
---|
| 121 | %{_mandir}/man1/*.gz |
---|
| 122 | |
---|
| 123 | %files devel |
---|
| 124 | %defattr(-,root,root,-) |
---|
| 125 | %{_includedir}/datrie |
---|
| 126 | %{_libdir}/%{name}.so |
---|
| 127 | %{_libdir}/pkgconfig/datrie-0.2.pc |
---|
| 128 | |
---|
[7938] | 129 | %files docs |
---|
[5353] | 130 | %defattr(-,root,root,-) |
---|
| 131 | %{_docdir}/%{name}/README.migration |
---|
[8353] | 132 | %{_docdir}/datrie/html |
---|
[5353] | 133 | |
---|
| 134 | %if %{build_compat32} |
---|
| 135 | %files -n compat32-%{name} |
---|
| 136 | %defattr(-, root, root,-) |
---|
| 137 | %{_libdir}/%{name}.so.* |
---|
| 138 | |
---|
| 139 | %files -n compat32-%{name}-devel |
---|
| 140 | %defattr(-, root, root,-) |
---|
| 141 | %{_libdir}/%{name}.so |
---|
| 142 | %endif |
---|
| 143 | |
---|
| 144 | |
---|
| 145 | %changelog |
---|
[8353] | 146 | * Fri Mar 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[8084] | 149 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[7938] | 152 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.6-1 |
---|
| 153 | - update to 0.2.6 |
---|
| 154 | |
---|
[6890] | 155 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-2 |
---|
| 156 | - remove *.pc from compat32-%{name}-devel |
---|
| 157 | - fix typo |
---|
| 158 | |
---|
| 159 | * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-1 |
---|
[5353] | 160 | - initial build for Vine Linux |
---|
| 161 | |
---|