1 |
%define version 9100h |
2 |
%define src_version 9100h.patch13B-23-iconv-ucdict.2010629.alt-depgraph-100603d.alt-cannadic-100603-patch100628.zipdic-201005-patch100614 |
3 |
%define release %mkrel 25.%{dic_date}.3 |
4 |
%define dic_date 20100710 |
5 |
|
6 |
%define major 0 |
7 |
%define libname %mklibname %{name} %{major} |
8 |
%define develname %mklibname -d %name |
9 |
|
10 |
Name: anthy |
11 |
Summary: A Japanese words input system |
12 |
Version: %{version} |
13 |
Release: %{release} |
14 |
Group: System/Internationalization |
15 |
License: GPLv2+ |
16 |
URL: http://www.fenix.ne.jp/~G-HAL/soft/nosettle/#anthy |
17 |
Source0: http://www.fenix.ne.jp/~G-HAL/soft/nosettle/%{name}-%{src_version}.tar.lzma |
18 |
|
19 |
# http://www.geocities.jp/ep3797/anthy_dict_01.html |
20 |
Source1: http://ovh.dl.sourceforge.net/sourceforge/mdk-ut/anthy-ut-patches-%{dic_date}.tar.bz2 |
21 |
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
23 |
Requires: %{libname} = %{version} |
24 |
BuildRequires: emacs-bin automake |
25 |
|
26 |
%description |
27 |
Anthy is a free and secure Japanese input system. |
28 |
|
29 |
|
30 |
%package -n %{libname} |
31 |
Summary: Anthy library |
32 |
Group: System/Internationalization |
33 |
|
34 |
%description -n %{libname} |
35 |
Anthy library. |
36 |
|
37 |
%package -n %{develname} |
38 |
Summary: Headers of %{name} for development |
39 |
Group: Development/C |
40 |
Requires: %{libname} = %{version} |
41 |
Provides: %{name}-devel = %{version}-%{release} |
42 |
Obsoletes: %mklibname -d anthy 0 |
43 |
Conflicts: %{mklibname anthy 0} < 9100e-10 |
44 |
|
45 |
%description -n %{develname} |
46 |
Anthy development package: static libraries, header files, and the like. |
47 |
|
48 |
|
49 |
%prep |
50 |
%setup -q -n %{name}-%{version} |
51 |
|
52 |
# (ut) update dictionaries and apply patches |
53 |
cp %SOURCE1 . |
54 |
tar jxf anthy-ut-patches-%{dic_date}.tar.bz2 |
55 |
cd anthy-ut-patches-%{dic_date} |
56 |
./apply-patches.sh |
57 |
|
58 |
%build |
59 |
%configure2_5x |
60 |
%make |
61 |
|
62 |
%install |
63 |
rm -rf $RPM_BUILD_ROOT |
64 |
%makeinstall_std |
65 |
|
66 |
%clean |
67 |
rm -rf $RPM_BUILD_ROOT |
68 |
|
69 |
%files |
70 |
%defattr(-,root,root) |
71 |
%doc AUTHORS ChangeLog DIARY NEWS README doc |
72 |
%{_bindir}/* |
73 |
%config %{_sysconfdir}/* |
74 |
%{_datadir}/anthy |
75 |
%{_datadir}/emacs/site-lisp/anthy/* |
76 |
|
77 |
%files -n %{libname} |
78 |
%defattr(-,root,root) |
79 |
%doc COPYING |
80 |
%{_libdir}/*.so.%{major}* |
81 |
|
82 |
%files -n %{develname} |
83 |
%defattr(-,root,root) |
84 |
%doc COPYING |
85 |
%{_libdir}/*.so |
86 |
%{_libdir}/*.a |
87 |
%{_libdir}/*.la |
88 |
%{_libdir}/pkgconfig/*.pc |
89 |
%{_includedir}/* |
90 |
|
91 |
|