]> git.pld-linux.org Git - packages/SDL2_gfx.git/blob - SDL2_gfx.spec
c204384952b55a50fb6346d0040a5437c6e5b2de
[packages/SDL2_gfx.git] / SDL2_gfx.spec
1 Summary:        Graphics primitives and surface functions for SDL2
2 Summary(pl.UTF-8):      Funkcje do figur graficznych i powierzchni dla SDL2
3 Name:           SDL2_gfx
4 Version:        1.0.3
5 Release:        1
6 License:        ZLib (BSD-like)
7 Group:          Libraries
8 #Source0Download: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
9 Source0:        http://www.ferzkopp.net/Software/SDL2_gfx/%{name}-%{version}.tar.gz
10 # Source0-md5:  6cd25c38a803295348e8c00e9c69d364
11 Patch0:         %{name}-local-labels.patch
12 URL:            http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
13 BuildRequires:  SDL2-devel >= 2.0.0
14 BuildRequires:  autoconf >= 2.59-9
15 BuildRequires:  automake
16 BuildRequires:  libtool >= 2:2
17 BuildRequires:  pkgconfig
18 BuildRequires:  rpmbuild(macros) >= 1.566
19 BuildRequires:  sed >= 4.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The SDL2_gfx library provides the basic drawing functions such as
24 lines, circles or polygons provided by SDL_gfx on SDL2 against
25 renderers of SDL2.
26
27 The current components of the SDL_gfx2 library are:
28 - Graphic Primitives (SDL2_gfxPrimitves.h)
29 - Surface Rotozoomer (SDL2_rotozoom.h)
30 - Framerate control (SDL2_framerate.h)
31 - MMX image filters (SDL2_imageFilter.h).
32
33 %description -l pl.UTF-8
34 Biblioteka SDL2_gfx udostępnia użytkownikom biblioteki SDL2 podstawowe
35 funkcje do rysowania figur takich jak linie, okręgi czy wielokąty,
36 udostępniane wcześniej przez SDL_gfx.
37
38 Aktualnie SDL2_gfx zawiera następujące komponenty:
39 - prymitywy graficzne (SDL2_gfxPrimitives.h)
40 - Rotozoomer (SDL2_rotozoom.h)
41 - kontrola szybkości rysowania obrazu (SDL2_framerate.h)
42 - filtry obrazów używające MMX (SDL2_imageFilter.h).
43
44 %package devel
45 Summary:        Header files and more to develop SDL2_gfx applications
46 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       SDL2-devel >= 2.0.0
50
51 %description devel
52 Header files and more to develop SDL2_gfx applications.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx.
56
57 %package static
58 Summary:        Static SDL2_gfx library
59 Summary(pl.UTF-8):      Statyczna biblioteka SDL2_gfx
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static SDL2_gfx library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka SDL2_gfx.
68
69 %package apidocs
70 Summary:        API documentation for SDL2_gfx library
71 Summary(pl.UTF-8):      Dokumentacja API biblioteki SDL2_gfx
72 Group:          Documentation
73
74 %description apidocs
75 API documentation for SDL2_gfx library.
76
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki SDL2_gfx.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__automake}
89 %configure \
90 %ifnarch %{ix86}
91         --disable-mmx
92 %endif
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 # obsoleted by pkg-config
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libSDL2_gfx.la
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files
112 %defattr(644,root,root,755)
113 %doc AUTHORS COPYING ChangeLog README
114 %attr(755,root,root) %{_libdir}/libSDL2_gfx-1.0.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libSDL2_gfx-1.0.so.0
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libSDL2_gfx.so
120 %{_includedir}/SDL2/SDL2_framerate.h
121 %{_includedir}/SDL2/SDL2_gfxPrimitives.h
122 %{_includedir}/SDL2/SDL2_imageFilter.h
123 %{_includedir}/SDL2/SDL2_rotozoom.h
124 %{_pkgconfigdir}/SDL2_gfx.pc
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libSDL2_gfx.a
129
130 %files apidocs
131 %defattr(644,root,root,755)
132 %doc Docs/html/*
This page took 0.081637 seconds and 2 git commands to generate.