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