Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
supertux2
supertux2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File supertux2.spec of Package supertux2
# # spec file for package supertux2 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define _name supertux #!BuildIgnore: gcc-PIE Name: supertux2 Version: 0.5.1 Release: 0 Summary: Jump'n run game License: GPL-3.0+ and CC-BY-SA-3.0 and GPL-2.0+ and GPL-1.0 Group: Amusements/Games/Action/Arcade Url: http://supertux.github.io/ Source: https://github.com/SuperTux/supertux/releases/download/v%{version}/SuperTux-v%{version}-Source.tar.gz %if 0%{?suse_version} > 1325 BuildRequires: libboost_date_time-devel BuildRequires: libboost_filesystem-devel %else BuildRequires: boost-devel %endif BuildRequires: cmake BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(vorbis) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description SuperTux is a classic 2D jump'n run sidescroller game in a similar style like the original SuperMario games. %prep %setup -q -n SuperTux-v%{version}-Source # Use supertux2.png filename to not conflict with supertux package. for res in png xpm; do cp -f data/images/engine/icons/{%{_name},%{name}}.$res done sed -i 's/%{_name}.\(png\|xpm\)/%{name}.\1/g' CMakeLists.txt sed -i 's|^\(Icon=\).*$|\1%{name}|' %{name}.desktop %build %cmake \ -DINSTALL_SUBDIR_BIN="$(realpath --relative-to=%{_prefix} %{_bindir})" \ -DINSTALL_SUBDIR_SHARE="$(realpath --relative-to=%{_prefix} %{_datadir})/%{name}" \ -DINSTALL_SUBDIR_DOC="$(realpath --relative-to=%{_prefix} %{_docdir})/%{name}" \ -DENABLE_BOOST_STATIC_LIBS=OFF make %{?_smp_mflags} %install %cmake_install rm -f %{buildroot}%{_docdir}/%{name}/INSTALL.md %suse_update_desktop_file %{name} %fdupes %{buildroot} %post %desktop_database_post %postun %desktop_database_postun %files %defattr(-,root,root) %doc LICENSE.txt README.md NEWS.md docs %{_bindir}/%{name} %{_datadir}/%{name}/ %attr(755,root,root) %{_datadir}/%{name}/sounds/normalize.sh %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.* %{_datadir}/appdata/%{name}.appdata.xml %if %{?suse_version} < 1320 %dir %{_datadir}/appdata %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor