]> git.pld-linux.org Git - packages/SDL2_image.git/blame - SDL2_image.spec
up to 2.6.0
[packages/SDL2_image.git] / SDL2_image.spec
CommitLineData
7e96a0d5
JB
1Summary: Simple DirectMedia Layer 2 - Sample Image Loading Library
2Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków dla SDL2
3Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens
4Name: SDL2_image
bba13cd2 5Version: 2.6.0
c2e294a4 6Release: 1
7e96a0d5
JB
7License: Zlib-like
8Group: Libraries
bba13cd2
JP
9Source0: https://github.com/libsdl-org/SDL_image/releases/download/release-%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 8e9c23d60d21aa3907737d6fcd8186bf
bf31c657 11Patch0: %{name}-libjpeg.patch
bba13cd2
JP
12Patch1: relax-soname-pattern.patch
13URL: https://github.com/libsdl-org/SDL_image
14BuildRequires: SDL2-devel >= 2.0.9
7e96a0d5
JB
15BuildRequires: autoconf
16BuildRequires: automake
bba13cd2 17BuildRequires: libavif-devel
7e96a0d5 18BuildRequires: libjpeg-devel >= 8
bba13cd2 19BuildRequires: libjxl-devel
bf31c657 20BuildRequires: libpng-devel >= 2:1.6.0
7e96a0d5
JB
21BuildRequires: libtiff-devel >= 4
22BuildRequires: libtool >= 2:2
bf31c657 23BuildRequires: libwebp-devel >= 0.6.0
7e96a0d5 24BuildRequires: pkgconfig >= 1:0.9.0
bba13cd2
JP
25Requires: SDL2 >= 2.0.9
26Suggests: libavif
7e96a0d5 27Suggests: libjpeg >= 8
bba13cd2 28Suggests: libjxl
7e96a0d5 29Suggests: libpng >= 2:1.6.0
7e96a0d5 30Suggests: libtiff >= 4
bf31c657 31Suggests: libwebp >= 0.6.0
7e96a0d5
JB
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34# NOTE: libraries dlopened by sonames detected at build time:
bba13cd2 35# libavif.so.14
7e96a0d5 36# libjpeg.so.8
bba13cd2 37# libjxl.so.0.6
bf31c657 38# libpng16.so.16
7e96a0d5 39# libtiff.so.5
bf31c657 40# libwebp.so.7
7e96a0d5
JB
41
42%description
43This is a simple library to load images of various formats as SDL2
44surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
45PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
46
47%description -l pl.UTF-8
48Jest to prosta biblioteka służąca do ładowania różnego formatu
49obrazków jako powierzchni SDL2. W chwili obecnej biblioteka obsługuje
50następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
51TGA, TIFF, WebP, XCF oraz XPM.
52
53%description -l pt_BR.UTF-8
54Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens.
55
56%package devel
57Summary: Header files and more to develop SDL2_image applications
58Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image
59Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL2
60Group: Development/Libraries
61Requires: %{name} = %{version}-%{release}
bba13cd2 62Requires: SDL2-devel >= 2.0.9
7e96a0d5
JB
63
64%description devel
65Header files and more to develop SDL2_image applications.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image.
69
70%description devel -l pt_BR.UTF-8
71Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
72SDL2.
73
74%package static
75Summary: Static SDL2_image libraries
76Summary(pl.UTF-8): Statyczne biblioteki SDL2_image
77Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL2
78Group: Development/Libraries
79Requires: %{name}-devel = %{version}-%{release}
80
81%description static
82Statis SDL2_image libraries.
83
84%description static -l pl.UTF-8
85Statyczne biblioteki SDL2_image.
86
87%description static -l pt_BR.UTF-8
88Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
89
90%prep
91%setup -q
bf31c657 92%patch0 -p1
bba13cd2 93%patch1 -p1
7e96a0d5
JB
94
95%build
96%{__libtoolize}
97%{__aclocal}
98%{__autoconf}
99%{__automake}
100%configure \
bba13cd2
JP
101 --disable-stb-image \
102 --enable-avif \
103 --enable-avif-shared \
7e96a0d5
JB
104 --enable-bmp \
105 --enable-gif \
106 --enable-jpg \
107 --enable-jpg-shared \
bba13cd2
JP
108 --enable-jxl \
109 --enable-jxl-shared \
7e96a0d5
JB
110 --enable-lbm \
111 --enable-pcx \
112 --enable-png \
113 --enable-png-shared \
114 --enable-pnm \
bba13cd2
JP
115 --enable-qoi \
116 --enable-svg \
7e96a0d5
JB
117 --enable-tga \
118 --enable-tif \
119 --enable-tif-shared \
120 --enable-webp \
121 --enable-webp-shared \
122 --enable-xcf \
123 --enable-xpm \
124 --enable-xv
125
126%{__make}
127
128%install
129rm -rf $RPM_BUILD_ROOT
130install -d $RPM_BUILD_ROOT%{_bindir}
131
132%{__make} install \
133 DESTDIR=$RPM_BUILD_ROOT
134
135install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show
136
137# obsoleted by pkg-config
138%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
139
140%clean
141rm -rf $RPM_BUILD_ROOT
142
143%post -p /sbin/ldconfig
144%postun -p /sbin/ldconfig
145
146%files
147%defattr(644,root,root,755)
bba13cd2 148%doc CHANGES.txt LICENSE.txt README.txt
7e96a0d5
JB
149%attr(755,root,root) %{_bindir}/sdl2show
150%attr(755,root,root) %{_libdir}/libSDL2_image-2.0.so.*.*.*
151%attr(755,root,root) %ghost %{_libdir}/libSDL2_image-2.0.so.0
152
153%files devel
154%defattr(644,root,root,755)
155%attr(755,root,root) %{_libdir}/libSDL2_image.so
bba13cd2 156%{_libdir}/cmake/SDL2_image
7e96a0d5
JB
157%{_includedir}/SDL2/SDL_image.h
158%{_pkgconfigdir}/SDL2_image.pc
159
160%files static
161%defattr(644,root,root,755)
162%{_libdir}/libSDL2_image.a
This page took 0.10356 seconds and 4 git commands to generate.