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