/[packages]/updates/3/SDL_ttf/current/SPECS/SDL_ttf.spec
ViewVC logotype

Contents of /updates/3/SDL_ttf/current/SPECS/SDL_ttf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 196866 - (show annotations) (download)
Mon Jan 16 14:09:50 2012 UTC (8 years, 5 months ago) by fwang
Original Path: cauldron/SDL_ttf/current/SPECS/SDL_ttf.spec
File size: 2802 byte(s)
fix linkage
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 Patch0: SDL_ttf-2.0.11-link.patch
16 BuildRequires: SDL-devel
17 BuildRequires: freetype2-devel >= 2.1.7
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 %patch0 -p0
69
70 %build
71 %configure2_5x --disable-static
72 %make
73
74 %install
75 rm -rf %{buildroot}
76 %makeinstall_std
77
78 rm -f %{buildroot}%{_libdir}/*.la
79
80 install -d %{buildroot}%{_bindir}
81 install -m755 .libs/{showfont,glfont} %{buildroot}%{_bindir}
82
83 %clean
84 rm -rf %{buildroot}
85
86 %files -n %{libname}-test
87 %defattr(-,root,root)
88 %{_bindir}/showfont
89 %{_bindir}/glfont
90
91 %files -n %{libname}
92 %defattr(-,root,root)
93 %{_libdir}/lib*%{apiver}.so.%{major}*
94
95 %files -n %{develname}
96 %defattr(-,root,root)
97 %doc README CHANGES
98 %{_libdir}/lib*.so
99 %{_includedir}/SDL/*
100 %{_libdir}/pkgconfig/*.pc

  ViewVC Help
Powered by ViewVC 1.1.28