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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1839103 - (show 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 %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 12
11 License: zlib
12 Group: System/Libraries
13 URL: https://www.libsdl.org/projects/SDL_ttf/
14 Source0: https://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
15 Patch0: SDL_ttf-2.0.11-link.patch
16 BuildRequires: pkgconfig(sdl)
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 https://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 https://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 https://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 %autopatch -p0
69
70 # make autoreconf happy
71 touch NEWS AUTHORS ChangeLog
72
73 %build
74 # to recognize aarch64
75 autoreconf -vfi
76
77 %configure --disable-static
78 %make_build
79
80 %install
81 %make_install
82
83 rm -f %{buildroot}%{_libdir}/*.la
84
85 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 %{_libdir}/lib*%{apiver}.so.%{major}{,.*}
94
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