|
|
b26e703 |
%global __cmake_in_source_build 1
|
|
|
480ee10 |
%global _legacy_common_support 1
|
|
|
480ee10 |
|
|
|
584bc49 |
%global warsow_libdir %{_prefix}/lib/warsow
|
|
|
584bc49 |
|
|
|
c9873ba |
%global nodotver 21
|
|
|
584bc49 |
|
|
|
584bc49 |
Name: warsow
|
|
|
c9873ba |
Version: 2.1.2
|
|
|
d181383 |
Release: 15%{?dist}
|
|
|
584bc49 |
Summary: Fast paced 3D first person shooter
|
|
|
584bc49 |
|
|
|
584bc49 |
License: GPLv2+
|
|
|
515e925 |
URL: https://www.warsow.net/
|
|
|
584bc49 |
Source0: http://update.warsow.gg/mirror/warsow_%{nodotver}_sdk.tar.gz
|
|
|
584bc49 |
Source1: warsow.desktop
|
|
|
9d28e8f |
Source2: warsow.appdata.xml
|
|
|
5a27085 |
# Downstream patch to look for data files and libs installed in our prefix
|
|
|
584bc49 |
Patch0: warsow-paths.patch
|
|
|
584bc49 |
# Downstream patch to use our optimization flags
|
|
|
584bc49 |
Patch1: warsow-build.patch
|
|
|
584bc49 |
|
|
|
bec850a |
# Warsow is only ported to these architectures
|
|
|
bec850a |
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
bec850a |
|
|
|
a4c2f8c |
BuildRequires: make
|
|
Igor Gnatenko |
3434074 |
BuildRequires: gcc
|
|
Igor Gnatenko |
3434074 |
BuildRequires: gcc-c++
|
|
|
584bc49 |
BuildRequires: cmake
|
|
|
584bc49 |
BuildRequires: curl-devel
|
|
|
584bc49 |
BuildRequires: freetype-devel
|
|
|
584bc49 |
BuildRequires: libjpeg-devel
|
|
|
584bc49 |
BuildRequires: libpng-devel
|
|
|
584bc49 |
BuildRequires: libtheora-devel
|
|
|
584bc49 |
BuildRequires: libvorbis-devel
|
|
|
584bc49 |
BuildRequires: libX11-devel
|
|
|
584bc49 |
BuildRequires: libXinerama-devel
|
|
|
584bc49 |
BuildRequires: libXrandr-devel
|
|
|
584bc49 |
BuildRequires: libXxf86dga-devel
|
|
|
584bc49 |
BuildRequires: libXxf86vm-devel
|
|
|
f9a12ac |
BuildRequires: mesa-libGL-devel
|
|
|
584bc49 |
BuildRequires: openal-devel
|
|
|
584bc49 |
BuildRequires: openssl-devel
|
|
|
584bc49 |
BuildRequires: SDL2-devel
|
|
|
9d28e8f |
BuildRequires: /usr/bin/appstream-util
|
|
|
3ed78e5 |
BuildRequires: ImageMagick
|
|
|
9d28e8f |
BuildRequires: /usr/bin/desktop-file-validate
|
|
|
584bc49 |
BuildRequires: /usr/bin/dos2unix
|
|
|
584bc49 |
Requires: hicolor-icon-theme
|
|
|
584bc49 |
Requires: warsow-data = %{version}
|
|
|
584bc49 |
|
|
|
584bc49 |
# Filter private libraries from provides
|
|
|
584bc49 |
%global __provides_exclude_from ^%{warsow_libdir}/.*\\.so$
|
|
|
584bc49 |
|
|
|
584bc49 |
%description
|
|
|
584bc49 |
Warsow is a fast paced first person shooter consisting of cel-shaded
|
|
|
584bc49 |
cartoon-like graphics with dark, flashy and dirty textures. Warsow is based on
|
|
|
584bc49 |
the E-novel "Chasseur de bots" ("Bots hunter" in English) by Fabrice Demurger.
|
|
|
584bc49 |
Warsow's codebase is built upon Qfusion, an advanced modification of the Quake
|
|
|
584bc49 |
II engine.
|
|
|
584bc49 |
|
|
|
584bc49 |
This package installs the client to play Warsow.
|
|
|
584bc49 |
|
|
|
584bc49 |
|
|
|
584bc49 |
%package server
|
|
|
584bc49 |
Summary: Dedicated server for Warsow
|
|
|
584bc49 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
584bc49 |
|
|
|
584bc49 |
%description server
|
|
|
584bc49 |
Warsow is a fast paced first person shooter consisting of cel-shaded
|
|
|
584bc49 |
cartoon-like graphics with dark, flashy and dirty textures. Warsow is based on
|
|
|
584bc49 |
the E-novel "Chasseur de bots" ("Bots hunter" in English) by Fabrice Demurger.
|
|
|
584bc49 |
Warsow's codebase is built upon Qfusion, an advanced modification of the Quake
|
|
|
584bc49 |
II engine.
|
|
|
584bc49 |
|
|
|
584bc49 |
This package installs the standalone server and TV server for Warsow.
|
|
|
584bc49 |
|
|
|
584bc49 |
|
|
|
584bc49 |
%prep
|
|
|
584bc49 |
%setup -q -n warsow_%{nodotver}_sdk
|
|
Software Management Team |
e465620 |
%patch -P0 -p1 -b .paths
|
|
Software Management Team |
e465620 |
%patch -P1 -p1 -b .build
|
|
|
584bc49 |
|
|
|
5a27085 |
# Replace the placeholder that patch0 added with the actual prefix
|
|
|
5a27085 |
sed -i -e 's|__PREFIX__|%{_prefix}|g' source/source/qcommon/files.c
|
|
|
5a27085 |
|
|
|
584bc49 |
# Remove bundled libs
|
|
|
584bc49 |
pushd source/libsrcs
|
|
|
584bc49 |
rm -rf libcurl libfreetype libjpeg libogg libpng libtheora libvorbis OpenAL-MOB openssl SDL2 zlib
|
|
|
584bc49 |
popd
|
|
|
584bc49 |
|
|
|
584bc49 |
# Convert to utf-8 and Unix line breaks
|
|
|
584bc49 |
dos2unix docs/license.txt
|
|
|
584bc49 |
|
|
|
584bc49 |
|
|
|
584bc49 |
%build
|
|
|
584bc49 |
mkdir -p source/source/cmake_build
|
|
|
584bc49 |
pushd source/source/cmake_build
|
|
|
584bc49 |
|
|
|
584bc49 |
%cmake \
|
|
|
584bc49 |
-DQFUSION_GAME=Warsow \
|
|
|
584bc49 |
-DUSE_SDL2=YES \
|
|
|
584bc49 |
..
|
|
|
584bc49 |
make %{?_smp_mflags}
|
|
|
584bc49 |
|
|
|
584bc49 |
popd
|
|
|
584bc49 |
|
|
|
584bc49 |
|
|
|
584bc49 |
%install
|
|
|
584bc49 |
pushd source/source/build
|
|
|
584bc49 |
|
|
|
584bc49 |
# Install executables to bindir
|
|
|
584bc49 |
install -Dm 755 warsow.* $RPM_BUILD_ROOT%{_bindir}/warsow
|
|
|
584bc49 |
install -Dm 755 wsw_server.* $RPM_BUILD_ROOT%{_bindir}/warsow-server
|
|
|
584bc49 |
install -Dm 755 wswtv_server.* $RPM_BUILD_ROOT%{_bindir}/warsow-tv-server
|
|
|
584bc49 |
|
|
|
584bc49 |
# Install private libraries to a private directory
|
|
|
584bc49 |
install -d $RPM_BUILD_ROOT%{warsow_libdir}/libs
|
|
|
584bc49 |
install -m 755 libs/*.so $RPM_BUILD_ROOT%{warsow_libdir}/libs/
|
|
|
584bc49 |
|
|
|
9d28e8f |
popd
|
|
|
9d28e8f |
|
|
|
584bc49 |
# Install icons and the desktop file
|
|
|
9d28e8f |
convert -strip source/icons/warsow256x256.xpm warsow256x256.png
|
|
|
9d28e8f |
install -D -m 0644 warsow256x256.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/warsow.png
|
|
|
9d28e8f |
install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/warsow.desktop
|
|
|
9d28e8f |
install -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata/warsow.appdata.xml
|
|
|
584bc49 |
|
|
|
9d28e8f |
|
|
|
9d28e8f |
%check
|
|
|
9d28e8f |
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/warsow.desktop
|
|
|
9d28e8f |
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/warsow.appdata.xml
|
|
|
584bc49 |
|
|
|
584bc49 |
%files
|
|
|
584bc49 |
%license docs/license.txt
|
|
|
584bc49 |
%{_bindir}/warsow
|
|
|
584bc49 |
%{_datadir}/icons/hicolor/*/apps/warsow.png
|
|
|
9d28e8f |
%{_datadir}/appdata/warsow.appdata.xml
|
|
|
584bc49 |
%{_datadir}/applications/warsow.desktop
|
|
|
584bc49 |
%{warsow_libdir}/
|
|
|
584bc49 |
|
|
|
584bc49 |
%files server
|
|
|
584bc49 |
%{_bindir}/warsow-server
|
|
|
584bc49 |
%{_bindir}/warsow-tv-server
|
|
|
584bc49 |
|
|
|
584bc49 |
|
|
|
584bc49 |
%changelog
|
|
|
d181383 |
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-15
|
|
|
d181383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
d181383 |
|
|
|
69f67be |
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-14
|
|
|
69f67be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
69f67be |
|
|
|
d951a88 |
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-13
|
|
|
d951a88 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
d951a88 |
|
|
|
c0463d3 |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-12
|
|
|
c0463d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
c0463d3 |
|
|
|
50c26af |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-11
|
|
|
50c26af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
50c26af |
|
|
|
b097879 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-10
|
|
|
b097879 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
b097879 |
|
|
|
66b8d0b |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-9
|
|
|
66b8d0b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
66b8d0b |
|
|
|
2e2e681 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-8
|
|
|
2e2e681 |
- Second attempt - Rebuilt for
|
|
|
2e2e681 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
2e2e681 |
|
|
|
f453177 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-7
|
|
|
f453177 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
f453177 |
|
|
|
cf83e99 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-6
|
|
|
cf83e99 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
cf83e99 |
|
|
|
195266a |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-5
|
|
|
195266a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
195266a |
|
|
|
5a27085 |
* Tue Jun 18 2019 Pete Walter <pwalter@fedoraproject.org> - 2.1.2-4
|
|
|
5a27085 |
- Use correct prefix when building for flatpak
|
|
|
0f283ff |
- Add release data
|
|
|
5a27085 |
|
|
|
0d9f5a8 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-3
|
|
|
0d9f5a8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
0d9f5a8 |
|
|
|
bd7facd |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
|
|
bd7facd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
bd7facd |
|
|
|
c9873ba |
* Wed Apr 04 2018 Kalev Lember <klember@redhat.com> - 2.1.2-1
|
|
|
c9873ba |
- Update to 2.1.2
|
|
|
1dd5c54 |
- Update screenshots in appdata file
|
|
|
515e925 |
- Update URL
|
|
|
c9873ba |
|
|
|
2e2694f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-8
|
|
|
2e2694f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2e2694f |
|
|
|
af5b158 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-7
|
|
|
af5b158 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
af5b158 |
|
|
|
ed1aa42 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
|
|
|
ed1aa42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
ed1aa42 |
|
|
|
24a0364 |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-5
|
|
|
24a0364 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
24a0364 |
|
|
|
a04b4cd |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
|
|
|
a04b4cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a04b4cd |
|
|
|
9d28e8f |
* Wed Feb 01 2017 Pete Walter <pwalter@fedoraproject.org> - 2.1-3
|
|
|
9d28e8f |
- Install an appdata file
|
|
|
9d28e8f |
|
|
|
bec850a |
* Wed Feb 01 2017 Pete Walter <pwalter@fedoraproject.org> - 2.1-2
|
|
|
bec850a |
- Add ExclusiveArch
|
|
|
bec850a |
|
|
|
584bc49 |
* Wed Jun 08 2016 Pete Walter <pwalter@fedoraproject.org> - 2.1-1
|
|
|
584bc49 |
- Initial Fedora package
|