Package fheroes2: 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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | %def_with sdl2 #TODO: fix cmake SDLmain %def_without cmake Name: fheroes2 Epoch: 2 Version: 1.1.1 #define rev 20210604 #Release: alt1.%rev Release: alt1 Summary: Free implementation of Heroes of the Might and Magic II engine License: GPLv2+ Group: Games/Strategy Url: https://github.com/ihhub/fheroes2 VCS: https://github.com/ihhub/fheroes2 %add_findreq_skiplist %_docdir/%name Source: %name-%version.tar Source2: %name.sh Source3: %name.png Source4: fheroes2-data.spec Source5: README.ALT Patch0: fheroes2-1.1.1-random-skills.patch # Automatically added by buildreq on Wed Oct 03 2012 # optimized out: libSDL-devel libstdc++-devel zlib-devel BuildRequires: gcc-c++ libfreetype-devel gettext-tools # with image BuildRequires: libpng-devel # for future use: #BuildRequires: libjpeg-devel libwebp-devel libogg-devel %if_with sdl2 BuildRequires: libSDL2_image-devel libSDL2_mixer-devel libSDL2_net-devel libSDL2_ttf-devel %else BuildRequires: libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libSDL_ttf-devel %endif %if_with cmake BuildRequires: cmake %endif %description Free implementation of Heroes of the Might and Magic II engine. You need to copy files from data and maps directories from original game into your /usr/share/games/fheroes2/{maps,data} directories respectively %prep %setup -q %patch0 -p1 %build export LANG=en_US.UTF-8 %if_with cmake # see docs/README_cmake.md %cmake \ -DFHEROES2_DATA="%_gamesdatadir/%name/" \ %if_without sdl2 -DUSE_SDL_VERSION=SDL \ %endif -DENABLE_IMAGE=ON # -DENABLE_TOOLS=ON %cmake_build %else CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS; CCFLAGS="${CCFLAGS:-%optflags}"; export CCFLAGS; %make_build \ %if_without sdl2 FHEROES2_WITH_SDL1=1 \ %endif FHEROES2_DATA=%_gamesdatadir/%name/ \ FHEROES2_WITH_IMAGE=1 \ FHEROES2_WITH_TOOLS= make -C files/lang %endif %install %if_with cmake %cmake_install %else # let's create directory structure... mkdir -p %buildroot%_gamesdatadir/%name/{data,maps,files/lang} # and install what we need where we need it to be... install -pD -m 755 %name %buildroot%_bindir/%name cp -a files/{data,images} %buildroot%_gamesdatadir/%name/files/ cp -a files/lang/*.mo %buildroot%_gamesdatadir/%name/files/lang/ install -pD -m 644 script/packaging/common/fheroes2.desktop %buildroot%_desktopdir/%name.desktop %endif # bin wrapper mv %buildroot%_bindir/%name{,.bin} install -pD -m 755 %SOURCE2 %buildroot%_bindir/%name # install resources install -pD -m 644 %SOURCE3 %buildroot%_niconsdir/%name.png install -pD -m 644 src/resources/fheroes2.png %buildroot%_iconsdir/hicolor/128x128/apps/%name.png # docs mkdir -p %buildroot%_docdir/%name install -pm 644 {CONTRIBUTING.md,changelog.txt,LICENSE,README.md,docs/INSTALL.md,docs/DEVELOPMENT.md} %buildroot%_docdir/%name/ install -pm 644 script/demo/download_demo_version.sh script/homm2/extract_homm2_resources.sh %buildroot%_docdir/%name/ install -pD -m 644 %SOURCE4 %SOURCE5 %buildroot%_docdir/%name/ %files %_bindir/* %_niconsdir/%name.png %_iconsdir/hicolor/128x128/apps/%name.png %_desktopdir/%name.desktop %doc %_docdir/%name %_gamesdatadir/%name %changelog * Mon Jul 29 2024 Igor Vlasenko <viy@altlinux.org> 2:1.1.1-alt1 - new version * Wed Mar 27 2024 Igor Vlasenko <viy@altlinux.org> 2:1.0.13-alt1 - new version * Tue Feb 13 2024 Igor Vlasenko <viy@altlinux.org> 2:1.0.12-alt1 - new version * Tue Jan 02 2024 Igor Vlasenko <viy@altlinux.org> 2:1.0.11-alt1 - new version * Fri Nov 24 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.10-alt1 - new version * Sat Oct 14 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.9-alt1 - new version * Fri Sep 15 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.8-alt1 - new version * Tue Aug 22 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.7-alt1 - new version * Sun Jun 25 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.5-alt1 - new version * Sat May 20 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.4-alt1 - new version * Thu Apr 13 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.3-alt1 - new version * Sat Mar 18 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.2-alt1 - new version * Fri Feb 10 2023 Igor Vlasenko <viy@altlinux.org> 2:1.0.1-alt1 - new version * Thu Dec 22 2022 Igor Vlasenko <viy@altlinux.org> 2:1.0.0-alt1 - new version * Sun Nov 27 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.21-alt1 - new version * Sat Oct 22 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.20-alt1 - new version * Sun Sep 11 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.19-alt1 - new version * Mon Aug 15 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.18-alt1 - new version * Fri Jul 15 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.17-alt1 - new version * Mon Jun 13 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.16-alt1 - new version * Tue May 10 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.15-alt2 - bugfix: switch to new format of defines * Sun May 08 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.15-alt1 - new version * Fri May 06 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.14-alt1 - new version * Wed Mar 16 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.13-alt1 - new version * Thu Feb 24 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.12-alt3 - support for data in lowercase - fheroes2-0.9.12-fix-4997.patch * Wed Feb 23 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.12-alt2 - properly set CONFIGURE_FHEROES2_DATA * Fri Feb 11 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.12-alt1 - new version - added translations (closes: #42001) - python3 support (closes: #42002) * Sun Jan 09 2022 Igor Vlasenko <viy@altlinux.org> 2:0.9.11-alt2 - XDG_DATA_DIR migration - random-skills.patch - added example fheroes2-data.spec * Fri Dec 24 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.11-alt1 - new version * Tue Dec 07 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.10-alt1 - new version * Sat Nov 13 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.9-alt1 - new version * Fri Oct 08 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.8-alt1 - new version * Fri Aug 13 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.6-alt1 - new version * Mon Jul 12 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.5-alt1 - new version * Sat Jun 26 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.4-alt1 - new version * Tue May 04 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.3-alt1 - new version * Sat Apr 03 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.2-alt1 - new version * Mon Mar 15 2021 Igor Vlasenko <viy@altlinux.org> 2:0.9.1-alt1 - new version * Thu Feb 04 2021 Igor Vlasenko <viy@altlinux.ru> 2:0.9-alt1 - new version * Wed Dec 23 2020 Igor Vlasenko <viy@altlinux.ru> 2:0.8.4-alt1.20201223 - new version * Thu Nov 12 2020 Igor Vlasenko <viy@altlinux.ru> 2:0.8.3-alt1.20201104 - new version * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 2:0.8.2-alt1.20201004 - new version * Thu Sep 24 2020 Igor Vlasenko <viy@altlinux.ru> 2:0.8.1-alt1.20200904 - upstream re-released as 0.8.1 * Wed Sep 02 2020 Igor Vlasenko <viy@altlinux.ru> 1:0.8.5-alt1.20200902 - new version * Wed Aug 05 2020 Igor Vlasenko <viy@altlinux.ru> 1:0.8-alt2.20200726 - added check of screen size - sound=off by default * Tue Aug 04 2020 Igor Vlasenko <viy@altlinux.ru> 1:0.8-alt1.20200726 - new version * Sun Nov 26 2017 Igor Vlasenko <viy@altlinux.ru> 20161219-alt1.svn3279 - picked up from orphaned - updated to the latest commit (closes: #32906) * Wed Dec 24 2014 Andrew Clark <andyc@altlinux.org> 20131009-alt1.svn3269 - version update to 20131009-alt1.svn3269 * Sun Aug 31 2014 Andrew Clark <andyc@altlinux.org> 20131009-alt1.svn3225 - version update 20131009-alt1.svn3225 * Sun Apr 6 2014 Andrew Clark <andyc@altlinux.org> 20130303-alt1.svn3194 - version update 20130303-alt1.svn3194 * Sun Dec 22 2013 Andrew Clark <andyc@altlinux.org> 20130303-alt1.svn3190 - version update 20130303-alt1.svn3190 * Wed Jul 24 2013 Andrew Clark <andyc@altlinux.org> 20130303-alt1.svn3112 - version update 20130303-alt1.svn3112 * Sun May 26 2013 Andrew Clark <andyc@altlinux.org> 20130303-alt1.svn3097 - version update 20130303-alt1.svn3097 * Sat Apr 13 2013 Andrew Clark <andyc@altlinux.org> 20130303-alt1.svn3061 - version update 20130303-alt1.svn3061 * Wed Mar 13 2013 Andrew Clark <andyc@altlinux.ru> 20130303-alt1.svn3036 - version update 20130303-alt1.svn3036 * Fri Feb 22 2013 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2982 - version update 20120301-alt1.svn2982 * Sat Jan 26 2013 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2967 - version update 20120301-alt1.svn2967 * Tue Dec 18 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2964 - version update 20120301-alt1.svn2964 * Thu Nov 1 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2951 - version update 20120301-alt1.svn2951 * Wed Oct 3 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2886 - version update 20120301-alt1.svn2886 * Thu Aug 30 2012 Michael Shigorin <mike@altlinux.org> 20120301-alt1.svn2867.1 - actually use WITH_AI=simple (closes: #27151; see also SF#3467445) * Wed Aug 29 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2867 - version update 20120301-alt1.svn2867 * Sat Jun 30 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2865 - version update 20120301-alt1.svn2865 * Sun Jun 10 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2862 - version update 20120301-alt1.svn2862 * Mon Apr 30 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2857 - version update 20120301-alt1.svn2857 * Sat Feb 18 2012 Andrew Clark <andyc@altlinux.ru> 20120301-alt1.svn2788 - version update 20120301-alt1.svn2788 * Sat Feb 18 2012 Andrew Clark <andyc@altlinux.ru> 20110313-alt1.svn2739 - version update 20110313-alt1.svn2739 * Sat Dec 31 2011 Andrew Clark <andyc@altlinux.ru> 20110313-alt1.svn2732 - version update 20110313-alt1.svn2732 * Sun Nov 20 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2713 - version update to 20110313-alt1.svn2713 * Sun Nov 13 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2699 - version update to 20110313-alt1.svn2699 * Sun Sep 25 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2593 - version update to 20110313-alt1.svn2593 * Thu Sep 1 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2504 - version update to 20110313-alt1.svn2504 * Sun Aug 7 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2438 - version update to 20110313-alt1.svn2438 * Sun Jul 10 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2399 - version update to 20110313-alt1.svn2399 * Sat Jun 4 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2363 - version update to 20110313-alt1.svn2363 * Sat Apr 9 2011 Andrew Clark <andyc@altlinux.org> 20110313-alt1.svn2350 - initial build for ALT. |