Пакет foobillardplus: 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 | Name: foobillardplus Version: 3.43 Release: alt2 Summary: A free 3D OpenGL billiard game License: GPLv2 Group: Games/Arcade Url: http://foobillardplus.sourceforge.net Source: %name-%version.tar.xz Source1: %name.6 Source2: intro-nomusic.png Patch0: foobillardplus-3.43-mga-install-dir-in-configure.in.patch Patch1: foobillardplus-3.43-mga-user-settings-in-XDG_DATA_HOME.patch Packager: Artyom Bystrov <arbars@altlinux.org> BuildRequires: imake libGL-devel libGLU-devel libXt-devel libpng-devel xorg-cf-files libSDL-devel libSDL_net-devel libSDL_mixer-devel libfreetype-devel Requires: fonts-ttf-dejavu Obsoletes: foobillard < 3.0a-14 Provides: foobillard %description FooBillard++ is an advanced 3D OpenGL billiard game based on the original foobillard 3.0a sources from Florian Berger. You can play it with one or two players or against the computer. The music has been removed because of its restrictive CC BY-NC-ND license. %prep %setup %patch0 -p1 %patch1 -p1 # Use system browser sed -i 's/firefox/www-browser/g' data/browser.sh %ifarch %e2k # strip UTF-8 BOM for lcc < 1.24 find -type f -print0 -name '*.c' -o -name '*.h' | xargs -r0 sed -ri 's,^\xEF\xBB\xBF,,' %endif %build %autoreconf export CFLAGS="%optflags -fgnu89-inline" %configure %make %install # make install instructions are kind of broken install -pD -m755 src/foobillardplus %buildroot%_gamesbindir/%name install -d %buildroot%_gamesdatadir/%name cp -a data/ %buildroot%_gamesdatadir/%name/ # Fixed intro image without the removed music credits cp -a %SOURCE2 %buildroot%_gamesdatadir/%name/data/intro.png # icon and man page install -pD -m644 foobillardplus.png %buildroot%_iconsdir/hicolor/128x128/apps/%name.png install -pD -m644 %SOURCE1 %buildroot%_man6dir/%name.6 # symlink to DejaVu fonts ln -s %_datadir/fonts/ttf/dejavu/DejaVuSans.ttf \ %buildroot%_gamesdatadir/%name/data/DejaVuSans.ttf ln -s %_datadir/fonts/ttf/dejavu/DejaVuSans-Bold.ttf \ %buildroot%_gamesdatadir/%name/data/DejaVuSans-Bold.ttf # desktop entry install -d %buildroot%_desktopdir cat << EOF > %buildroot%_desktopdir/%name.desktop [Desktop Entry] Name=FooBillard++ GenericName=3D OpenGL billiard game GenericName[ru]=3D бильярд GenericName[de]=3D-OpenGL-Billard-Spiel GenericName[fr]=Jeu de billard en 3D OpenGL Comment=3D OpenGL billiard game Comment[de]=3D-OpenGL-Billard-Spiel Comment[fr]=Jeu de billard en 3D OpenGL Comment[ru]=Игра в бильярд на базе OpenGL Exec=%name Icon=%name Type=Application Categories=Game;Simulation; EOF %files %doc AUTHORS COPYING ChangeLog README %_gamesbindir/%name %_gamesdatadir/%name/ %_desktopdir/%name.desktop %_iconsdir/hicolor/128x128/apps/%name.png %_man6dir/%name.6* %changelog * Wed Mar 25 2020 Grigory Ustinov <grenka@altlinux.org> 3.43-alt2 - Made some fixes. - E2K: strip UTF-8 BOM for lcc < 1.24 (thx to mike@) - minor spec cleanup (thx to mike@) * Tue Mar 24 2020 Artyom Bystrov <arbars@altlinux.org> 3.43-alt1 - Bring back package to Sisyphus * Tue Jun 07 2016 Igor Vlasenko <viy@altlinux.ru> 3.43-alt1_0.svn1704 - converted for ALT Linux by srpmconvert tools |