/[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 1839103 - (hide annotations) (download)
Fri Apr 1 09:05:01 2022 UTC (2 years ago) by umeabot
File size: 2784 byte(s)
Mageia 9 Mass Rebuild
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 fwang 196860 Version: 2.0.11
10 umeabot 1839103 Release: %mkrel 12
11 akien 555864 License: zlib
12 blino 24941 Group: System/Libraries
13 danf 1786152 URL: https://www.libsdl.org/projects/SDL_ttf/
14     Source0: https://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
15 fwang 196866 Patch0: SDL_ttf-2.0.11-link.patch
16 ovitters 1143897 BuildRequires: pkgconfig(sdl)
17 blino 24941 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 danf 1786152 https://freetype.org/ for details.
27 blino 24941
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 danf 1786152 https://freetype.org/ for details.
40 blino 24941
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 danf 1786152 https://freetype.org/ for details.
56 blino 24941
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 ovitters 876985 %autopatch -p0
69 blino 24941
70 wally 1234472 # make autoreconf happy
71     touch NEWS AUTHORS ChangeLog
72    
73 blino 24941 %build
74 wally 1234472 # to recognize aarch64
75     autoreconf -vfi
76    
77 wally 1480483 %configure --disable-static
78 wally 1234472 %make_build
79 blino 24941
80     %install
81 wally 1234472 %make_install
82 fwang 142653
83     rm -f %{buildroot}%{_libdir}/*.la
84    
85 blino 24941 install -d %{buildroot}%{_bindir}
86     install -m755 .libs/{showfont,glfont} %{buildroot}%{_bindir}
87    
88     %files -n %{libname}-test
89     %{_bindir}/showfont
90     %{_bindir}/glfont
91    
92     %files -n %{libname}
93 ovitters 876985 %{_libdir}/lib*%{apiver}.so.%{major}{,.*}
94 blino 24941
95     %files -n %{develname}
96     %doc README CHANGES
97     %{_libdir}/lib*.so
98     %{_includedir}/SDL/*
99     %{_libdir}/pkgconfig/*.pc

  ViewVC Help
Powered by ViewVC 1.1.30