1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: X Window System font support for Pango |
---|
4 | Name: pangox-compat |
---|
5 | Version: 0.0.1 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.0//%{name}-%{version}.tar.xz |
---|
8 | License: GPLv2 |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://ftp.gnome.org/pub/GNOME/sources/pangox-compat/ |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | |
---|
14 | BuildRequires: pango-devel |
---|
15 | BuildRequires: glib2-devel |
---|
16 | |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | Packager: Takemikaduchi |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | This is a compatibility library providing the obsolete pangox library |
---|
24 | that is not shipped by Pango itself anymore. If you are still using |
---|
25 | pangox, well, really, get a life... |
---|
26 | |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Development tools for %{name} |
---|
30 | Summary(ja): %{name} の開発環境 |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name} = %{version}-%{release} |
---|
33 | Requires: pkgconfig |
---|
34 | |
---|
35 | %description devel |
---|
36 | Header files and libraries for building a extension library for the |
---|
37 | %{name}. |
---|
38 | |
---|
39 | |
---|
40 | # compat32 |
---|
41 | %package -n compat32-%{name} |
---|
42 | Summary: Double-Array Trie Library |
---|
43 | Group: System Environment/Libraries |
---|
44 | Requires: %{name} = %{version}-%{release} |
---|
45 | |
---|
46 | %description -n compat32-%{name} |
---|
47 | This is an implementation of double-array structure for representing trie, |
---|
48 | as proposed by Junichi Aoe. |
---|
49 | |
---|
50 | Trie is a kind of digital search tree, an efficient indexing method with |
---|
51 | O(1) time complexity for searching. Comparably as efficient as hashing, |
---|
52 | trie also provides flexibility on incremental matching and key spelling |
---|
53 | manipulation. This makes it ideal for lexical analyzers, as well as spelling |
---|
54 | dictionaries. |
---|
55 | |
---|
56 | |
---|
57 | %package -n compat32-%{name}-devel |
---|
58 | Summary: Development tools for %{name} |
---|
59 | Summary(ja): %{name} の開発環境 |
---|
60 | Group: Development/Libraries |
---|
61 | Requires: compat32-%{name} = %{version}-%{release} |
---|
62 | Requires: pkgconfig |
---|
63 | |
---|
64 | %description -n compat32-%{name}-devel |
---|
65 | Header files and libraries for building a extension library for the |
---|
66 | %{name}. |
---|
67 | |
---|
68 | |
---|
69 | %prep |
---|
70 | %setup -q |
---|
71 | |
---|
72 | |
---|
73 | %build |
---|
74 | %configure \ |
---|
75 | --disable-static |
---|
76 | |
---|
77 | %{__make} %{?_smp_mflags} |
---|
78 | |
---|
79 | |
---|
80 | %install |
---|
81 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
82 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
83 | |
---|
84 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
85 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
86 | |
---|
87 | |
---|
88 | %clean |
---|
89 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
90 | |
---|
91 | %post -p /sbin/ldconfig |
---|
92 | |
---|
93 | %postun -p /sbin/ldconfig |
---|
94 | |
---|
95 | |
---|
96 | %files |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %doc COPYING ChangeLog NEWS README |
---|
99 | %{_sysconfdir}/pango/pangox.aliases |
---|
100 | %{_libdir}/libpangox-1.0.so.* |
---|
101 | |
---|
102 | %files devel |
---|
103 | %defattr(-,root,root,-) |
---|
104 | %{_includedir}/pango-1.0 |
---|
105 | %{_libdir}/libpangox-1.0.so |
---|
106 | %{_libdir}/pkgconfig/pangox.pc |
---|
107 | |
---|
108 | %if %{build_compat32} |
---|
109 | %files -n compat32-%{name} |
---|
110 | %defattr(-, root, root,-) |
---|
111 | %{_libdir}/libpangox-1.0.so.* |
---|
112 | |
---|
113 | %files -n compat32-%{name}-devel |
---|
114 | %defattr(-, root, root,-) |
---|
115 | %{_libdir}/libpangox-1.0.so |
---|
116 | %endif |
---|
117 | |
---|
118 | |
---|
119 | %changelog |
---|
120 | * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.1-1 |
---|
121 | - initial build |
---|
122 | |
---|