Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:games
unvanquished
project.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File project.diff of Package unvanquished
--- NOTES.txt.orig +++ NOTES.txt @@ -1,9 +1,9 @@ # NOTES # Unvanquished Game -Website: http://www.unvanquished.net/ +Website: https://unvanquished.net/ Forums: https://forums.unvanquished.net/ -Downloads: http://dl.unvanquished.net/ +Downloads: https://dl.unvanquished.net/ Code+bugs: https://github.com/Unvanquished/Unvanquished/ --- _service.orig +++ _service @@ -1,15 +1,15 @@ <services> - <service name="download_files"/> - <!-- - <service name="download_url"> - <param name="host">dl.unvanquished.net</param> - <param name="protocol">http</param> - <param name="path">/deps/linux64-2.tar.bz2</param> + <service mode="manual" name="tar_scm"> + <param name="url">https://github.com/Unvanquished/Unvanquished.git</param> + <param name="scm">git</param> + <param name="changesgenerate">enable</param> + <param name="versionrewrite-pattern">v(.*)</param> + <param name="parent-tag">v0.54.1</param> + <param name="versionformat">@PARENT_TAG@</param> </service> - <service name="download_url"> - <param name="host">dl.unvanquished.net</param> - <param name="protocol">http</param> - <param name="path">/deps/linux32-2.tar.bz2</param> + <service mode="manual" name="recompress"> + <param name="file">*.tar</param> + <param name="compression">xz</param> </service> - --> -</services> \ No newline at end of file + <service mode="manual" name="set_version"/> +</services> --- unvanquished.changes.orig +++ unvanquished.changes @@ -1,4 +1,15 @@ ------------------------------------------------------------------- +Sat Dec 16 16:54:39 UTC 2023 - Martin Hauke <mardnh@gmx.de> + +- Update to version 0.54.1 + +------------------------------------------------------------------- +Sat Feb 4 16:02:38 UTC 2023 - Martin Hauke <mardnh@gmx.de> + +- Update to version 0.54.0 +- Subpackage for server/service disabled for now + +------------------------------------------------------------------- Tue Feb 20 15:43:22 UTC 2018 - simonpuchert@alice.de - Use the _fillupdir macro to fix the build on Leap 15 and Tumbleweed. --- unvanquished.spec.orig +++ unvanquished.spec @@ -1,7 +1,7 @@ # # spec file for package unvanquished # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,151 +12,109 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -#Compat macro for new _fillupdir macro introduced in Nov 2017 -%if ! %{defined _fillupdir} -%define _fillupdir /var/adm/fillup-templates -%endif - Name: unvanquished -Version: 0.41.0 +Version: 0.54.1 Release: 0 Summary: Sci-fi RTS and FPS game -License: GPL-3.0 +License: GPL-3.0-only Group: Amusements/Games/Action/Shoot -Url: http://unvanquished.net/ - -#Source: http://dl.unvanquished.net/sources/stripped/%{name}-%{version}.tar.xz -# Github download will become Unvanquished-%{version}.tar.gz, i.e. note the 'Unv' not 'unv' -Source: https://github.com/Unvanquished/Unvanquished/archive/v%{version}.tar.gz -Source1: http://dl.unvanquished.net/deps/linux32-3.tar.bz2 -Source2: http://dl.unvanquished.net/deps/linux64-3.tar.bz2 -Source3: http://dl.unvanquished.net/deps/pnacl-2.zip -Source10: %{name}-service.sh -Source11: server.cfg -#Source12: https://github.com/Unvanquished/Unvanquished/raw/master/archlinux/configs/maprotation.cfg -Source12: maprotation.cfg -Source20: NOTES.txt - +URL: https://unvanquished.net +#Git-Clone: https://github.com/Unvanquished/Unvanquished.git +Source: Unvanquished-%{version}.tar.xz +# NaCL SDK is a buildtime dependency of Dæmon - use the prebuild NaCL from upstream ... +Source6: https://dl.unvanquished.net/deps/linux-amd64-default_10.tar.xz +#Source10: %{name}-service.sh +#Source11: server.cfg +###Source12: https://github.com/Unvanquished/Unvanquished/raw/master/archlinux/configs/maprotation.cfg +#Source12: maprotation.cfg +Source20: NOTES.txt +Source99: %{name}-rpmlintrc BuildRequires: cmake -BuildRequires: desktop-file-utils -BuildRequires: xz BuildRequires: gcc-c++ -BuildRequires: gmp-devel BuildRequires: hicolor-icon-theme -BuildRequires: libGeoIP-devel BuildRequires: libjpeg-devel -BuildRequires: libtinyxml-devel +#BuildRequires: lua-devel BuildRequires: ncurses-devel -BuildRequires: pkgconfig(bzip2) -BuildRequires: unzip +BuildRequires: pkgconfig +#BuildRequires: python3 +#BuildRequires: python3-Jinja2 +#BuildRequires: python3-pyaml BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glew) +BuildRequires: pkgconfig(gmp) BuildRequires: pkgconfig(libcurl) -%if 0%{?suse_version} BuildRequires: pkgconfig(libpng) -%endif -%if 0%{?fedora} -BuildRequires: pkgconfig(libpng15) -%endif BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(nettle) BuildRequires: pkgconfig(openal) -BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(opusfile) BuildRequires: pkgconfig(sdl2) -BuildRequires: pkgconfig(speex) -BuildRequires: pkgconfig(theora) BuildRequires: pkgconfig(vorbis) -%if 0%{?suse_version} >= 1210 -BuildRequires: systemd-rpm-macros -%endif - -Requires: opengl-games-utils -Requires: %{name}-data = %{version} -%if 0%{?suse_version} > 1020 -Recommends: %{name}-maps -Recommends: %{name}-service -%endif - -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -# Service setup -%{define} _service %{name}-server -%{define} _service_user %{name} -%{define} _service_home /var/lib/%{_service} +BuildRequires: pkgconfig(zlib) +ExclusiveArch: x86_64 +# bundled libs +Provides: bundled(breakpad) +Provides: bundled(crunch) +Provides: bundled(findlocale) +Provides: bundled(googletest) +Provides: bundled(minizip) +Provides: bundled(mumblelink) +Provides: bundled(nacl) +Provides: bundled(pdcursesmod) +Provides: bundled(tinyformat) %description -Players fight online in team based combat in a war of aliens against humans. - -While the humans are equipped with weapons that they use to exterminate the alien presence, the aliens have only their pincers and a few special attacks, such as poison gas, and ranged electrical and projectile attacks. Players do not spawn at random points in the map; instead, each map has default spawn points and both teams are capable of moving them wherever they please. Both teams have other buildings that round out their base, such as machinegun turrets for the humans and barricades for the aliens. Either team wins by destroying the opposing team's spawn points and killing any remaining members of that team before they are able to build any more spawn points or the game timer ends. - -This package only contains the game engine. - -# As a Service -%package service -Summary: Sci-fi RTS and FPS game - Run game server as a service -Group: Amusements/Games/Action/Shoot -Requires: %{name} >= %{version} - -PreReq: %fillup_prereq -PreReq: shadow -%{?systemd_requires} - -# -%description service -Players fight online in team based combat in a war of aliens against humans. - -This package installs the files and config to run a unvanquished server as a systemd service. - -** THIS IS A WORK IN PROGRESS - EXPERIMENTAL** - - Service control and monitoring still experimental. - - Connection to server instance's console not telnet'esque yet. - +Build a base, defend it against the other team, gain credits for better +weapons or more advanced aliens, try to wipe them out. %prep -# Capital 'U' inside of Github downloaded tarball %setup -q -n Unvanquished-%{version} - -# Google Native Client (NaCl) -pushd external_deps -%ifarch i586 -tar -xjvf %{SOURCE1} -%endif -%ifarch x86_64 -tar -xjvf %{SOURCE2} -%endif -unzip -o %{SOURCE3} -popd - -mkdir build - +tar xxvf %{SOURCE6} -C daemon/external_deps +rm -Rf daemon/libs/zlib %build - -cd build - +#%%cmake +mkdir build && cd build cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=ON \ - -DBUILD_GAME_NATIVE_DLL=OFF \ - -DBUILD_GAME_NATIVE_EXE=OFF \ - -DBUILD_GAME_NACL=OFF - #-DCMAKE_BUILD_TYPE=RelWithDebInfo \ - #-USE_OPENAL_DLOPEN=OFF \ - -make %{?_smp_mflags} - + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_CGAME=OFF \ + -DBUILD_SGAME=OFF \ + -DUSE_BREAKPAD=ON \ + -DUSE_GEOIP=OFF \ + -DDAEMON_CBSE_PYTHON_PATH=%{_bindir}/python3 +%make_build %install # Docs + Notes cp -a %{SOURCE20} ./ # Icons -install -Dm644 debian/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png +for i in 32 64 128 256 512 ; do + install -Dm 0644 dist/icons/${i}x${i}/unvanquished.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png +done + +## Service Home +#install -Dm 640 %{SOURCE11} %{buildroot}%{_service_home}/config/server.cfg +#install -Dm 640 %{SOURCE12} %{buildroot}%{_service_home}/game/maprotation.cfg +#install -d %{buildroot}%{_service_home}/pkg + +install -d %{buildroot}%{_libdir}/%{name} +# +## Application +install -m 755 build/daemon build/daemonded build/daemon-tty build/crash_server %{buildroot}%{_libdir}/%{name}/ +## Helpers +install -m 755 build/nacl_helper_bootstrap build/nacl_loader %{buildroot}%{_libdir}/%{name}/ +install -m 755 build/irt_core-amd64.nexe %{buildroot}%{_libdir}/%{name}/ + +# NOTE: 'irt_core-x86.nexe' is getting stripped or tweaked after build +# in packaging, and causes failure at runtime with an IPC error. +# Protect 'irt_core-amd64.nexe from getting 'stripped'. +export NO_BRP_STRIP_DEBUG='true' # == Command Interface == mkdir command-ui @@ -184,27 +142,28 @@ esac shift done -# Note: argument stucture changed in alpha 37: +# Note: argument stucture changed in alpha 37: # -set <variable> <value> is now the preferred way to set a configuration variable. # +set <variable> <value> and +<command> are only applied after engine initialization. exec %{_libdir}/%{name}/daemon -libpath %{_libdir}/%{name} -pakpath %{_datadir}/%{name}/pkg \${app_args} EOF # ---------------------- -# Run a game server -# ---------------------- -cat >> %{name}-server <<EOF -#!/bin/sh - -# Note: argument stucture changed in alpha 37: -# -set <variable> <value> is now the preferred way to set a configuration variable. -# +set <variable> <value> and +<command> are only applied after engine initialization. -exec %{_libdir}/%{name}/daemonded -libpath %{_libdir}/%{name}/ -pakpath %{_datadir}/%{name}/pkg -curses "\$@" -EOF -# ---------------------- - -mkdir -p %{buildroot}%{_bindir}/ -install -m 755 %{name} %{name}-server %{buildroot}%{_bindir}/ +## Run a game server +## ---------------------- +#cat >> %{name}-server <<EOF +##!/bin/sh +# +## Note: argument stucture changed in alpha 37: +## -set <variable> <value> is now the preferred way to set a configuration variable. +## +set <variable> <value> and +<command> are only applied after engine initialization. +#exec %{_libdir}/%{name}/daemonded -libpath %{_libdir}/%{name}/ -pakpath %{_datadir}/%{name}/pkg -curses "\$@" +#EOF +## ---------------------- + +install -d %{buildroot}%{_bindir} +install -m 755 %{name} %{buildroot}%{_bindir}/ +#install -m 755 %{name}-server %{buildroot}%{_bindir}/ # Desktop launcher # Don't use a suse-macro to support other distributions @@ -222,157 +181,49 @@ EOF # ---------------------- install -Dm 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop - -# Server as service -# sysconfig -# ---------------------- -cat >> %{_service}.conf <<EOF -# Unvanquished Dedicated Server - Environment Config - -# Daemonded lib directory -LIBPATH=%{_libdir}/%{name} - -# Server Store -HOMEPATH=%{_service_home} - -# .pk3 Package Store - for installed game data and maps -PAKPATH=%{_datadir}/%{name}/pkg - -# Startup Server Configuration -EXEC=server.cfg -EOF -# ---------------------- - -# For /etc/sysconfig/ -install -Dm 644 %{_service}.conf %{buildroot}%{_fillupdir}/sysconfig.%{_service} - -install -Dm 750 %{SOURCE10} %{buildroot}%{_service_home}/%{name}-service.sh - -# Systemd service file -# ---------------------- -cat >> %{_service}.service <<EOF -[Unit] -Description=Unvanquished Dedicated Server -After=network.target - -[Service] -EnvironmentFile=/etc/sysconfig/%{_service} -User=%{_service_user} -Group=%{_service_user} -ExecStart=%{_service_home}/%{name}-service.sh +exec \$EXEC -ExecStop=%{_service_home}/%{name}-service.sh stop - -[Install] -WantedBy=multi-user.target -EOF -# ---------------------- -install -Dm 644 %{_service}.service %{buildroot}%{_unitdir}/%{_service}.service - -# Administer the running service instance -# ---------------------- -cat >> %{_service}-cmd <<EOF -#!/bin/sh -# Send command(s) to running daemonded instance started as a service -# -test -s /etc/sysconfig/%{_service} && . /etc/sysconfig/%{_service} - -service_state=\$(systemctl is-active %{_service}.service) -if [ "\${service_state}" != "active" ]; then - echo "No active instance of %{_service}, Exiting." - exit 1 -fi - -# Administer running service instance - To send it commands. -# -homepath must be same as running instance -exec %{_libdir}/%{name}/daemonded -libpath \$LIBPATH -pakpath \$PAKPATH -homepath \$HOMEPATH "\$@" - -EOF -# ---------------------- -install -Dm 750 %{_service}-cmd %{buildroot}%{_service_home}/%{_service}-cmd - -# -popd # command-ui - -# Service Home -install -Dm 640 %{SOURCE11} %{buildroot}%{_service_home}/config/server.cfg -install -Dm 640 %{SOURCE12} %{buildroot}%{_service_home}/game/maprotation.cfg -install -d %{buildroot}%{_service_home}/pkg - - -# == Binary Assets == -mkdir -p %{buildroot}%{_libdir}/%{name}/ - -cd build - -# Application -install -m 755 daemon daemonded daemon-tty %{buildroot}%{_libdir}/%{name}/ - -# Helpers -install -m 755 nacl_helper_bootstrap nacl_loader %{buildroot}%{_libdir}/%{name}/ - -%ifarch i586 -install -m 755 irt_core-x86.nexe %{buildroot}%{_libdir}/%{name}/ -%endif -%ifarch x86_64 -install -m 755 irt_core-x86_64.nexe %{buildroot}%{_libdir}/%{name}/ -%endif - -# NOTE: 'irt_core-x86.nexe' is getting stripped or tweaked after build -# in packaging, and causes failure at runtime with an IPC error. -# Protect 'irt_core-x86[_64].nexe from getting 'stripped'. -export NO_BRP_STRIP_DEBUG='true' - - - -%pre service -# Server Setup of User / Group -getent group %{_service_user} >/dev/null || groupadd -r %{_service_user} -getent passwd %{_service_user} >/dev/null || useradd -r -g %{_service_user} \ - -d %{_service_home} -s /bin/false -c "Unvanquished Dedicated Server" %{_service_user} - -%service_add_pre %{_service}.service - -%post service -%icon_theme_cache_post -%desktop_database_post -%{fillup_only -n %{_service}} -%service_add_post %{_service}.service - -# TODO?: (how to symlink file not created by this spec) -#ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{_service} - -%preun service -%service_del_preun %{_service}.service - -%postun service -%icon_theme_cache_postun -%desktop_database_postun -%service_del_postun %{_service}.service - +#%pre service +#%# Server Setup of User / Group +#%getent group %{_service_user} >/dev/null || groupadd -r %{_service_user} +#%getent passwd %{_service_user} >/dev/null || useradd -r -g %{_service_user} \ +#% -d %{_service_home} -s /bin/false -c "Unvanquished Dedicated Server" %{_service_user} +#% +#%%service_add_pre %{_service}.service +#% +#%%post service +#%#%%{fillup_only -n %{_service}} +#%%service_add_post %{_service}.service +#% +#%# TODO?: (how to symlink file not created by this spec) +#%#ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{_service} +#% +#%%preun service +#%%service_del_preun %{_service}.service +#% +#%%postun service +#%%service_del_postun %{_service}.service %files -%defattr(-,root,root,-) -%doc GPL.txt COPYING.txt NOTES.txt -%{_bindir}/* +%license COPYING.txt GPL.txt +%doc NOTES.txt README.md +%{_bindir}/unvanquished +#%%{_bindir}/unvanquished-server %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/128x128/apps/%{name}.png - -%files service -%defattr(-,root,root,-) -%doc NOTES.txt -%config %{_fillupdir}/sysconfig.%{_service} -%{_unitdir}/%{_service}.service - -%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/ -%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/config/ -%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/game/ -%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/pkg/ - -%attr(0750,%{_service_user},%{_service_user}) %{_service_home}/%{name}-service.sh -%attr(0750,%{_service_user},%{_service_user}) %{_service_home}/%{_service}-cmd -%attr(0640,%{_service_user},%{_service_user}) %config(noreplace) %{_service_home}/config/server.cfg -%attr(0640,%{_service_user},%{_service_user}) %config(noreplace) %{_service_home}/game/maprotation.cfg +%{_datadir}/icons/hicolor/*/apps/unvanquished.png +#%%files service +#%%doc NOTES.txt +#%%config %{_fillupdir}/sysconfig.%{_service} +#%%{_unitdir}/%{_service}.service +#% +#%%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/ +#%%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/config/ +#%%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/game/ +#%%attr(750,%{_service_user},%{_service_user}) %dir %{_service_home}/pkg/ +#% +#%%attr(0750,%{_service_user},%{_service_user}) %{_service_home}/%{name}-service.sh +#%%attr(0750,%{_service_user},%{_service_user}) %{_service_home}/%{_service}-cmd +#%%%attr(0640,%{_service_user},%{_service_user}) %config(noreplace) %{_service_home}/config/server.cfg +#%%%attr(0640,%{_service_user},%{_service_user}) %config(noreplace) %{_service_home}/game/maprotation.cfg %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