Search
SailfishOS Open Build Service
>
Projects
>
home:maidis
>
SFML
> SFML.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File SFML.spec of Package SFML
Name: SFML Version: 2.4.2 Release: 4%{?dist} Summary: Simple and Fast Multimedia Library # src/SFML/Audio/stb_vorbis/stb_vorbis.{c,h} are Public Domain License: zlib and Public Domain URL: http://www.sfml-dev.org/ # This is http://www.sfml-dev.org/download/sfml/SFML-2.4.2-sources.zip # with the non free contents removed - See rhbz#1310387 and rhbz#1003569 # List of deleted files # examples/android/assets/canary.wav # examples/android/assets/orchestral.ogg # examples/android/assets/sansation.ttf # examples/cocoa/resources/sansation.ttf # examples/opengl/resources/background.jpg # examples/opengl/resources/sansation.ttf # examples/opengl/resources/texture.jpg # examples/pong/resources/ball.wav # examples/pong/resources/sansation.ttf # examples/shader/resources/background.jpg # examples/shader/resources/devices.png # examples/shader/resources/sansation.ttf # examples/sound/resources/canary.wav # examples/sound/resources/orchestral.ogg # examples/win32/resources/image1.jpg # examples/win32/resources/image2.jpg # tools/xcode/templates/SFML/SFML App.xctemplate/sansation.ttf # tools/xcode/templates/SFML/SFML CLT.xctemplate/sansation.ttf Source0: http://www.sfml-dev.org/download/sfml/%{version}/%{name}-%{version}-sources.zip #Patch0: SFML-unresolved__cpu_model-fix.patch #Patch1: SFML-do-not-use-Pong-trademark.patch # Upstream issue - https://github.com/SFML/SFML/issues/1187 #Patch2: SFML-strict-aliasing.patch BuildRequires: cmake BuildRequires: doxygen BuildRequires: freetype-devel BuildRequires: libvorbis-devel BuildRequires: flac-devel BuildRequires: systemd-devel BuildRequires: xcb-util-image-devel BuildRequires: glew-devel BuildRequires: libjpeg-devel BuildRequires: libsndfile-devel BuildRequires: libXrandr-devel BuildRequires: openal-devel %description SFML is a portable and easy to use multimedia API written in C++. You can see it as a modern, object-oriented alternative to SDL. SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch0 -p0 %patch1 -p0 %patch2 -p0 # fixup non needed executable permission on regular files find -type f -print0 | xargs -0 chmod -x # fixup %%doc files line endings sed -i.bak 's/\r//' license.txt readme.txt touch -r license.txt.bak license.txt touch -r readme.txt.bak readme.txt find extlibs/ -type f ! -name 'stb_image*' -print0 | xargs -0 rm %build %cmake -DSFML_BUILD_DOC=TRUE -DSFML_INSTALL_PKGCONFIG_FILES=TRUE . make %{?_smp_mflags} %install %make_install # move FindSFML.cmake to the standard location mkdir -p $RPM_BUILD_ROOT%{_datadir}/cmake/Modules mv $RPM_BUILD_ROOT%{_datadir}/%{name}/cmake/Modules/FindSFML.cmake \ $RPM_BUILD_ROOT%{_datadir}/cmake/Modules # remove duplicated documentation rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/*.txt rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc license.txt readme.txt %{_libdir}/*.so.* %files devel %doc doc/html/* %{_datadir}/cmake/Modules/FindSFML.cmake %{_includedir}/%{name}/ %{_libdir}/pkgconfig/sfml-*.pc %{_libdir}/libsfml-*.so %changelog * Mon Dec 10 2013 Anıl Özbek <ozbekanil@gmail.com> - 2.1 - First version for Sailfish OS based on Fedora package