blob: d75c5fd17dc349f84203e6573a4206e73b302ff5 (
plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
Name: libpinyin
Version: @VERSION@
Release: 1%{?dist}
Summary: Library to deal with pinyin
License: GPLv2+
URL: https://github.com/libpinyin/libpinyin
Source0: https://github.com/downloads/libpinyin/libpinyin/%{name}-%{version}.tar.gz
BuildRequires: db4-devel, glib2-devel
Requires: %{name}-data%{?_isa} = %{version}-%{release}
%description
The libpinyin project aims to provide the algorithms core
for intelligent sentence-based Chinese pinyin input methods.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package data
Summary: Data files for %{name}
Requires: %{name} = %{version}-%{release}
%description data
The %{name}-data package contains data files.
%package tools
Summary: Tools for %{name}
Requires: %{name} = %{version}-%{release}
%description tools
The %{name}-tools package contains tools.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS COPYING README
%{_libdir}/*.so.*
%dir %{_datadir}/libpinyin
%files devel
%doc
%dir %{_includedir}/libpinyin-@VERSION@
%{_includedir}/libpinyin-@VERSION@/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libpinyin.pc
%files data
%doc
%{_datadir}/libpinyin/data
%files tools
%{_bindir}/gen_binary_files
%{_bindir}/import_interpolation
%{_bindir}/gen_unigram
%{_mandir}/man1/*.1.*
%changelog
* Thu May 24 2012 Peng Wu <pwu@redhat.com> - 0.6.91-1
- Update to 0.6.91
* Mon Feb 13 2012 Peng Wu <pwu@redhat.com> - 0.5.91-1
- Update to 0.5.91
* Wed Jan 18 2012 Peng Wu <pwu@redhat.com> - 0.5.0-1
- Update to 0.5.0
* Fri Jan 13 2012 Peng Wu <pwu@redhat.com> - 0.4.93-1
- Update to 0.4.93
* Mon Jan 09 2012 Peng Wu <pwu@redhat.com> - 0.4.92-2
- Split tools sub package
* Thu Dec 29 2011 Peng Wu <pwu@redhat.com> - 0.4.92-1
- Update to 0.4.92
* Tue Dec 27 2011 Peng Wu <pwu@redhat.com> - 0.4.91-1
- Update to 0.4.91
* Fri Nov 18 2011 Peng Wu <pwu@redhat.com> - 0.3.0-1
- Update to 0.3.0
* Thu Nov 03 2011 Peng Wu <pwu@redhat.com> - 0.2.99.3-1
- Update to 0.2.99.3
* Tue Oct 11 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-1
- Update to 0.2.99.2
* Wed Sep 28 2011 Peng Wu <pwu@redhat.com> - 0.2.99.1-1
- Update to 0.2.99.1
* Thu Sep 08 2011 Peng Wu <pwu@redhat.com> - 0.2.99-2
- Split data sub package
* Wed Aug 31 2011 Peng Wu <alexepico@gmail.com> - 0.2.99-1
- Initial version
|