2017-06-07 08:41:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package raylib
|
|
|
|
#
|
2018-05-18 17:44:43 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-06-07 08:41:11 +00: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/
|
|
|
|
#
|
|
|
|
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2017-06-07 08:41:11 +00:00
|
|
|
Name: raylib
|
2018-07-24 09:17:02 +00:00
|
|
|
Version: 2.0.0
|
2017-06-07 08:41:11 +00:00
|
|
|
Release: 0
|
2017-11-03 12:17:22 +00:00
|
|
|
Summary: C library for learning video game programming
|
2017-06-07 08:41:11 +00:00
|
|
|
License: Zlib
|
2017-06-08 15:26:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-06-07 08:41:11 +00:00
|
|
|
Url: http://www.raylib.com
|
2018-07-24 09:17:02 +00:00
|
|
|
Source: https://github.com/raysan5/raylib/archive/%{version}.tar.gz
|
2017-06-07 08:41:11 +00:00
|
|
|
BuildRequires: Mesa-libGL-devel
|
2018-05-18 17:44:43 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libXi-devel
|
2018-07-24 09:17:02 +00:00
|
|
|
#BuildRequires: libglfw-devel >= 3.2
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%description
|
2017-11-03 12:17:22 +00:00
|
|
|
A C library for learning video game programming.
|
|
|
|
raylib is inspired by the Borland BGI graphics library and by the XNA framework.
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%package -n raylib-devel
|
|
|
|
Summary: Development files for %{name}
|
2017-06-08 15:26:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-05-18 17:44:43 +00:00
|
|
|
Requires: libraylib2 = %{version}
|
2017-06-07 08:41:11 +00:00
|
|
|
Requires: openal-soft-devel
|
|
|
|
|
|
|
|
%description -n raylib-devel
|
2017-11-03 12:17:22 +00:00
|
|
|
Development files and headers for %{name}.
|
2017-06-07 08:41:11 +00:00
|
|
|
|
2018-05-18 17:44:43 +00:00
|
|
|
%package -n libraylib2
|
2017-11-03 12:17:22 +00:00
|
|
|
Summary: C library for learning video game programming
|
2017-09-08 16:41:13 +00:00
|
|
|
Group: System/Libraries
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2018-05-18 17:44:43 +00:00
|
|
|
%description -n libraylib2
|
2017-11-03 12:17:22 +00:00
|
|
|
A C library for learning video game programming.
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2017-06-07 08:41:11 +00:00
|
|
|
%prep
|
2018-07-24 09:17:02 +00:00
|
|
|
%setup -q -n raylib-2.0.0
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%build
|
2018-05-18 17:44:43 +00:00
|
|
|
%cmake \
|
2018-07-24 09:17:02 +00:00
|
|
|
-DPLATFORM=Desktop \
|
|
|
|
-DSHARED=ON
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-18 17:44:43 +00:00
|
|
|
%cmake_install
|
|
|
|
rm %{buildroot}%{_libdir}/libraylib.a
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2018-05-18 17:44:43 +00:00
|
|
|
%post -n libraylib2 -p /sbin/ldconfig
|
|
|
|
%postun -n libraylib2 -p /sbin/ldconfig
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2018-05-18 17:44:43 +00:00
|
|
|
%files -n libraylib2
|
|
|
|
%{_libdir}/libraylib.so.2
|
|
|
|
%{_libdir}/libraylib.so.2.0.0
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%files -n raylib-devel
|
2018-05-18 17:44:43 +00:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc CHANGELOG README.md
|
2017-06-07 08:41:11 +00:00
|
|
|
%{_includedir}/raylib.h
|
|
|
|
%{_libdir}/libraylib.so
|
2018-05-18 17:44:43 +00:00
|
|
|
%{_libdir}/pkgconfig/raylib.pc
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%changelog
|