]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: LiTE is a Toolkit Engine | |
6 | Summary(pl.UTF-8): LiTE - silnik toolkitu | |
7 | Name: LiTE | |
8 | Version: 0.8.10 | |
9 | Release: 5 | |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://www.directfb.org/downloads/Libs/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: b9a28007d38c2b1c51ba1c3841df29ad | |
14 | Patch0: %{name}-stat.patch | |
15 | URL: http://www.directfb.org/index.php?path=Platform/LiTE | |
16 | BuildRequires: DirectFB-devel >= 1:1.0.0 | |
17 | BuildRequires: autoconf >= 2.52 | |
18 | BuildRequires: automake | |
19 | BuildRequires: libtool | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: t1utils | |
22 | Requires(post,postun): /sbin/ldconfig | |
23 | Requires: %{_fontsdir}/TTF | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | LiTE is a Toolkit Engine. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | LiTE - silnik toolkitu. | |
31 | ||
32 | %package devel | |
33 | Summary: LiTE header files | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe LiTE | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: DirectFB-devel >= 1:1.0.0 | |
38 | ||
39 | %description devel | |
40 | Header files for LiTE library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki LiTE. | |
44 | ||
45 | %package static | |
46 | Summary: LiTE static library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka LiTE | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | LiTE static library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka LiTE. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | ||
61 | %build | |
62 | %{__libtoolize} | |
63 | %{__aclocal} | |
64 | %{__autoconf} | |
65 | %{__autoheader} | |
66 | %{__automake} | |
67 | %configure \ | |
68 | --enable-static \ | |
69 | --with-fontdir=%{_fontsdir}/TTF \ | |
70 | %{!?with_static_libs:--disable-static} | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
81 | ||
82 | install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1 | |
83 | t1binary $RPM_BUILD_ROOT%{_fontsdir}/TTF/Misc-Fixed.pfa \ | |
84 | $RPM_BUILD_ROOT%{_fontsdir}/Type1/Misc-Fixed.pfb | |
85 | cat > $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.LiTE <<EOF | |
86 | Misc-Fixed.pfb -misc-fixed-medium-r-normal--0-0-0-0-m-0-ascii-0 | |
87 | Misc-Fixed.pfb -misc-fixed-medium-r-normal--0-0-0-0-m-0-iso10646-1 | |
88 | Misc-Fixed.pfb -misc-fixed-medium-r-normal--0-0-0-0-m-0-iso8859-1 | |
89 | EOF | |
90 | rm -f $RPM_BUILD_ROOT%{_fontsdir}/TTF/Misc-Fixed.pfa | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post | |
96 | /sbin/ldconfig | |
97 | if [ -x /usr/bin/fontpostinst ]; then | |
98 | fontpostinst TTF | |
99 | fontpostinst Type1 | |
100 | fi | |
101 | ||
102 | %postun | |
103 | /sbin/ldconfig | |
104 | if [ -x /usr/bin/fontpostinst ]; then | |
105 | fontpostinst TTF | |
106 | fontpostinst Type1 | |
107 | fi | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS ChangeLog NEWS README TODO | |
112 | %attr(755,root,root) %{_bindir}/lite_* | |
113 | %attr(755,root,root) %{_libdir}/libleck.so.*.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/libleck.so.3 | |
115 | %attr(755,root,root) %{_libdir}/liblite.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/liblite.so.3 | |
117 | %{_datadir}/LiTE | |
118 | %{_fontsdir}/TTF/decker.ttf | |
119 | %{_fontsdir}/TTF/vera*.ttf | |
120 | %{_fontsdir}/TTF/whiterabbit.ttf | |
121 | %{_fontsdir}/Type1/Misc-Fixed.pfb | |
122 | %{_fontsdir}/Type1/fonts.scale.LiTE | |
123 | ||
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/libleck.so | |
127 | %attr(755,root,root) %{_libdir}/liblite.so | |
128 | %{_libdir}/libleck.la | |
129 | %{_libdir}/liblite.la | |
130 | %{_includedir}/leck | |
131 | %{_includedir}/lite | |
132 | %{_pkgconfigdir}/leck.pc | |
133 | %{_pkgconfigdir}/lite.pc | |
134 | %{_examplesdir}/%{name}-%{version} | |
135 | ||
136 | %if %{with static_libs} | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libleck.a | |
140 | %{_libdir}/liblite.a | |
141 | %endif |