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