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