]> git.pld-linux.org Git - packages/SDL_gfx.git/blob - SDL_gfx.spec
- up to 2.0.21
[packages/SDL_gfx.git] / SDL_gfx.spec
1 Summary:        SDL graphics drawing primitives and other support functions
2 Summary(pl.UTF-8):      Funkcje rysowania grafiki i inne dla SDL
3 Name:           SDL_gfx
4 Version:        2.0.21
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz
9 # Source0-md5:  f3794d809ed6a415fb20dcc4c8ab9f5e
10 Patch0:         %{name}-local-labels.patch
11 URL:            http://www.ferzkopp.net/Software/SDL_gfx-2.0/
12 BuildRequires:  SDL-devel >= 1.2.0
13 BuildRequires:  autoconf >= 2.59-9
14 BuildRequires:  automake
15 BuildRequires:  libjpeg-devel
16 BuildRequires:  libpng >= 1.0.8
17 BuildRequires:  libtiff-devel
18 BuildRequires:  libtool
19 BuildRequires:  pkgconfig
20 BuildRequires:  zlib-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The SDL_gfx library evolved out of the SDL_gfxPrimitives code.
25
26 The current components of the SDL_gfx library are:
27 - Graphic Primitives (SDL_gfxPrimitves.h)
28 - Rotozoomer (SDL_rotozoom.h)
29 - Framerate control (SDL_framerate.h)
30 - MMX image filters (SDL_imageFilter.h)
31
32 The library is backwards compatible to the above mentioned code. It's
33 is written in plain C and can be used in C++ code.
34
35 %description -l pl.UTF-8
36 Biblioteka SDL_gfx wyewoluowała z kodu SDL_gfxPrimitives.
37
38 Aktualnie SDL_gfx zawiera następujące komponenty:
39 - prymitywy graficzne (SDL_gfxPrimitives.h)
40 - Rotozoomer (SDL_rotozoom.h)
41 - kontrola szybkości rysowania obrazu (SDL_framerate.h)
42 - filtry obrazów używające MMX (SDL_imageFilter.h).
43
44 Biblioteka jest wstecznie kompatybilna z wyżej wspomnianym kodem. Jest
45 napisana w czystym C, może też być używana w kodzie C++.
46
47 %package devel
48 Summary:        Header files and more to develop SDL_gfx applications
49 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       SDL-devel
53
54 %description devel
55 Header files and more to develop SDL_gfx applications.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx.
59
60 %package static
61 Summary:        Static SDL_gfx libraries
62 Summary(pl.UTF-8):      Statyczne biblioteki SDL_gfx
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static SDL_gfx libraries.
68
69 %description static -l pl.UTF-8
70 Statyczne biblioteki SDL_gfx.
71
72 %prep
73 %setup -q
74 %undos SDL_imageFilter.c
75 %patch0 -p1
76
77 %build
78 rm -f acinclude.m4
79 %{__libtoolize}
80 %{__aclocal}
81 %{__autoconf}
82 %{__automake}
83
84 %configure \
85 %ifnarch %{ix86}
86         --disable-mmx
87 %endif
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %doc README AUTHORS ChangeLog
106 %attr(755,root,root) %{_libdir}/libSDL_gfx.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libSDL_gfx.so.13
108
109 %files devel
110 %defattr(644,root,root,755)
111 %doc Docs/*
112 %attr(755,root,root) %{_libdir}/libSDL_gfx.so
113 %{_libdir}/libSDL_gfx.la
114 %{_includedir}/SDL/SDL_framerate.h
115 %{_includedir}/SDL/SDL_gfx*.h
116 %{_includedir}/SDL/SDL_imageFilter.h
117 %{_includedir}/SDL/SDL_rotozoom.h
118 %{_pkgconfigdir}/SDL_gfx.pc
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libSDL_gfx.a
This page took 0.073261 seconds and 4 git commands to generate.