Package blockout2: 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 | %define _name BlockOutII Name: blockout2 Version: 2.5 Release: alt2 Summary: 3D Tetris game Summary(ru_RU.UTF-8): Трехмерный вариант игры Тетрис License: GPL Group: Games/Arcade Url: http://www.blockout.net/blockout2/ Source: http://downloads.sourceforge.net/blockout/bl25-src.tar.gz Source1: http://downloads.sourceforge.net/blockout/bl25-linux-x86.tar.gz Source2: %name.desktop # fc patches Patch0: %_name-2.3-syslibs.patch Patch1: %_name-2.3-bl2Home.patch Patch2: %_name-2.3-restore-resolution.patch Patch3: %_name-2.3-libpng15.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1037001 Patch4: %_name-2.3-format-security.patch Requires: %name-data = %version-%release BuildRequires: gcc-c++ libSDL-devel libSDL_mixer-devel BuildRequires: libpng-devel zlib-devel libalsa-devel BuildRequires: %_bindir/convert desktop-file-utils dos2unix %description BlockOut II is a free adaptation of the original BlockOut DOS game edited by California Dreams in 1989. BlockOut II has the same features than the original game with few graphic improvements. The score calculation is also nearly similar to the original game. BlockOut II has been designed by an addicted player for addicted players. BlockOut II is an open source project available for both Windows and Linux. %description -l ru_RU.UTF-8 BlockOut II является свободным клоном игры BlockOut для DOS, выпущенной California Dreams в 1989 году. BlockOut II содержит все возможности классической игры и улучшенную графику. Подсчет очков также похож на оригинальную игру. %package data Group: Games/Arcade Summary: Data files for BlockOut II Summary(ru_RU.UTF-8): Данные для BlockOut II BuildArch: noarch %description data BlockOut II is a free adaptation of the original BlockOut DOS game edited by California Dreams in 1989. BlockOut II has the same features than the original game with few graphic improvements. The score calculation is also nearly similar to the original game. BlockOut II has been designed by an addicted player for addicted players. BlockOut II is an open source project available for both Windows and Linux. This package provides arch-independent data for BlockOut II. %description -l ru_RU.UTF-8 data BlockOut II является свободным клоном игры BlockOut для DOS, выпущенной California Dreams в 1989 году. BlockOut II содержит все возможности классической игры и улучшенную графику. Подсчет очков также похож на оригинальную игру. %prep %setup -n BL_SRC -a1 cp %SOURCE2 . %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 dos2unix BlockOut/README.txt # Remove bundled libraries rm -rf ImageLib/src/png/{png,zlib} %build pushd ImageLib/src %make_build CFLAGS="$RPM_OPT_FLAGS -Dlinux -c" \ CXXFLAGS="$RPM_OPT_FLAGS -Dlinux -c" popd pushd BlockOut %make_build \ CXXFLAGS="$RPM_OPT_FLAGS -Dlinux `sdl-config --cflags` -I../ImageLib/src -c" \ ADD_LIBS="-L../ImageLib/src -limagelib -lpng -lz" popd for r in 16 32 48; do convert -scale $r BlockOut/block_icon.ico %_name-"$r"x"$r".png done # GraphicsMagick lacks svg support #convert -scale 48 BlockOut/block_icon.ico %_name.svg %install mkdir -p %buildroot{%_bindir,%_desktopdir,%_datadir/%name/{images,sounds}} install -m 755 BlockOut/blockout %buildroot%_bindir/%name install -p -m 644 blockout/images/* %buildroot%_datadir/%name/images install -p -m 644 blockout/sounds/* %buildroot%_datadir/%name/sounds desktop-file-install --dir %buildroot%_desktopdir %SOURCE2 mkdir -p %buildroot%_datadir/icons/hicolor/{16x16,32x32,48x48,scalable}/apps install -p -m 644 %_name-16x16.png \ %buildroot%_datadir/icons/hicolor/16x16/apps/%_name.png install -p -m 644 %_name-32x32.png \ %buildroot%_datadir/icons/hicolor/32x32/apps/%_name.png install -p -m 644 %_name-48x48.png \ %buildroot%_datadir/icons/hicolor/48x48/apps/%_name.png #install -p -m644 %_name.svg \ # %buildroot%_iconsdir/hicolor/scalable/apps/%_name-symbolic.svg %files %_bindir/* %doc BlockOut/README.txt %files data %_datadir/%name/ %_desktopdir/%name.desktop %_datadir/icons/hicolor/*/apps/%_name.png %changelog * Fri Mar 30 2018 Yuri N. Sedunov <aris@altlinux.org> 2.5-alt2 - new noarch -data subpackage - removed wrapper, fixed bl2Home in bl2Home.patch - replaced ImageMagick builddep by /usr/bin/convert - updated desktop-file - TODO: symbolic icon (GraphicsMagick bug) - TODO: appdata.xml * Sat Nov 29 2014 Yuri N. Sedunov <aris@altlinux.org> 2.5-alt1 - 2.5 - applied fc patchset * Tue Mar 29 2011 Denis Kirienko <dk@altlinux.ru> 2.4-alt4 - Removed dependency to libmesa-devel * Sun Nov 23 2008 Denis Kirienko <dk@altlinux.ru> 2.4-alt3 - Spec cleanup * Tue Jan 15 2008 Denis Kirienko <dk@altlinux.ru> 2.4-alt2 - Fixed description - Fixed bug with wrong dates at x86_64 * Sat Jan 12 2008 Denis Kirienko <dk@altlinux.ru> 2.4-alt1 - First build for Sisyphus |