clean again
[platform/upstream/libpinyin.git] / libpinyin.spec.in
1 Name:           libpinyin
2 Version:        @VERSION@
3 Release:        1%{?dist}
4 Summary:        Library to deal with pinyin
5
6 License:        GPLv2+
7 URL:            https://github.com/libpinyin/libpinyin
8 Source0:        http://downloads.sourceforge.net/libpinyin/libpinyin/%{name}-%{version}.tar.gz
9
10 BuildRequires:  db4-devel, glib2-devel
11 Requires:       %{name}-data%{?_isa} = %{version}-%{release}
12
13 %description
14 The libpinyin project aims to provide the algorithms core
15 for intelligent sentence-based Chinese pinyin input methods.
16
17
18 %package        devel
19 Summary:        Development files for %{name}
20 Requires:       %{name} = %{version}-%{release}
21
22 %description    devel
23 The %{name}-devel package contains libraries and header files for
24 developing applications that use %{name}.
25
26
27 %package        data
28 Summary:        Data files for %{name}
29 Requires:       %{name} = %{version}-%{release}
30
31 %description data
32 The %{name}-data package contains data files.
33
34
35 %package        tools
36 Summary:        Tools for %{name}
37 Requires:       %{name} = %{version}-%{release}
38
39 %description tools
40 The %{name}-tools package contains tools.
41
42
43 %prep
44 %setup -q
45
46
47 %build
48 %configure --disable-static
49 make %{?_smp_mflags}
50
51 %install
52 make install DESTDIR=$RPM_BUILD_ROOT
53 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
54
55
56 %post -p /sbin/ldconfig
57
58 %postun -p /sbin/ldconfig
59
60
61 %files
62 %doc AUTHORS COPYING README
63 %{_libdir}/*.so.*
64 %dir %{_datadir}/libpinyin
65
66 %files devel
67 %doc
68 %dir %{_includedir}/libpinyin-@VERSION@
69 %{_includedir}/libpinyin-@VERSION@/*
70 %{_libdir}/*.so
71 %{_libdir}/pkgconfig/libpinyin.pc
72
73 %files data
74 %doc
75 %{_datadir}/libpinyin/data
76
77 %files tools
78 %{_bindir}/gen_binary_files
79 %{_bindir}/import_interpolation
80 %{_bindir}/gen_unigram
81 %{_mandir}/man1/*.1.*
82
83 %changelog
84 * Thu May 24 2012  Peng Wu <pwu@redhat.com> - 0.6.91-1
85 - Update to 0.6.91
86
87 * Mon Feb 13 2012  Peng Wu <pwu@redhat.com> - 0.5.91-1
88 - Update to 0.5.91
89
90 * Wed Jan 18 2012  Peng Wu <pwu@redhat.com> - 0.5.0-1
91 - Update to 0.5.0
92
93 * Fri Jan 13 2012  Peng Wu <pwu@redhat.com> - 0.4.93-1
94 - Update to 0.4.93
95
96 * Mon Jan 09 2012  Peng Wu <pwu@redhat.com> - 0.4.92-2
97 - Split tools sub package
98
99 * Thu Dec 29 2011  Peng Wu <pwu@redhat.com> - 0.4.92-1
100 - Update to 0.4.92
101
102 * Tue Dec 27 2011  Peng Wu <pwu@redhat.com> - 0.4.91-1
103 - Update to 0.4.91
104
105 * Fri Nov 18 2011  Peng Wu <pwu@redhat.com> - 0.3.0-1
106 - Update to 0.3.0
107
108 * Thu Nov 03 2011  Peng Wu <pwu@redhat.com> - 0.2.99.3-1
109 - Update to 0.2.99.3
110
111 * Tue Oct 11 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-1
112 - Update to 0.2.99.2
113
114 * Wed Sep 28 2011  Peng Wu <pwu@redhat.com> - 0.2.99.1-1
115 - Update to 0.2.99.1
116
117 * Thu Sep 08 2011  Peng Wu <pwu@redhat.com> - 0.2.99-2
118 - Split data sub package
119
120 * Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
121 - Initial version