1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
Name: sombok
Version: @VERSION@
Release: 1%{?dist}
Epoch: 0
License: Artistic or GPLv2+
Group: System Environment/Libraries
Summary(ja): ユニコード テキスト分節パッケージ
Summary: Unicode Text Segmentation Package
Source: sombok-@VERSION@.tar.gz
URL: http://hatuka.nezumi.nu/repos/sombok/
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
BuildRequires: pkgconfig
# we edit the Makefile.am's
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: libthai-devel >= 0.1.9
BuildRequires: doxygen
Requires: libthai >= 0.1.9
%description -l ja
ソンボク (Sombok) パッケージはユニコード標準附属書14 (UAX #14) で
述べるユニコード行分割アルゴリズムを実行する。行分割位置の決定にあ
たって、附属書11 (UAX #11) で定める East_Asian_Width 参考特性を考
慮する。また、附属書29 (UAX #29) で述べる「初期の」書記素クラスタ
分節も実装している。
%description
sombok package performs Line Breaking Algorithm described in
Unicode Standard Annex #14 (UAX #14). East_Asian_Width
informative properties defined by Annex #11 (UAX #11) will be
concerned to determin breaking positions. This package also
implements ``default'' Grapheme Cluster segmentation described in
Annex #29 (UAX #29).
%package devel
Summary(ja): ユニコード テキスト分節パッケージ
Summary: Unicode Text Segmentation package
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: pkgconfig
%description devel
The sombok-devel package includes the header files and developer docs
for the sombok package. Install sombok-devel if you want to develop
programs which will use sombok.
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf -i -f
%configure
make
[ -e doc/html/search ] && mv doc/html/search doc/html-search
%check
make check
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/*.la
make uninstall-htmlDATA DESTDIR=$RPM_BUILD_ROOT
[ -e doc/html-search ] && mv doc/html-search doc/html/search
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README* AUTHORS ARTISTIC COPYING ChangeLog* NEWS TODO
%{_libdir}/lib*.so.*
%files devel
%defattr(-, root, root)
%doc README* AUTHORS ARTISTIC COPYING ChangeLog* doc/html NEWS TODO
%{_includedir}/*
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
#%{_mandir}/man3/*
%changelog
|