]> git.pld-linux.org Git - packages/SDL_gfx.git/blame - SDL_gfx.spec
noarch apidocs
[packages/SDL_gfx.git] / SDL_gfx.spec
CommitLineData
3e2ee20c
JB
1Summary: SDL graphics drawing primitives and other supporting functions
2Summary(pl.UTF-8): Funkcje rysowania grafiki i inne pomocnicze dla SDL
1798792b 3Name: SDL_gfx
3ff5a49b 4Version: 2.0.26
3e2ee20c
JB
5Release: 2
6License: ZLib (BSD-like)
1798792b 7Group: Libraries
3ff5a49b 8#Source0Download: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
c7a61c0e 9Source0: http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz
3ff5a49b 10# Source0-md5: 0b3b5ab5f9e7d10f1faf14d4255db6ba
48a8a37d 11Patch0: %{name}-local-labels.patch
3ff5a49b 12URL: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
1798792b 13BuildRequires: SDL-devel >= 1.2.0
54caf23a 14BuildRequires: autoconf >= 2.59-9
1798792b 15BuildRequires: automake
1798792b 16BuildRequires: libtool
d82b051b 17BuildRequires: pkgconfig
1798792b
JK
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
1798792b
JK
20%description
21The SDL_gfx library evolved out of the SDL_gfxPrimitives code.
22
23The current components of the SDL_gfx library are:
91b3341b
JB
24- Graphic Primitives (SDL_gfxPrimitves.h)
25- Rotozoomer (SDL_rotozoom.h)
26- Framerate control (SDL_framerate.h)
27- MMX image filters (SDL_imageFilter.h)
1798792b 28
91b3341b 29The library is backwards compatible to the above mentioned code. It's
1798792b
JK
30is written in plain C and can be used in C++ code.
31
653e5dc2
JR
32%description -l pl.UTF-8
33Biblioteka SDL_gfx wyewoluowała z kodu SDL_gfxPrimitives.
91b3341b 34
653e5dc2 35Aktualnie SDL_gfx zawiera następujące komponenty:
91b3341b
JB
36- prymitywy graficzne (SDL_gfxPrimitives.h)
37- Rotozoomer (SDL_rotozoom.h)
653e5dc2
JR
38- kontrola szybkości rysowania obrazu (SDL_framerate.h)
39- filtry obrazów używające MMX (SDL_imageFilter.h).
91b3341b 40
653e5dc2
JR
41Biblioteka jest wstecznie kompatybilna z wyżej wspomnianym kodem. Jest
42napisana w czystym C, może też być używana w kodzie C++.
1798792b
JK
43
44%package devel
91b3341b 45Summary: Header files and more to develop SDL_gfx applications
8339736f 46Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx
1798792b 47Group: Development/Libraries
b2912e0e 48Requires: %{name} = %{version}-%{release}
3e2ee20c 49Requires: SDL-devel >= 1.2.0
1798792b
JK
50
51%description devel
52Header files and more to develop SDL_gfx applications.
53
653e5dc2
JR
54%description devel -l pl.UTF-8
55Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx.
1798792b
JK
56
57%package static
3e2ee20c
JB
58Summary: Static SDL_gfx library
59Summary(pl.UTF-8): Statyczna biblioteka SDL_gfx
1798792b 60Group: Development/Libraries
b2912e0e 61Requires: %{name}-devel = %{version}-%{release}
1798792b
JK
62
63%description static
3e2ee20c 64Static SDL_gfx library.
1798792b 65
653e5dc2 66%description static -l pl.UTF-8
3e2ee20c
JB
67Statyczna biblioteka SDL_gfx.
68
69%package apidocs
70Summary: API documentation for SDL_gfx library
71Summary(pl.UTF-8): Dokumentacja API biblioteki SDL_gfx
72Group: Documentation
4bcb2cfe 73BuildArch: noarch
3e2ee20c
JB
74
75%description apidocs
76API documentation for SDL_gfx library.
77
78%description apidocs -l pl.UTF-8
79Dokumentacja API biblioteki SDL_gfx.
1798792b
JK
80
81%prep
82%setup -q
80678106 83%patch0 -p1
1798792b
JK
84
85%build
490fa9ba 86%{__libtoolize}
ed62963b 87%{__aclocal}
b4cbb2ef 88%{__autoconf}
89%{__automake}
7662e164 90
bbecf461 91%configure \
b2912e0e 92%ifnarch %{ix86}
bbecf461 93 --disable-mmx
7662e164 94%endif
95
1798792b
JK
96%{__make}
97
98%install
99rm -rf $RPM_BUILD_ROOT
100
bbecf461
PG
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
1798792b 103
1798792b
JK
104%clean
105rm -rf $RPM_BUILD_ROOT
106
6a9f7e90 107%post -p /sbin/ldconfig
108%postun -p /sbin/ldconfig
91b3341b 109
1798792b
JK
110%files
111%defattr(644,root,root,755)
3e2ee20c 112%doc AUTHORS COPYING ChangeLog LICENSE README
c1d051e8 113%attr(755,root,root) %{_libdir}/libSDL_gfx.so.*.*.*
3ff5a49b 114%attr(755,root,root) %ghost %{_libdir}/libSDL_gfx.so.16
1798792b
JK
115
116%files devel
117%defattr(644,root,root,755)
c1d051e8
JB
118%attr(755,root,root) %{_libdir}/libSDL_gfx.so
119%{_libdir}/libSDL_gfx.la
99aead48
JB
120%{_includedir}/SDL/SDL_framerate.h
121%{_includedir}/SDL/SDL_gfx*.h
122%{_includedir}/SDL/SDL_imageFilter.h
123%{_includedir}/SDL/SDL_rotozoom.h
d82b051b 124%{_pkgconfigdir}/SDL_gfx.pc
1798792b
JK
125
126%files static
127%defattr(644,root,root,755)
c1d051e8 128%{_libdir}/libSDL_gfx.a
3e2ee20c
JB
129
130%files apidocs
131%defattr(644,root,root,755)
132%doc Docs/{Screenshots,html,*.png,index.html}
This page took 0.10752 seconds and 4 git commands to generate.