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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142702 - (hide annotations) (download)
Mon Sep 12 12:43:38 2011 UTC (12 years, 7 months ago) by fwang
Original Path: cauldron/SDL_ttf/current/SPECS/SDL_ttf.spec
File size: 2805 byte(s)
fix linkage
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 fwang 142653 Release: %mkrel 3
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 fwang 142702 Patch0: SDL_ttf-2.0.10-linkage.patch
16 blino 24941 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 fwang 142702 %patch0 -p0
69 blino 24941
70     %build
71 fwang 142653 %configure2_5x --disable-static
72 blino 24941 %make
73    
74     %install
75     rm -rf %{buildroot}
76     %makeinstall_std
77 fwang 142653
78     rm -f %{buildroot}%{_libdir}/*.la
79    
80 blino 24941 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.30