Files
sfml3/sfml3.spec
Patrick Poitras e6ba22ee87 Attempt 0
2025-10-02 20:30:35 -07:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package sfml3
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: SFML3
Version: 3.0.2
Summary: SFML is a simple, fast, cross-platform and object-oriented multimedia API.
Release: 0
Source0: https://github.com/SFML/SFML/archive/refs/tags/3.0.2.tar.gz
BuildRequires: cmake
%description
SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python.
%prep
%setup -q -n %{version}
%build
%cmake -DSFML_BUILD_DOC=TRUE \
-DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/SFML \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
%cmake_build
%install
%cmake_install
%post -n lib%{name}%{so_ver} -p /sbin/ldconfig
%postun -n lib%{name}%{so_ver} -p /sbin/ldconfig
%files -n lib%{name}%{so_ver}
%license license.md
%{_libdir}/libsfml-*.so.*
%files devel
%doc readme.md changelog.md
%{_includedir}/SFML
%{_libdir}/libsfml-*.so
%{_libdir}/pkgconfig/sfml-*.pc
%{_libdir}/cmake/SFML
%files doc
%doc %{_docdir}/SFML
%changelog