Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
assaultcube
assaultcube.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File assaultcube.spec of Package assaultcube
# # spec file for package assaultcube # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2011 Toni Graffy # # 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/ # %define _lto_cflags %{nil} Name: assaultcube Version: 1.3.0.2 Release: 0 Summary: Free first-person-shooter based on the game Cube License: Zlib Group: Amusements/Games/Action/Shoot URL: https://assault.cubers.net/ Source0: https://github.com/assaultcube/AC/archive/refs/tags/v%{version}.tar.gz#/AC-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}.png BuildRequires: Mesa-devel BuildRequires: libjpeg-devel BuildRequires: libstdc++-devel BuildRequires: llvm-clang BuildRequires: pkgconfig BuildRequires: unzip BuildRequires: zlib-devel BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(SDL2_mixer) BuildRequires: pkgconfig(freealut) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(vorbis) Requires: %{name}-data >= %{version} %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: update-desktop-files %endif %description AssaultCube, formerly ActionCube, is a free first-person-shooter based on the game Cube. Set in a realistic looking environment, as far as that's possible with this engine, while game play stays fast and arcade. This game is all about team oriented multiplayer fun. %package data Summary: AssaultCube data files License: SUSE-Freeware Group: Amusements/Games/Action/Shoot BuildArch: noarch %description data AssaultCube, formerly ActionCube, is a free first-person-shooter based on the game Cube. Set in a realistic looking environment, as far as that's possible with this engine, while game play stays fast and arcade. This game is all about team oriented multiplayer fun. This package contains the data files for AssaultCube. %prep %setup -q -n AC-%{version} sed -i -e 's|.*CUBE_DIR=.*|CUBE_DIR=%{_datadir}/%{name}|g' assaultcube.sh sed -i -e 's|CUBE_DIR=./|CUBE_DIR=%{_datadir}/%{name}|g' server.sh # https://github.com/assaultcube/AC/blob/v1.3.0.1/source/dev_tools/packaging_guide.txt - Make a PRODUCTION build sed -i 's|//#define PRODUCTION|#define PRODUCTION|' 'source/src/cube.h' # remove old binaries rm bin_*/* %build cd source/src %make_build client server \ CXXFLAGS="%{optflags}" %install pushd source/src %make_install popd install -dm 755 %{buildroot}%{_datadir}/%{name} cp -R -t %{buildroot}%{_datadir}/%{name}/ config mods packages bot find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} + install -dm 755 %{buildroot}%{_bindir} install -m 755 source/src/ac_client %{buildroot}%{_bindir}/%{name}_client install -m 755 source/src/ac_server %{buildroot}%{_bindir}/%{name}_server # create links for the binaries as the wrapper-scripts expect those names install -dm 755 %{buildroot}%{_datadir}/%{name}/bin_unix pushd %{buildroot}%{_datadir}/%{name}/bin_unix ln -s %{_bindir}/%{name}_client native_client ln -s %{_bindir}/%{name}_server native_server popd # startscripts install -D -m 755 assaultcube.sh %{buildroot}%{_bindir}/assaultcube install -D -m 755 server.sh %{buildroot}%{_bindir}/assaultcube-server # icon install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png # menu-entry install -D -m 755 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop %if 0%{?suse_version} %suse_update_desktop_file -i %{name} Game ActionGame %fdupes %{buildroot}%{_datadir} %endif # Fix non-executable-script warning chmod +x %{buildroot}%{_datadir}/%{name}/config/convert_pre_v1.2_mapconfig.sh %files %{_bindir}/* %{_datadir}/applications/assaultcube.desktop %{_datadir}/pixmaps/assaultcube.png %doc source/*.txt %doc README.html %doc docs/*.txt %files data %{_datadir}/%{name}/ %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