]> git.pld-linux.org Git - packages/sdl12-compat.git/blob - sdl12-compat.spec
- new
[packages/sdl12-compat.git] / sdl12-compat.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 Summary:        SDL1.2 compat library (SDL2 to SDL1.2 compatibility wrapper)
5 Summary(pl.UTF-8):      Biblioteka SDL1.2 (warstwa kompatybilności SDL2 z SDL1.2)
6 Name:           sdl12-compat
7 Version:        1.2.60
8 Release:        1
9 License:        Zlib (BSD-like)
10 Group:          Libraries
11 Source0:        https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-%{version}.tar.gz
12 # Source0-md5:  a539a4a3ceb3d09b7bf312d96210443c
13 URL:            https://www.libsdl.org/
14 BuildRequires:  SDL2-devel
15 BuildRequires:  cmake
16 BuildRequires:  ninja
17 BuildRequires:  pkgconfig
18 Obsoletes:      SDL <= 1.2.15
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 SDL (Simple DirectMedia Layer) is a library that allows you portable,
23 low level access to a video framebuffer, audio output, mouse, and
24 keyboard. It can support both windowed and DGA modes of XFree86, and
25 it is designed to be portable - applications linked with SDL can also
26 be built on Win32 and BeOS.
27
28 sdl12-compat is a replacement for SDL.
29
30 It attempts to look, feel and behave identically. The difference is
31 that it just converts the SDL-1.2 function calls into their SDL2
32 equivalents.
33
34 %description -l pl.UTF-8
35 SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
36 przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
37 myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
38 jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
39 konsolidowane z SDL można również budować w systemach Win32 i BeOS.
40
41
42 sdl12-compat to zamiennik SDL.
43
44 Stara się wyglądać i zachowywać identycznie. Różnica jest taka, że
45 zamienia wywołania funkcji SDL-1.2 na odpowiedniki z SDL2.
46
47 %package devel
48 Summary:        Header files for libusb-compat library
49 Summary(es.UTF-8):      Archivos de desarrollo de libusb-compat
50 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libusb-compat
51 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento da libusb-compat
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       SDL2-devel
55 Obsoletes:      SDL-devel <= 1.2
56
57 %description devel
58 This package contains header files and other resources you can use to
59 incorporate SDL-1.2 into applications.
60
61 %description devel -l es.UTF-8
62 Bibliotecas de desarrolo para sdl12-compat.
63
64 %description devel -l pl.UTF-8
65 Ten pakiet zawiera pliki nagłówkowe i inne zasoby pozwalające
66 wykorzystywać API sdl12-compat we własnych aplikacjach.
67
68 %description devel -l pt_BR.UTF-8
69 Bibliotecas de desenvolvimento para sdl12-compat.
70
71 %package static
72 Summary:        sdl12-compat static library
73 Summary(es.UTF-8):      Archivos de desarrollo de sdl12-compat - estatico
74 Summary(pl.UTF-8):      Statyczna biblioteka sdl12-compat
75 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento da sdl12-compat - biblioteca estática
76 Group:          Development/Libraries
77 Requires:       %{name}-devel = %{version}-%{release}
78 Obsoletes:      SDL-static <= 1.2
79
80 %description static
81 This is package with static sdl12-compat library.
82
83 %description static -l es.UTF-8
84 Bibliotecas de desarrolo para linusb-compat - estatico.
85
86 %description static -l pl.UTF-8
87 Statyczna biblioteka sdl12-compat.
88
89 %description static -l pt_BR.UTF-8
90 Bibliotecas de desenvolvimento para sdl12-compat - estático.
91
92 %prep
93 %setup -q -n %{name}-release-%{version}
94
95 %build
96 install -d build
97 cd build
98 %cmake -G Ninja \
99         %{?with_static_libs:-DSTATICDEVEL=ON} \
100         ../
101 %ninja_build
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105 %ninja_install -C build
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %ghost %{_libdir}/libSDL-1.2.so.?
116 %attr(755,root,root) %{_libdir}/libSDL-1.2.so.1.2.*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/sdl-config
121 %{_includedir}/SDL
122 %{_libdir}/libSDL-1.2.so
123 %{_libdir}/libSDL.so
124 %{_libdir}/libSDLmain.a
125 %{_pkgconfigdir}/sdl12_compat.pc
126 %{_aclocaldir}/sdl.m4
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libSDL.a
132 %endif
This page took 0.263542 seconds and 3 git commands to generate.