| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Summary: Double-Array Trie Library |
|---|
| 4 | Name: libdatrie |
|---|
| 5 | Version: 0.2.6 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | Source0: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz |
|---|
| 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 docs |
|---|
| 45 | Summary: Documentation for libdatrie |
|---|
| 46 | Summary(ja): libdatrie 用のドキュメント |
|---|
| 47 | Group: Documentation |
|---|
| 48 | Requires: %{name} = %{version}-%{release} |
|---|
| 49 | BuildArch: noarch |
|---|
| 50 | Provides: %{name}-doc = %{version}-%{release} |
|---|
| 51 | |
|---|
| 52 | %description docs |
|---|
| 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 | |
|---|
| 111 | %post -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 112 | |
|---|
| 113 | %postun -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 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 | |
|---|
| 129 | %files docs |
|---|
| 130 | %defattr(-,root,root,-) |
|---|
| 131 | %{_docdir}/%{name}/README.migration |
|---|
| 132 | %{_docdir}/datrie |
|---|
| 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 |
|---|
| 146 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.6-1 |
|---|
| 147 | - update to 0.2.6 |
|---|
| 148 | |
|---|
| 149 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-2 |
|---|
| 150 | - remove *.pc from compat32-%{name}-devel |
|---|
| 151 | - fix typo |
|---|
| 152 | |
|---|
| 153 | * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.5-1 |
|---|
| 154 | - initial build for Vine Linux |
|---|
| 155 | |
|---|