%def_disable static
Name: SDL2_gfx
Version: 1.0.4
Release: alt2
Summary: Simple DirectMedia Layer - Graphics primitives and surface functions
License: zlib
Group: System/Libraries
Url: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
Packager: Nazarov Denis <nenderus@altlinux.org>
Source: http://www.ferzkopp.net/Software/%name/%name-%version.tar.gz
BuildRequires: libSDL2-devel
%description
The %name library provides the basic drawing functions such as lines,
circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2.
%package -n lib%name
Summary: Simple DirectMedia Layer - Graphics primitives and surface functions
Group: System/Libraries
%description -n lib%name
The %name library provides the basic drawing functions such as lines,
circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2.
%package -n lib%name-devel
Summary: Libraries, includes and more to develop SDL applications.
Group: Development/C
%description -n lib%name-devel
The %name library provides the basic drawing functions such as lines,
circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2.
%if_enabled static
%package -n lib%name-devel-static
Summary: Static libraries to develop SDL applications.
Group: Development/C
%description -n lib%name-devel-static
The %name library provides the basic drawing functions such as lines,
circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2.
%endif
%prep
%setup
%build
%autoreconf
%configure %{subst_enable static} \
%ifnarch %ix86 x86_64
--disable-mmx \
%endif
%make_build
%install
%makeinstall_std
%__rm -rf %buildroot%_libdir/lib%name.la
%files -n lib%name
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%_libdir/lib%name-1.0.so.*
%files -n lib%name-devel
%dir %_includedir/SDL2
%_includedir/SDL2/*.h
%_libdir/lib%name.so
%_pkgconfigdir/%name.pc
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib%name.a
%endif
%changelog
* Wed Jan 16 2019 Nazarov Denis <nenderus@altlinux.org> 1.0.4-alt2
- Remove %ubt macro
* Fri Mar 09 2018 Nazarov Denis <nenderus@altlinux.org> 1.0.4-alt1%ubt
- Version 1.0.4
* Thu Sep 25 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.1-alt1.M70P.1
- Build for branch p7
* Tue Jun 24 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.1-alt1.M70T.1
- Build for branch t7
* Mon Jun 23 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.1-alt2
- Disable MMX on non x86 and x64 arch (thanks Sergey Bolshakov)
* Sat Jun 21 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.1-alt0.M70T.1
- Build for branch t7
* Sat Jun 21 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.1-alt1
- Version 1.0.1
* Wed Feb 05 2014 Nazarov Denis <nenderus@altlinux.org> 1.0.0-alt0.M70T.1
- Build for branch t7
* Sat Nov 02 2013 Nazarov Denis <nenderus@altlinux.org> 1.0.0-alt1
- Initial build for ALT Linux