Пакет assaultcube: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %set_verify_elf_method strict %define origname AssaultCube_v1.2.0.2 %define rev 779627cb # clang doesn't know used LTO flags %global optflags_lto %nil Name: assaultcube Version: 1.2.0.2 Release: alt8.%rev Summary: Free first-person-shooter based on the game Cube Group: Games/Arcade License: Creative Commons Url: https://assault.cubers.net ExcludeArch: ppc64le # git: https://github.com/assaultcube/AC # http://assault.cubers.net/download.html/%origname.tar.bz2 Source: %name-%version.tar Source1: assaultcube_client.sh Source2: assaultcube_server.sh Source3: %name.desktop Source4: %name.png Patch1: %name-%version-alt-gcc.patch # Automatically added by buildreq on Sun Mar 23 2014 # optimized out: libGL-devel libGLU-devel libSDL-devel libX11-devel libcloog-isl4 libogg-devel llvm xorg-xproto-devel BuildRequires: clang libSDL_image-devel libcurl-devel libopenal-devel libstdc++-devel libvorbis-devel zlib-devel BuildRequires: gnu-config %ifarch %e2k # because of the missing <new> BuildRequires: gcc-c++ # -O3 is the default for e2k %global _optlevel 2 %endif Requires: %name-data = %version %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 gameplay stays fast and arcade. This game is all about team oriented multiplayer fun. %prep %setup %patch1 -p2 # the provided config is outdated and doesn't know about e2k, LoongArch cp /usr/share/gnu-config/config.{guess,sub} source/enet/ %build %add_optflags -D__STRICT_ANSI__ %add_optflags -D_FILE_OFFSET_BITS=64 %make_build -C source/src CFLAGS="%optflags" CXXOPTFLAGS="%optflags" CXXFLAGS="%optflags" %install mkdir -p %buildroot%_bindir install -pD -m 755 %SOURCE1 %buildroot%_bindir/assaultcube_client install -pD -m 755 %SOURCE2 %buildroot%_bindir/assaultcube_server mkdir -p %buildroot%_desktopdir install -pD -m 644 %SOURCE3 %buildroot%_desktopdir/%name.desktop mkdir -p %buildroot%_liconsdir install -pD -m 644 %SOURCE4 %buildroot%_liconsdir/%name.png mkdir -p %buildroot%_docdir/%name/ mkdir -p %buildroot%_gamesdatadir/%name/ mv source/src/ac_client %buildroot%_bindir/ mv source/src/ac_server %buildroot%_bindir/ mv docs %buildroot/%_docdir/%name/ mv mods %buildroot/%_docdir/%name/ mv README.html %buildroot/%_docdir/%name/ %files %_bindir/* %_docdir/%name %_desktopdir/%name.desktop %_liconsdir/*.png %changelog * Thu Jan 11 2024 Alexey Sheplyakov <asheplyakov@altlinux.org> 1.2.0.2-alt8.779627cb - Fixed FTBFS on LoongArch (use fresh config.{sub,guess}). * Wed Feb 02 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 1.2.0.2-alt7.779627cb - Fixed build for Elbrus. * Mon Aug 30 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0.2-alt6.779627cb - Disabled LTO. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0.2-alt5.779627cb - Fixed build with new toolchain. * Wed Feb 28 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0.2-alt4.779627cb - Fixed build with new toolchain. * Mon Jul 03 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0.2-alt3.779627cb - Updated build with gcc-6 * Fri Jan 2 2015 Andrew Clark <andyc@altlinux.org> 1.2.0.2-alt2.779627cb - version update to 1.2.0.2-alt2.779627cb * Sun Mar 23 2014 Andrew Clark <andyc@altlinux.org> 1.2.0.2-alt1.svn7688 - version update to 1.2.0.2-alt1.svn7688 * Thu Oct 4 2012 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn6897 - version update to 1.1.0.4-alt1.svn6897 * Sun Mar 25 2012 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn6772 - version update to 1.1.0.4-alt1.svn6772 * Fri Jan 6 2012 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn6746 - version update to 1.1.0.4-alt1.svn6746 * Sat Sep 24 2011 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn6656 - version update to 1.1.0.4-alt1.svn6656 * Sat Jun 4 2011 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn6490 - version update to 1.1.0.4-alt1.svn6490 * Fri Jan 7 2011 Andrew Clark <andyc@altlinux.org> 1.1.0.4-alt1.svn5994 - version update to 1.1.0.4-alt1.svn5994 * Sun Oct 10 2010 Andrew Clark <andyc@altlinux.org> 1.1.0.2-alt1.svn5740 - version update to 1.1.0.2-alt1.svn5740 * Sat Aug 14 2010 Andrew Clark <andyc@altlinux.org> 1.1.0.1-alt1.svn5613 - version update to 1.1.0.1-alt1.svn5613 * Wed May 26 2010 Andrew Clark <andyc@altlinux.org> 1.0.4-alt3.svn5057 - version update to 1.0.4-alt3.svn5057 * Mon Apr 5 2010 Andrew Clark <andyc@altlinux.org> 1.0.4-alt3.svn4799 - version update to 1.0.4-alt3.svn4799 * Fri Mar 12 2010 Andrew Clark <andyc@altlinux.org> 1.0.4-alt3.svn4788 - version update to 1.0.4-alt3.svn4788 * Wed Dec 30 2009 Andrew Clark <andyc@altlinux.org> 1.0.4-alt3.svn4746 - version update to 1.0.4-alt3.svn4746 * Sun Oct 18 2009 Andrew Clark <andyc@altlinux.org> 1.0.4-alt3.svn4660 - version update to 1.0.4-alt3.svn4660 - data files are separeted into data package * Mon Aug 31 2009 Andrew Clark <andyc@altlinux.org> 1.0.4-alt2 - Added CFLAGS and CXXOPTFLAGS. desktop file correction. * Sun Aug 2 2009 Andrew Clark <andyc@altlinux.org> 1.0.4-alt1 - new version. * Mon Jun 9 2009 Andrew Clark <andyc@altlinux.org> 1.0.2-alt1 - initial build for ALT. |