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