|
| 1 | +# |
| 2 | +# spec file for package sfml3 |
| 3 | +# |
| 4 | +# Copyright (c) 2025 SUSE LLC |
| 5 | +# |
| 6 | +# All modifications and additions to the file contributed by third parties |
| 7 | +# remain the property of their copyright owners, unless otherwise agreed |
| 8 | +# upon. The license for this file, and modifications and additions to the |
| 9 | +# file, is the same license as for the pristine package itself (unless the |
| 10 | +# license for the pristine package is not an Open Source License, in which |
| 11 | +# case the license is the MIT License). An "Open Source License" is a |
| 12 | +# license that conforms to the Open Source Definition (Version 1.9) |
| 13 | +# published by the Open Source Initiative. |
| 14 | + |
| 15 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 16 | +# |
| 17 | +%define so_ver -3_0 |
| 18 | +Name: sfml3 |
| 19 | +Version: 3.0.2 |
| 20 | +Summary: SFML is a simple, fast, cross-platform and object-oriented multimedia API. |
| 21 | +Release: 0 |
| 22 | +Source0: https://github.com/SFML/SFML/archive/refs/tags/3.0.2.tar.gz |
| 23 | +License: Zlib |
| 24 | +BuildRequires: cmake |
| 25 | +BuildRequires: doxygen |
| 26 | +BuildRequires: fdupes |
| 27 | +BuildRequires: gcc-c++ >= 9 |
| 28 | +BuildRequires: libXi-devel |
| 29 | +BuildRequires: pkgconfig |
| 30 | +BuildRequires: pkgconfig(flac) |
| 31 | +BuildRequires: pkgconfig(freetype2) |
| 32 | +BuildRequires: pkgconfig(gl) |
| 33 | +BuildRequires: pkgconfig(glu) |
| 34 | +BuildRequires: pkgconfig(libudev) |
| 35 | +BuildRequires: pkgconfig(ogg) |
| 36 | +BuildRequires: pkgconfig(openal) |
| 37 | +BuildRequires: pkgconfig(vorbis) |
| 38 | +BuildRequires: pkgconfig(vorbisenc) |
| 39 | +BuildRequires: pkgconfig(vorbisfile) |
| 40 | +BuildRequires: pkgconfig(x11) |
| 41 | +BuildRequires: pkgconfig(xcursor) |
| 42 | +BuildRequires: pkgconfig(xrandr) |
| 43 | +BuildRequires: pkgconfig(pthread-stubs) |
| 44 | + |
| 45 | +%description |
| 46 | +SFML is a simple, fast, cross-platform and object-oriented multimedia API. |
| 47 | +It provides access to windowing, graphics, audio and network. |
| 48 | +It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python. |
| 49 | + |
| 50 | +%package -n lib%{name}%{so_ver} |
| 51 | +Summary: Free multimedia C++ API |
| 52 | +Group: System/Libraries |
| 53 | + |
| 54 | +%description -n lib%{name}%{so_ver} |
| 55 | +SFML is a multimedia API that provides access to graphics, input, |
| 56 | +audio, etc., and may be seen as an object-oriented alternative to |
| 57 | +SDL. It can be used as a minimal windowing system to interface with |
| 58 | +OpenGL, or as a multimedia library for building games and interactive |
| 59 | +programs. |
| 60 | + |
| 61 | +%package devel |
| 62 | +Summary: SFML development files |
| 63 | +Group: Development/Libraries/C and C++ |
| 64 | +Requires: lib%{name}%{so_ver} = %{version} |
| 65 | +Requires: pkgconfig(gl) |
| 66 | +# Conflict with other SFML versions (same include files) |
| 67 | +Conflicts: sfml-devel |
| 68 | +Conflicts: sfml2-devel |
| 69 | + |
| 70 | +%description devel |
| 71 | +SFML is a C++ multimedia API that provides a low and high-level |
| 72 | +access to graphics, input, audio, etc., and may be seen as an |
| 73 | +object-oriented alternative to SDL. SFML can be used as a minimal |
| 74 | +windowing system to interface with OpenGL, or as a multimedia library |
| 75 | +for building games or interactive programs. |
| 76 | + |
| 77 | +This subpackage provides the header files needed to build SFML |
| 78 | +programs. |
| 79 | + |
| 80 | +%prep |
| 81 | +%setup -q -n SFML-%{version} |
| 82 | + |
| 83 | +%build |
| 84 | +%cmake -DSFML_INSTALL_PKGCONFIG_FILES=TRUE \ |
| 85 | + -DCMAKE_BUILD_TYPE=RelWithDebInfo |
| 86 | +%cmake_build |
| 87 | + |
| 88 | +%install |
| 89 | +%cmake_install |
| 90 | + |
| 91 | +%post -n lib%{name}%{so_ver} -p /sbin/ldconfig |
| 92 | +%postun -n lib%{name}%{so_ver} -p /sbin/ldconfig |
| 93 | + |
| 94 | +%files -n lib%{name}%{so_ver} |
| 95 | +%license license.md |
| 96 | +%{_libdir}/libsfml-*.so.* |
| 97 | + |
| 98 | +%files devel |
| 99 | +%{_includedir}/SFML |
| 100 | +%{_libdir}/libsfml-*.so |
| 101 | +%{_libdir}/pkgconfig/sfml-*.pc |
| 102 | +%{_libdir}/cmake/SFML |
| 103 | +%{_docdir}/* |
| 104 | + |
| 105 | +%changelog |
0 commit comments