1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: libunistring |
---|
5 | Summary: library for manipulating Unicode strings |
---|
6 | Summary(ja): Unicode 文字列を処理するライブラリ |
---|
7 | Version: 0.9.4 |
---|
8 | Release: 2%{?_dist_release} |
---|
9 | License: GPLv3+ |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: http://www.gnu.org/software/libunistring/ |
---|
12 | Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | Vendor: Project Vine |
---|
16 | Distribution: Vine Linux |
---|
17 | Packager: yasumichi |
---|
18 | |
---|
19 | # Dependency |
---|
20 | BuildRequires: texinfo |
---|
21 | BuildRequires: texlive |
---|
22 | BuildRequires: perl |
---|
23 | |
---|
24 | %description |
---|
25 | Text files are nowadays usually encoded in Unicode, and may consist of very |
---|
26 | different scripts – from Latin letters to Chinese Hanzi –, with many kinds |
---|
27 | of special characters – accents, right-to-left writing marks, hyphens, |
---|
28 | Roman numbers, and much more. But the POSIX platform APIs for text do not |
---|
29 | contain adequate functions for dealing with particular properties of many |
---|
30 | Unicode characters. In fact, the POSIX APIs for text have several |
---|
31 | assumptions at their base which don't hold for Unicode text. |
---|
32 | |
---|
33 | This library provides functions for manipulating Unicode strings and for |
---|
34 | manipulating C strings according to the Unicode standard. |
---|
35 | |
---|
36 | #%%description -l ja |
---|
37 | #%ここに日本語で詳細を記述してください。 |
---|
38 | |
---|
39 | %package devel |
---|
40 | Summary: Development files and documentation for libunistring |
---|
41 | Summary(ja): libunistring の開発用ファイルとドキュメント |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | Development files and documentation for libunistring |
---|
47 | |
---|
48 | %package -n compat32-%{name} |
---|
49 | Summary: library for manipulating Unicode strings |
---|
50 | Summary(ja): Unicode 文字列を処理するライブラリ |
---|
51 | Group: Development/Libraries |
---|
52 | Requires: %{name} = %{version}-%{release} |
---|
53 | |
---|
54 | %description -n compat32-%{name} |
---|
55 | Text files are nowadays usually encoded in Unicode, and may consist of very |
---|
56 | different scripts – from Latin letters to Chinese Hanzi –, with many kinds |
---|
57 | of special characters – accents, right-to-left writing marks, hyphens, |
---|
58 | Roman numbers, and much more. But the POSIX platform APIs for text do not |
---|
59 | contain adequate functions for dealing with particular properties of many |
---|
60 | Unicode characters. In fact, the POSIX APIs for text have several |
---|
61 | assumptions at their base which don't hold for Unicode text. |
---|
62 | |
---|
63 | This library provides functions for manipulating Unicode strings and for |
---|
64 | manipulating C strings according to the Unicode standard. |
---|
65 | |
---|
66 | %package -n compat32-%{name}-devel |
---|
67 | Summary: Development files and documentation for libunistring |
---|
68 | Summary(ja): libunistring の開発用ファイルとドキュメント |
---|
69 | Group: Development/Libraries |
---|
70 | Requires: compat32-%{name} = %{version}-%{release} |
---|
71 | Requires: %{name}-devel = %{version}-%{release} |
---|
72 | |
---|
73 | %description -n compat32-%{name}-devel |
---|
74 | Development files and documentation for libunistring |
---|
75 | |
---|
76 | |
---|
77 | %prep |
---|
78 | %setup -q |
---|
79 | |
---|
80 | %build |
---|
81 | %configure --disable-static |
---|
82 | %{__make} %{?_smp_mflags} |
---|
83 | |
---|
84 | %install |
---|
85 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
86 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
87 | |
---|
88 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libunistring.la |
---|
89 | %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
90 | |
---|
91 | %clean |
---|
92 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
93 | |
---|
94 | %post -p /sbin/ldconfig |
---|
95 | |
---|
96 | %postun -p /sbin/ldconfig |
---|
97 | |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-,root,root) |
---|
101 | %doc AUTHORS COPYING ChangeLog HACKING NEWS README THANKS |
---|
102 | %{_libdir}/*.so.* |
---|
103 | |
---|
104 | %files devel |
---|
105 | %{_includedir}/uni*.h |
---|
106 | %{_includedir}/unistring |
---|
107 | %{_libdir}/libunistring.so |
---|
108 | %{_docdir}/libunistring |
---|
109 | %{_infodir}/libunistring.info.gz |
---|
110 | |
---|
111 | %if %{build_compat32} |
---|
112 | %files -n compat32-%{name} |
---|
113 | %defattr(-,root,root,-) |
---|
114 | %{_libdir}/*.so.* |
---|
115 | |
---|
116 | %files -n compat32-%{name}-devel |
---|
117 | %{_libdir}/libunistring.so |
---|
118 | %endif |
---|
119 | |
---|
120 | %changelog |
---|
121 | * Tue Jan 27 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.4-2 |
---|
122 | - create compat32 packages |
---|
123 | |
---|
124 | * Mon Oct 6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.4-1 |
---|
125 | - updated to 0.9.4 |
---|
126 | - moved libunistring to System Environment/Libraries |
---|
127 | - added %%post and %%postun |
---|
128 | |
---|
129 | * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2 |
---|
130 | - add Requires: %{name} (devel package) |
---|
131 | |
---|
132 | * Wed Aug 15 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.3-1 |
---|
133 | - initial build for Vine Linux |
---|