From 08df1eadc3814af3997784c6bc23464c6be5f794 Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Fri, 5 Jan 2024 17:45:40 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.4.2-1mamba;Sat Apr 15 2017] --- README.md | 2 ++ sfml.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 sfml.spec diff --git a/README.md b/README.md index 50d27b2..26a89b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sfml +SFML provides a simple interface to the various components of your PC, to ease the development of games and multimedia applications. It is composed of five modules: system, window, graphics, audio and network. + diff --git a/sfml.spec b/sfml.spec new file mode 100644 index 0000000..cf04787 --- /dev/null +++ b/sfml.spec @@ -0,0 +1,91 @@ +Name: sfml +Version: 2.4.2 +Release: 1mamba +Summary: Simple and Fast Multimedia Library +Group: System/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: https://www.sfml-dev.org/index.php +Source: https://www.sfml-dev.org/files/SFML-%{version}-sources.zip +License: zlib/png license +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 sfml' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SFML provides a simple interface to the various components of your PC, to ease the development of games and multimedia applications. It is composed of five modules: system, window, graphics, audio and network. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n SFML-%{version} + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libsfml-*.so +%{_libdir}/libsfml-*.so.* +%{_datadir}/SFML/cmake/Modules/FindSFML.cmake +%{_datadir}/SFML/license.txt +%{_datadir}/SFML/readme.txt + + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/SFML/*.hpp +%{_includedir}/SFML/Audio/*.hpp +%{_includedir}/SFML/Graphics/*.hpp +%{_includedir}/SFML/Network/*.hpp +%{_includedir}/SFML/System/*.hpp +%{_includedir}/SFML/Window/*.hpp +%{_includedir}/SFML/Audio/SoundFileFactory.inl +%{_includedir}/SFML/Graphics/Glsl.inl +%{_includedir}/SFML/Graphics/Rect.inl +%{_includedir}/SFML/System/String.inl +%{_includedir}/SFML/System/Thread.inl +%{_includedir}/SFML/System/ThreadLocalPtr.inl +%{_includedir}/SFML/System/Utf.inl +%{_includedir}/SFML/System/Vector2.inl +%{_includedir}/SFML/System/Vector3.inl + + + +%changelog +* Sat Apr 15 2017 Ercole 'ercolinux' Carpanetto 2.4.2-1mamba +- package created using the webbuild interface