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