2013-10-28 18:45:18 +01:00
|
|
|
#
|
|
|
|
# spec file for package SDL2_gfx
|
|
|
|
#
|
2014-06-17 11:06:09 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-10-28 18:45:18 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL2_gfx
|
2014-12-18 10:49:19 +01:00
|
|
|
%define lname libSDL2_gfx-1_0-0
|
2014-06-17 11:06:09 +02:00
|
|
|
Version: 1.0.1
|
2013-10-28 18:49:12 +01:00
|
|
|
Release: 0
|
2013-10-28 18:45:18 +01:00
|
|
|
Summary: SDL2 Graphics Routines for Primitives and Other Support Functions
|
|
|
|
License: Zlib
|
2013-11-11 05:02:10 +01:00
|
|
|
Group: Development/Libraries/X11
|
2014-12-18 10:49:19 +01:00
|
|
|
Url: http://cms.ferzkopp.net/index.php/software/13-sdl-gfx
|
2013-11-11 05:02:10 +01:00
|
|
|
|
2014-06-17 11:06:09 +02:00
|
|
|
Source: http://www.ferzkopp.net/Software/SDL2_gfx/%name-%version.tar.gz
|
2014-12-18 10:49:19 +01:00
|
|
|
Source3: baselibs.conf
|
2013-10-28 18:45:18 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-12-18 10:49:19 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2013-10-28 18:45:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
|
|
|
|
2014-12-18 10:49:19 +01:00
|
|
|
%package -n %lname
|
2013-10-28 18:45:18 +01:00
|
|
|
Summary: SDL2 Graphics Routines for Primitives and Other Support Functions
|
|
|
|
Group: System/Libraries
|
2014-12-18 10:49:19 +01:00
|
|
|
Provides: SDL2_gfx = %version-%release
|
2013-10-28 18:45:18 +01:00
|
|
|
|
2014-12-18 10:49:19 +01:00
|
|
|
%description -n %lname
|
2013-10-28 18:45:18 +01:00
|
|
|
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
|
|
|
|
|
|
|
%package -n libSDL2_gfx-devel
|
|
|
|
Summary: Libraries, includes and more to develop SDL2_gfx applications
|
2013-11-11 05:02:10 +01:00
|
|
|
Group: Development/Libraries/X11
|
2014-12-18 10:49:19 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
Provides: SDL2_gfx-devel = %version-%release
|
2013-10-28 18:45:18 +01:00
|
|
|
|
|
|
|
%description -n libSDL2_gfx-devel
|
|
|
|
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-06-17 11:06:09 +02:00
|
|
|
%configure --disable-static \
|
2014-06-25 14:35:59 +02:00
|
|
|
%ifnarch x86_64
|
2014-06-17 11:06:09 +02:00
|
|
|
--disable-mmx \
|
|
|
|
%endif
|
|
|
|
--with-pic
|
2013-10-28 18:45:18 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2013-11-11 05:02:10 +01:00
|
|
|
make install DESTDIR="%buildroot"
|
2014-12-18 10:49:19 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2013-10-28 18:45:18 +01:00
|
|
|
|
2014-12-18 10:49:19 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2013-10-28 18:45:18 +01:00
|
|
|
|
2014-12-18 10:49:19 +01:00
|
|
|
%files -n %lname
|
2013-10-28 18:45:18 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
2014-12-18 10:49:19 +01:00
|
|
|
%_libdir/lib*.so.*
|
2013-10-28 18:45:18 +01:00
|
|
|
|
|
|
|
%files -n libSDL2_gfx-devel
|
|
|
|
%defattr(-,root,root)
|
2014-12-18 10:49:19 +01:00
|
|
|
%_includedir/SDL2/
|
|
|
|
%_libdir/lib*.so
|
2014-06-17 11:06:09 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2013-10-28 18:45:18 +01:00
|
|
|
|
|
|
|
%changelog
|