]>
Commit | Line | Data |
---|---|---|
22309216 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
baef4b96 | 5 | Summary: LiTE is a Toolkit Engine |
9f7117d5 | 6 | Summary(pl.UTF-8): LiTE - silnik toolkitu |
baef4b96 | 7 | Name: LiTE |
697afbdc | 8 | Version: 0.8.10 |
a6e73324 | 9 | Release: 6 |
baef4b96 JB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://www.directfb.org/downloads/Libs/%{name}-%{version}.tar.gz | |
697afbdc | 13 | # Source0-md5: b9a28007d38c2b1c51ba1c3841df29ad |
90234bf2 | 14 | Patch0: %{name}-stat.patch |
055f5e6c | 15 | URL: http://www.directfb.org/index.php?path=Platform/LiTE |
0325c02a | 16 | BuildRequires: DirectFB-devel >= 1:1.0.0 |
baef4b96 JB |
17 | BuildRequires: autoconf >= 2.52 |
18 | BuildRequires: automake | |
19 | BuildRequires: libtool | |
20 | BuildRequires: pkgconfig | |
b0246319 | 21 | BuildRequires: t1utils |
baef4b96 JB |
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 | ||
51ddd3e3 | 29 | %description -l pl.UTF-8 |
baef4b96 JB |
30 | LiTE - silnik toolkitu. |
31 | ||
32 | %package devel | |
33 | Summary: LiTE header files | |
9f7117d5 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe LiTE |
baef4b96 JB |
35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
0325c02a | 37 | Requires: DirectFB-devel >= 1:1.0.0 |
baef4b96 JB |
38 | |
39 | %description devel | |
40 | Header files for LiTE library. | |
41 | ||
51ddd3e3 JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki LiTE. | |
baef4b96 JB |
44 | |
45 | %package static | |
46 | Summary: LiTE static library | |
9f7117d5 | 47 | Summary(pl.UTF-8): Statyczna biblioteka LiTE |
baef4b96 JB |
48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | LiTE static library. | |
53 | ||
51ddd3e3 | 54 | %description static -l pl.UTF-8 |
baef4b96 JB |
55 | Statyczna biblioteka LiTE. |
56 | ||
57 | %prep | |
58 | %setup -q | |
90234bf2 | 59 | %patch0 -p1 |
baef4b96 JB |
60 | |
61 | %build | |
62 | %{__libtoolize} | |
63 | %{__aclocal} | |
64 | %{__autoconf} | |
65 | %{__autoheader} | |
66 | %{__automake} | |
67 | %configure \ | |
68 | --enable-static \ | |
22309216 | 69 | --with-fontdir=%{_fontsdir}/TTF \ |
70 | %{!?with_static_libs:--disable-static} | |
baef4b96 JB |
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 | ||
055f5e6c | 80 | install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
baef4b96 | 81 | |
b0246319 JB |
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 | ||
baef4b96 JB |
92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post | |
96 | /sbin/ldconfig | |
b0246319 JB |
97 | if [ -x /usr/bin/fontpostinst ]; then |
98 | fontpostinst TTF | |
99 | fontpostinst Type1 | |
100 | fi | |
baef4b96 JB |
101 | |
102 | %postun | |
103 | /sbin/ldconfig | |
b0246319 JB |
104 | if [ -x /usr/bin/fontpostinst ]; then |
105 | fontpostinst TTF | |
106 | fontpostinst Type1 | |
107 | fi | |
baef4b96 JB |
108 | |
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS ChangeLog NEWS README TODO | |
055f5e6c JB |
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 | |
baef4b96 | 115 | %attr(755,root,root) %{_libdir}/liblite.so.*.*.* |
51614d85 | 116 | %attr(755,root,root) %ghost %{_libdir}/liblite.so.3 |
baef4b96 | 117 | %{_datadir}/LiTE |
055f5e6c JB |
118 | %{_fontsdir}/TTF/decker.ttf |
119 | %{_fontsdir}/TTF/vera*.ttf | |
120 | %{_fontsdir}/TTF/whiterabbit.ttf | |
121 | %{_fontsdir}/Type1/Misc-Fixed.pfb | |
b0246319 | 122 | %{_fontsdir}/Type1/fonts.scale.LiTE |
baef4b96 JB |
123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
055f5e6c | 126 | %attr(755,root,root) %{_libdir}/libleck.so |
baef4b96 | 127 | %attr(755,root,root) %{_libdir}/liblite.so |
055f5e6c | 128 | %{_libdir}/libleck.la |
baef4b96 | 129 | %{_libdir}/liblite.la |
055f5e6c | 130 | %{_includedir}/leck |
baef4b96 | 131 | %{_includedir}/lite |
055f5e6c | 132 | %{_pkgconfigdir}/leck.pc |
baef4b96 JB |
133 | %{_pkgconfigdir}/lite.pc |
134 | %{_examplesdir}/%{name}-%{version} | |
135 | ||
22309216 | 136 | %if %{with static_libs} |
baef4b96 JB |
137 | %files static |
138 | %defattr(644,root,root,755) | |
055f5e6c | 139 | %{_libdir}/libleck.a |
baef4b96 | 140 | %{_libdir}/liblite.a |
22309216 | 141 | %endif |