[9483] | 1 | Name: m17n-lib |
---|
| 2 | Version: 1.7.0 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Multilingual text library |
---|
| 5 | Summary(ja): 多言語テキストライブラリ |
---|
[521] | 6 | |
---|
[9483] | 7 | License: LGPLv2+ |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | URL: http://www.nongnu.org/m17n/ |
---|
| 10 | Source0: http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz |
---|
| 11 | Patch0: %{name}-1.6.1-multilib.patch |
---|
[521] | 12 | |
---|
[9483] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: fontconfig-devel |
---|
| 15 | BuildRequires: fribidi-devel |
---|
| 16 | BuildRequires: gd-devel |
---|
| 17 | BuildRequires: libotf-devel |
---|
| 18 | BuildRequires: libthai-devel |
---|
| 19 | BuildRequires: libxml2-devel |
---|
| 20 | BuildRequires: libXt-devel |
---|
| 21 | BuildRequires: m17n-db-devel |
---|
[3811] | 22 | BuildConflicts: anthy-devel |
---|
[9483] | 23 | Requires: m17n-db |
---|
[521] | 24 | |
---|
[9483] | 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
[521] | 27 | |
---|
| 28 | |
---|
| 29 | %description |
---|
[9483] | 30 | m17n-lib is a multilingual text library used primarily to allow |
---|
| 31 | the input of many languages with the input table maps from m17n-db. |
---|
[521] | 32 | |
---|
| 33 | %package devel |
---|
[9483] | 34 | Summary: Development files for the %{name} package |
---|
| 35 | Summary(ja): %{name} の開発用ファイル |
---|
| 36 | Group: Development/Libraries |
---|
| 37 | Requires: %{name} = %{version}-%{release} |
---|
| 38 | Requires: %{name}-tools = %{version}-%{release} |
---|
| 39 | Requires: pkgconfig |
---|
[521] | 40 | |
---|
| 41 | %description devel |
---|
| 42 | Development files for the %{name} package. |
---|
| 43 | |
---|
[9483] | 44 | %package tools |
---|
| 45 | Summary: m17n GUI Library tools |
---|
| 46 | Summary(ja): m17n GUI ライブラリツール集 |
---|
| 47 | Group: Applications/Text |
---|
| 48 | Requires: m17n-db |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 50 | |
---|
[9483] | 51 | %description tools |
---|
| 52 | Tools to test M17n GUI widget library. |
---|
| 53 | |
---|
[521] | 54 | %prep |
---|
| 55 | %setup -q |
---|
[9483] | 56 | %patch0 -p1 |
---|
[521] | 57 | |
---|
[9483] | 58 | mkdir -p docs_to_include |
---|
| 59 | cp -pr example docs_to_include |
---|
| 60 | |
---|
[521] | 61 | %build |
---|
[9483] | 62 | autoreconf -ivf |
---|
| 63 | %configure \ |
---|
| 64 | --disable-rpath \ |
---|
| 65 | --disable-static \ |
---|
| 66 | --with-fontconfig \ |
---|
| 67 | --with-gd |
---|
[521] | 68 | |
---|
[9483] | 69 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 70 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 71 | |
---|
| 72 | # parallel make usage with make command fails build on koji |
---|
| 73 | make |
---|
| 74 | |
---|
[521] | 75 | %install |
---|
[9483] | 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
[521] | 78 | |
---|
[8846] | 79 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
[521] | 80 | |
---|
[8846] | 81 | # remove unused files |
---|
[9483] | 82 | rm -f $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-anthy.so |
---|
| 83 | rm -f $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-ispell.so |
---|
[521] | 84 | |
---|
[8846] | 85 | |
---|
[521] | 86 | %clean |
---|
[9483] | 87 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 88 | |
---|
| 89 | %check |
---|
| 90 | make check |
---|
| 91 | |
---|
| 92 | %post -p /sbin/ldconfig |
---|
[9483] | 93 | %postun -p /sbin/ldconfig |
---|
[521] | 94 | |
---|
[9483] | 95 | %post tools -p /sbin/ldconfig |
---|
| 96 | %postun tools -p /sbin/ldconfig |
---|
[521] | 97 | |
---|
| 98 | %files |
---|
| 99 | %defattr(-,root,root) |
---|
[9483] | 100 | %doc AUTHORS COPYING NEWS ChangeLog README |
---|
| 101 | %dir %{_libdir}/m17n |
---|
| 102 | %dir %{_libdir}/m17n/1.0 |
---|
| 103 | %{_bindir}/m17n-conv |
---|
| 104 | %{_libdir}/libm17n.so.* |
---|
| 105 | %{_libdir}/libm17n-core.so.* |
---|
| 106 | %{_libdir}/libm17n-flt.so.* |
---|
[521] | 107 | |
---|
| 108 | %files devel |
---|
| 109 | %defattr(-,root,root) |
---|
[9483] | 110 | %doc docs_to_include/example |
---|
| 111 | %{_bindir}/m17n-config |
---|
| 112 | %{_includedir}/* |
---|
[521] | 113 | %{_libdir}/lib*.so |
---|
[9483] | 114 | %{_libdir}/pkgconfig/* |
---|
[521] | 115 | |
---|
[9483] | 116 | %files tools |
---|
| 117 | %defattr(-,root,root) |
---|
| 118 | %{_bindir}/m17n-date |
---|
| 119 | %{_bindir}/m17n-dump |
---|
| 120 | %{_bindir}/m17n-edit |
---|
| 121 | %{_bindir}/m17n-view |
---|
| 122 | %{_libdir}/m17n/1.0/libm17n-X.so |
---|
| 123 | %{_libdir}/m17n/1.0/libm17n-gd.so |
---|
| 124 | %{_libdir}/libm17n-gui.so.* |
---|
[521] | 125 | |
---|
| 126 | %changelog |
---|
[9483] | 127 | * Thu Apr 2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.7.0-1 |
---|
| 128 | - update to 1.7.0 |
---|
| 129 | - fixed lib*.so.? location |
---|
| 130 | - added BuildRequires: fribidi-devel, libthai-devel and m17-db-devel |
---|
| 131 | - added Japanese summary |
---|
| 132 | - split tools into tools subpackage |
---|
| 133 | |
---|
[8846] | 134 | * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.4-1 |
---|
| 135 | - update to 1.6.4 |
---|
| 136 | - add BuildRequires: libXt-devel |
---|
| 137 | |
---|
[8084] | 138 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.5-5 |
---|
| 139 | - rebuild with VineSeed environment |
---|
| 140 | |
---|
[7856] | 141 | * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-4 |
---|
| 142 | - rebuilt with gd-2.1.0. |
---|
| 143 | |
---|
[3811] | 144 | * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.5.5-3 |
---|
| 145 | - add BuildRequires: libxml2-devel |
---|
| 146 | - add BuildConflicts: anthy-devel |
---|
| 147 | |
---|
[1976] | 148 | * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2 |
---|
| 149 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 150 | |
---|
[521] | 151 | * Sun Feb 7 2010 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1 |
---|
| 152 | - new upstream release |
---|
| 153 | |
---|
| 154 | * Tue Apr 7 2009 Shu KONNO <owa@bg.wakwak.com> 1.5.4-2 |
---|
| 155 | - dropt %%{?_smp_mflags} |
---|
| 156 | |
---|
| 157 | * Wed Apr 1 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.4-1 |
---|
| 158 | - initial release |
---|
| 159 | |
---|