1 | Name: m17n-lib |
---|
2 | Version: 1.7.0 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Multilingual text library |
---|
5 | Summary(ja): 多言語テキストライブラリ |
---|
6 | |
---|
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 |
---|
12 | |
---|
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 |
---|
22 | BuildConflicts: anthy-devel |
---|
23 | Requires: m17n-db |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | |
---|
28 | |
---|
29 | %description |
---|
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. |
---|
32 | |
---|
33 | %package devel |
---|
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 |
---|
40 | |
---|
41 | %description devel |
---|
42 | Development files for the %{name} package. |
---|
43 | |
---|
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} |
---|
50 | |
---|
51 | %description tools |
---|
52 | Tools to test M17n GUI widget library. |
---|
53 | |
---|
54 | %prep |
---|
55 | %setup -q |
---|
56 | %patch0 -p1 |
---|
57 | |
---|
58 | mkdir -p docs_to_include |
---|
59 | cp -pr example docs_to_include |
---|
60 | |
---|
61 | %build |
---|
62 | autoreconf -ivf |
---|
63 | %configure \ |
---|
64 | --disable-rpath \ |
---|
65 | --disable-static \ |
---|
66 | --with-fontconfig \ |
---|
67 | --with-gd |
---|
68 | |
---|
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 | |
---|
75 | %install |
---|
76 | rm -rf $RPM_BUILD_ROOT |
---|
77 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
78 | |
---|
79 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
80 | |
---|
81 | # remove unused files |
---|
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 |
---|
84 | |
---|
85 | |
---|
86 | %clean |
---|
87 | rm -rf $RPM_BUILD_ROOT |
---|
88 | |
---|
89 | %check |
---|
90 | make check |
---|
91 | |
---|
92 | %post -p /sbin/ldconfig |
---|
93 | %postun -p /sbin/ldconfig |
---|
94 | |
---|
95 | %post tools -p /sbin/ldconfig |
---|
96 | %postun tools -p /sbin/ldconfig |
---|
97 | |
---|
98 | %files |
---|
99 | %defattr(-,root,root) |
---|
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.* |
---|
107 | |
---|
108 | %files devel |
---|
109 | %defattr(-,root,root) |
---|
110 | %doc docs_to_include/example |
---|
111 | %{_bindir}/m17n-config |
---|
112 | %{_includedir}/* |
---|
113 | %{_libdir}/lib*.so |
---|
114 | %{_libdir}/pkgconfig/* |
---|
115 | |
---|
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.* |
---|
125 | |
---|
126 | %changelog |
---|
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 | |
---|
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 | |
---|
138 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.5-5 |
---|
139 | - rebuild with VineSeed environment |
---|
140 | |
---|
141 | * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-4 |
---|
142 | - rebuilt with gd-2.1.0. |
---|
143 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|