1 | %define ver 1.6.4 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Summary: a multilingual text processing library for the C language |
---|
5 | Name: m17n-lib |
---|
6 | Version: %{ver} |
---|
7 | Release: %{rel}%{?_dist_release} |
---|
8 | Source0: %{name}-%{version}.tar.gz |
---|
9 | License: LGPLv2.1+ |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: http://www.m17n.org/m17n-lib-ja/ |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: gd-devel |
---|
15 | BuildRequires: fontconfig-devel |
---|
16 | BuildRequires: libotf-devel |
---|
17 | BuildRequires: libxml2-devel |
---|
18 | BuildRequires: libXt-devel |
---|
19 | BuildConflicts: anthy-devel |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | The m17n library is a multilingual text processing library for the C |
---|
27 | language. |
---|
28 | |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development files for the %{name} package |
---|
32 | Group: Development/Libraries |
---|
33 | Requires: %{name} = %{version}-%{release} |
---|
34 | Requires: pkgconfig |
---|
35 | |
---|
36 | %description devel |
---|
37 | Development files for the %{name} package. |
---|
38 | |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q |
---|
42 | |
---|
43 | %build |
---|
44 | %configure --with-fontconfig --with-gd --disable-static |
---|
45 | #%{__make} %{?_smp_mflags} |
---|
46 | ## don't use smp_mflags |
---|
47 | %{__make} |
---|
48 | |
---|
49 | %install |
---|
50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
51 | %{makeinstall} |
---|
52 | |
---|
53 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
54 | |
---|
55 | # remove unused files |
---|
56 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/m17n/1.0/libmimx-anthy.so |
---|
57 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/m17n/1.0/libmimx-ispell.so |
---|
58 | |
---|
59 | |
---|
60 | %clean |
---|
61 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
62 | |
---|
63 | |
---|
64 | %check |
---|
65 | make check |
---|
66 | |
---|
67 | |
---|
68 | %post -p /sbin/ldconfig |
---|
69 | |
---|
70 | |
---|
71 | %postun |
---|
72 | if [ "$1" = "0" ] ; then |
---|
73 | /sbin/ldconfig |
---|
74 | fi |
---|
75 | |
---|
76 | |
---|
77 | %files |
---|
78 | %defattr(-,root,root) |
---|
79 | %doc COPYING ChangeLog NEWS README TODO |
---|
80 | %{_bindir}/m17n* |
---|
81 | %{_libdir}/lib*.so.0.* |
---|
82 | %{_libdir}/m17n/1.0/libm17n-X.so |
---|
83 | %{_libdir}/m17n/1.0/libm17n-gd.so |
---|
84 | |
---|
85 | %files devel |
---|
86 | %defattr(-,root,root) |
---|
87 | %doc example |
---|
88 | %{_includedir}/*.h |
---|
89 | %{_libdir}/lib*.so |
---|
90 | %{_libdir}/lib*.so.0 |
---|
91 | %{_libdir}/pkgconfig/m17n*.pc |
---|
92 | |
---|
93 | |
---|
94 | %changelog |
---|
95 | * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.4-1 |
---|
96 | - update to 1.6.4 |
---|
97 | - add BuildRequires: libXt-devel |
---|
98 | |
---|
99 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.5-5 |
---|
100 | - rebuild with VineSeed environment |
---|
101 | |
---|
102 | * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-4 |
---|
103 | - rebuilt with gd-2.1.0. |
---|
104 | |
---|
105 | * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.5.5-3 |
---|
106 | - add BuildRequires: libxml2-devel |
---|
107 | - add BuildConflicts: anthy-devel |
---|
108 | |
---|
109 | * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2 |
---|
110 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
111 | |
---|
112 | * Sun Feb 7 2010 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1 |
---|
113 | - new upstream release |
---|
114 | |
---|
115 | * Tue Apr 7 2009 Shu KONNO <owa@bg.wakwak.com> 1.5.4-2 |
---|
116 | - dropt %%{?_smp_mflags} |
---|
117 | |
---|
118 | * Wed Apr 1 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.4-1 |
---|
119 | - initial release |
---|
120 | |
---|