]>
Commit | Line | Data |
---|---|---|
60e6477b JB |
1 | Summary: Open Chinese Convert library |
2 | Summary(pl.UTF-8): Biblioteka Open Chinese Convert do konwersji między wariantami języka chińskiego | |
3 | Name: opencc | |
4 | Version: 0.3.0 | |
5 | Release: 1 | |
6 | License: Apache v2.0 | |
7 | Group: Libraries | |
8 | #Source0Download: http://code.google.com/p/opencc/downloads/list | |
9 | Source0: http://opencc.googlecode.com/files/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 84462870e5d491da24bb33a5fb494911 | |
11 | URL: http://code.google.com/p/opencc/ | |
12 | BuildRequires: cmake >= 2.8 | |
13 | BuildRequires: gettext-devel | |
14 | BuildRequires: rpmbuild(macros) >= 1.603 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | OpenCC (Open Chinese Convert) is an opensource project for conversion | |
19 | between Traditional Chinese and Simplified Chinese, which supports | |
20 | phrase-level conversion and regional idioms among Mainland China, | |
21 | Taiwan and Hong Kong. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | OpenCC (Open Chinese Convert) to projekt o otwartych źródłach, którego | |
25 | celem jest konwersja między chińskim tradycyjnym a chińskim | |
26 | uproszczonym, obsługujący tłumaczenie na poziomie fraz oraz idiomy | |
27 | lokalne specyficzne dla Chin lądowych, Tajwanu i Hongkongu. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for OpenCC library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenCC | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for OpenCC library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki OpenCC. | |
40 | ||
41 | %package static | |
42 | Summary: Static OpenCC library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka OpenCC | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static OpenCC library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka OpenCC. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake .. \ | |
60 | -DENABLE_GETTEXT=ON | |
61 | ||
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} -C build install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %find_lang %{name} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files -f %{name}.lang | |
79 | %defattr(644,root,root,755) | |
80 | %doc AUTHORS NEWS README | |
81 | %attr(755,root,root) %{_bindir}/opencc | |
82 | %attr(755,root,root) %{_bindir}/opencc_dict | |
83 | %attr(755,root,root) %{_libdir}/libopencc.so.*.*.* | |
84 | %attr(755,root,root) %ghost %{_libdir}/libopencc.so.1 | |
85 | %{_datadir}/%{name} | |
86 | %{_mandir}/man1/opencc.1* | |
87 | %{_mandir}/man1/opencc_dict.1* | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libopencc.so | |
92 | %{_includedir}/opencc | |
93 | %{_pkgconfigdir}/opencc.pc | |
94 | ||
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libopencc.a |