Browse Source

updates for openSUSE

pull/537/head
1b00 5 years ago
parent
commit
fce620f4f1
  1. 23
      package/rpm/README.md
  2. 13
      package/rpm/magnum.spec

23
package/rpm/README.md

@ -9,6 +9,13 @@ sudo dnf install openal-soft \
freeglut-devel \
glfw
```
```
sudo zypper install openal-soft \
SDL2 \
freeglut-devel \
libglfw3
```
## for build and devel package
corrade-devel should be installed
@ -20,6 +27,14 @@ sudo dnf install git gcc-c++ cmake make rpmdevtools \
glfw-devel
```
```
sudo zypper install git gcc-c++ cmake make rpmdevtools rpm-build \
openal-soft-devel \
libSDL2-devel \
freeglut-devel \
libglfw-devel
```
## on centos
@ -27,3 +42,11 @@ sudo dnf install git gcc-c++ cmake make rpmdevtools \
```
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
```
## on openSUSE
### for SDL2 and libSDL2-devel add games repo:
```
sudo zypper addrepo https://download.opensuse.org/repositories/games/openSUSE_Tumbleweed/games.repo
sudo zypper refresh
```

13
package/rpm/magnum.spec

@ -8,8 +8,13 @@ URL: https://magnum.graphics/
Source0: %{name}-%{version}-%{release}.tar.gz
Requires: corrade
Requires: SDL2
%if %{defined suse_version}
Requires: freeglut-devel
Requires: libglfw3
%else
Requires: freeglut
Requires: glfw
%endif
Requires: openal-soft
BuildRequires: gcc-c++
@ -17,7 +22,11 @@ BuildRequires: cmake >= 3.4.0
BuildRequires: SDL2-devel
BuildRequires: freeglut-devel
BuildRequires: corrade-devel
%if %{defined suse_version}
BuildRequires: libglfw-devel
%else
BuildRequires: glfw-devel
%endif
BuildRequires: openal-soft-devel
%description
@ -29,7 +38,11 @@ Requires: corrade-devel
Requires: %{name} = %{version}
Requires: SDL2-devel
Requires: freeglut-devel
%if %{defined suse_version}
Requires: libglfw-devel
%else
Requires: glfw-devel
%endif
Requires: openal-soft-devel
%description devel

Loading…
Cancel
Save