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