1 |
blino |
24941 |
%define lib_name_orig lib%{name} |
2 |
|
|
%define major 0 |
3 |
|
|
%define apiver 2.0 |
4 |
|
|
%define libname %mklibname %{name} %{apiver} %{major} |
5 |
|
|
%define develname %mklibname -d %{name} |
6 |
|
|
|
7 |
|
|
Summary: Simple DirectMedia Layer - Sample TrueType Font Library |
8 |
|
|
Name: SDL_ttf |
9 |
|
|
Version: 2.0.10 |
10 |
blino |
24947 |
Release: %mkrel 2 |
11 |
blino |
24941 |
License: LGPLv2+ |
12 |
|
|
Group: System/Libraries |
13 |
|
|
URL: http://www.libsdl.org/projects/SDL_ttf/ |
14 |
|
|
Source0: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz |
15 |
|
|
BuildRequires: SDL-devel |
16 |
|
|
BuildRequires: freetype2-devel >= 2.1.7 |
17 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
This is a sample library which allows you to use TrueType fonts in your SDL |
21 |
|
|
applications. It comes with an example program "showfont" which displays an |
22 |
|
|
example string for a given TrueType font file. |
23 |
|
|
|
24 |
|
|
Warning! TrueType font decoding is under patent, and software using this |
25 |
|
|
library may be in violation of this patent. Use at your own risk! See |
26 |
|
|
http://www.freetype.org/ for details. |
27 |
|
|
|
28 |
|
|
%package -n %{libname} |
29 |
|
|
Summary: Main library for %{name} |
30 |
|
|
Group: System/Libraries |
31 |
|
|
Obsoletes: %mklibname %{name} 2.0 |
32 |
|
|
|
33 |
|
|
%description -n %{libname} |
34 |
|
|
This package contains the library needed to run programs dynamically |
35 |
|
|
linked with %{name}. |
36 |
|
|
|
37 |
|
|
Warning! TrueType font decoding is under patent, and software using this |
38 |
|
|
library may be in violation of this patent. Use at your own risk! See |
39 |
|
|
http://www.freetype.org/ for details. |
40 |
|
|
|
41 |
|
|
%package -n %{develname} |
42 |
|
|
Summary: Headers for developing programs that will use %{name} |
43 |
|
|
Group: Development/C |
44 |
|
|
Requires: %{libname} = %{version}-%{release} |
45 |
|
|
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
46 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
47 |
|
|
Obsoletes: %mklibname %{name} 2.0 -d |
48 |
|
|
|
49 |
|
|
%description -n %{develname} |
50 |
|
|
This package contains the headers that programmers will need to develop |
51 |
|
|
applications which will use %{name}. |
52 |
|
|
|
53 |
|
|
Warning! TrueType font decoding is under patent, and software using this |
54 |
|
|
library may be in violation of this patent. Use at your own risk! See |
55 |
|
|
http://www.freetype.org/ for details. |
56 |
|
|
|
57 |
|
|
%package -n %{libname}-test |
58 |
|
|
Summary: Test binary for %{name} |
59 |
|
|
Group: System/Libraries |
60 |
|
|
Conflicts: showfont |
61 |
|
|
Obsoletes: %{mklibname %{name} 2.0}-test |
62 |
|
|
|
63 |
|
|
%description -n %{libname}-test |
64 |
|
|
This package contains binary to test the associated library. |
65 |
|
|
|
66 |
|
|
%prep |
67 |
|
|
%setup -q |
68 |
|
|
|
69 |
|
|
%build |
70 |
|
|
export CFLAGS="%{optflags} -lm" |
71 |
|
|
%configure2_5x |
72 |
|
|
%make |
73 |
|
|
|
74 |
|
|
%install |
75 |
|
|
rm -rf %{buildroot} |
76 |
|
|
%makeinstall_std |
77 |
|
|
install -d %{buildroot}%{_bindir} |
78 |
|
|
install -m755 .libs/{showfont,glfont} %{buildroot}%{_bindir} |
79 |
|
|
|
80 |
|
|
%clean |
81 |
|
|
rm -rf %{buildroot} |
82 |
|
|
|
83 |
|
|
%files -n %{libname}-test |
84 |
|
|
%defattr(-,root,root) |
85 |
|
|
%{_bindir}/showfont |
86 |
|
|
%{_bindir}/glfont |
87 |
|
|
|
88 |
|
|
%files -n %{libname} |
89 |
|
|
%defattr(-,root,root) |
90 |
|
|
%{_libdir}/lib*%{apiver}.so.%{major}* |
91 |
|
|
|
92 |
|
|
%files -n %{develname} |
93 |
|
|
%defattr(-,root,root) |
94 |
|
|
%doc README CHANGES |
95 |
|
|
%{_libdir}/*a |
96 |
|
|
%{_libdir}/lib*.so |
97 |
|
|
%{_includedir}/SDL/* |
98 |
|
|
%{_libdir}/pkgconfig/*.pc |
99 |
|
|
|
100 |
|
|
|