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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210606 - (show annotations) (download)
Sun Feb 19 00:53:55 2012 UTC (12 years, 2 months ago) by luigiwalser
File size: 2668 byte(s)
remove patch 0
1 %define major 0
2 %define apiver 1.2
3 %define libname %mklibname %{name} %{apiver} %{major}
4 %define develname %mklibname %{name} -d
5
6 Summary: Simple DirectMedia Layer - image
7 Name: SDL_image
8 Version: 1.2.12
9 Release: %mkrel 1
10 License: LGPLv2+
11 Group: System/Libraries
12 URL: http://www.libsdl.org/projects/SDL_image/index.html
13 Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
14 BuildRequires: libjpeg-devel
15 BuildRequires: libpng-devel
16 BuildRequires: libtiff-devel
17 BuildRequires: libSDL-devel >= 1.2.10
18
19 %description
20 This is a simple library to load images of various formats as SDL surfaces.
21 This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats.
22
23 This package contains the binary `sdlshow' to test the library.
24
25 %package -n %{libname}
26 Summary: Main library for %{name}
27 Group: System/Libraries
28 Obsoletes: %{_lib}SDL_image1.2 < 1.2.6-2
29
30 %description -n %{libname}
31 This package contains the library needed to run programs dynamically
32 linked with %{name}.
33
34 %package -n %{develname}
35 Summary: Headers for developing programs that will use %{name}
36 Group: Development/C
37 Requires: %{libname} = %{version}-%{release}
38 Requires: libSDL-devel
39 Provides: lib%{name}-devel = %{version}-%{release}
40 Provides: %{name}%{major}-devel = %{version}-%{release}
41 Provides: %{name}-devel = %{version}-%{release}
42 Obsoletes: %{_lib}SDL_image1.2-devel < 1.2.6-2
43
44 %description -n %{develname}
45 This package contains the headers that programmers will need to develop
46 applications which will use %{name}.
47
48 %package -n %{libname}-test
49 Summary: Test binary for %{name}
50 Group: System/Libraries
51 Obsoletes: %{_lib}SDL_image1.2-test < 1.2.6-2
52
53 %description -n %{libname}-test
54 This package contains binary to test the associated library.
55
56 %prep
57 %setup -q
58 %apply_patches
59
60 %build
61 # (anssi) --disable-x-shared disable dlopening, so that we link to them
62 # dynamically instead, and thus get correct autorequires
63 %configure2_5x --disable-static --enable-bmp \
64 --enable-gif \
65 --enable-jpg \
66 --enable-pcx \
67 --enable-png \
68 --enable-ppm \
69 --enable-tif \
70 --enable-xpm \
71 --disable-jpg-shared \
72 --disable-png-shared \
73 --disable-tif-shared
74
75 %make
76
77 %install
78 rm -rf %{buildroot}
79 %makeinstall_std
80
81 rm -f %{buildroot}%{_libdir}/*.la
82
83 install -d %{buildroot}%{_bindir}
84 install -m755 .libs/showimage %{buildroot}%{_bindir}/sdlshow
85
86 %clean
87 rm -rf %{buildroot}
88
89 %files -n %{libname}-test
90 %defattr(-,root,root)
91 %{_bindir}/sdlshow
92
93 %files -n %{libname}
94 %defattr(-,root,root)
95 %{_libdir}/lib*%{apiver}.so.%{major}*
96
97 %files -n %{develname}
98 %defattr(-,root,root)
99 %doc README CHANGES
100 %{_libdir}/lib*.so
101 %{_includedir}/SDL/*
102 %{_libdir}/pkgconfig/SDL_image.pc

  ViewVC Help
Powered by ViewVC 1.1.30