/[packages]/cauldron/SDL_ttf/current/SPECS/SDL_ttf.spec
ViewVC logotype

Annotation of /cauldron/SDL_ttf/current/SPECS/SDL_ttf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24941 - (hide annotations) (download)
Wed Jan 19 22:27:40 2011 UTC (10 years, 6 months ago) by blino
File size: 2957 byte(s)
imported package SDL_ttf
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     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     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     %if %mdkversion < 200900
84     %post -n %{libname} -p /sbin/ldconfig
85     %endif
86    
87     %if %mdkversion < 200900
88     %postun -n %{libname} -p /sbin/ldconfig
89     %endif
90    
91     %files -n %{libname}-test
92     %defattr(-,root,root)
93     %{_bindir}/showfont
94     %{_bindir}/glfont
95    
96     %files -n %{libname}
97     %defattr(-,root,root)
98     %{_libdir}/lib*%{apiver}.so.%{major}*
99    
100     %files -n %{develname}
101     %defattr(-,root,root)
102     %doc README CHANGES
103     %{_libdir}/*a
104     %{_libdir}/lib*.so
105     %{_includedir}/SDL/*
106     %{_libdir}/pkgconfig/*.pc
107    
108    

  ViewVC Help
Powered by ViewVC 1.1.28