Пакет spectrum-fuse: 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 | %define oname fuse Name: spectrum-fuse Version: 1.5.8 Release: alt0.3 Summary: The Free Unix Spectrum Emulator License: GPLv2 Group: Emulators Url: http://fuse-emulator.sourceforge.net/ Vcs: https://git.code.sf.net/p/fuse-emulator/fuse Packager: ZX Spectrum Development Team <spectrum@packages.altlinux.org> Source: %name-%version.tar Source3: README.z88sdk BuildRequires: glibc-devel BuildRequires: libalsa-devel BuildRequires: libgtk+3-devel # libgcrypt: the ability to digitally sign RZX files (note that Fuse requires version 1.1.42 or later). BuildRequires: libgcrypt-devel # libjsw: allow joystick input to be used (not required for joystick emulation). BuildRequires: libjsw-devel # libxml2: the ability to load and save Fuse's current configuration. BuildRequires: libxml2-devel # libpng: the ability to save screenshots. BuildRequires: libpng-devel # zlib: support for compressed RZX files. BuildRequires: zlib-devel # bzip2: support for certain compressed files. BuildRequires: bzip2-devel # libaudiofile: support for loading from .wav files. BuildRequires: libaudiofile-devel BuildRequires: glib2-devel BuildRequires: pkgconfig(libspectrum) >= 1.4.5 BuildRequires: xorg-cf-files BuildRequires: flex BuildRequires: gcc-c++ Provides: fuse-emulator = %version %description Fuse is a Sinclair ZX Spectrum emulator. It supports several models (including the 128), with quite faithful emulation of the display and sound. %prep %setup -q -n %name-%version %ifarch %e2k # LCC crashes with -O3 by default sed -i "/scaler_AdvMame3x/i __attribute__((optimize(2)))" ui/scaler/scalers.c %endif sed -e "s/=fuse/=spectrum-fuse/" -e "s/=Fuse/=Spectrum Fuse/" -e "/Version/a Encoding=UTF-8" -i data/fuse.desktop.in find -name "Makefile.am" -exec sed -e "s/fuse_/spectrum_fuse_/" -e "s/= fuse/= spectrum-fuse/" -i {} \; sed -e "s/\[fuse]/[spectrum-fuse]/g" -i configure.ac sed -e "s/\(^\|\" \|B \"\?\|IR \|TH \)fuse/\1spectrum\\\\-fuse/" -i man/fuse.1 %build %autoreconf %configure \ --disable-ui-joystick \ --enable-joystick \ --with-gtk \ --enable-desktop-integration %make_build %install export DESTDIR=%buildroot %makeinstall install -D -m 0644 %buildroot/%buildroot/%_man1dir/fuse.1 %buildroot/%_man1dir/spectrum-fuse.1 rm %buildroot/%buildroot/%_man1dir/fuse.1 mv %buildroot/%_desktopdir/%oname.desktop %buildroot%_desktopdir/%name.desktop mv %buildroot/usr/share/mime/packages/fuse.xml %buildroot/usr/share/mime/packages/spectrum-fuse.xml find %buildroot%buildroot -type f | while read f; do nf=$(sed "s|%buildroot||" <<< "$f"); echo "== $nf"; install -D -m 644 "$f" "$nf"; rm -f "$f"; done find %buildroot -name 'fuse.png' -type f | while read f; do nf=$(sed "s|fuse.png|spectrum-fuse.png|" <<< "$f"); echo "== $nf"; install -D -m 644 "$f" "$nf"; rm -f "$f"; done install -pm0644 %{SOURCE3} . chmod +x %buildroot%_bindir/%name %files %doc README.z88sdk %doc README AUTHORS COPYING ChangeLog THANKS %_bindir/%name %_man1dir/* %_desktopdir/* %_datadir/%name %_datadir/mime/* %_iconsdir/hicolor/*/apps/spectrum-fuse.png %_iconsdir/hicolor/*/mimetypes/application-x-spectrum.png %changelog * Mon May 08 2023 Andrey Cherepanov <cas@altlinux.org> 1.5.8-alt0.3 - Set executable bit to program (ALT #38352). * Fri Oct 22 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 1.5.8-alt0.2 - Fixed build for Elbrus. * Fri Dec 11 2020 Pavel Skrylev <majioa@altlinux.org> 1.5.8-alt0.1 - ^ 1.5.7 -> 1.5.8[gamma] - + support for zlib, bzip2, libaudiofile * Wed Dec 12 2018 Pavel Skrylev <majioa@altlinux.org> 1.5.7-alt1 - Removed sources from gear. - Cleaned up the spec. - Bump to 1.5.7. * Wed Sep 11 2013 Vitaly Lipatov <lav@altlinux.ru> 1.1.1-alt2 - update buildreqs * Sun Aug 04 2013 Vitaly Lipatov <lav@altlinux.ru> 1.1.1-alt1 - new version 1.1.1 (with rpmrb script) * Sat Dec 29 2012 Igor Vlasenko <viy@altlinux.ru> 1.0.0.1a-alt1 - new version - added fuse-emulator-zlib.patch and README.z88sdk from Fedora * Wed Oct 03 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0.1-alt1.qa2 - Rebuilt with libpng15 * Wed Dec 02 2009 Repocop Q. A. Robot <repocop@altlinux.org> 0.8.0.1-alt1.qa1 - NMU (by repocop): the following fixes applied: * update_menus for spectrum-fuse * postclean-05-filetriggers for spec file * Sun Jul 29 2007 Vitaly Lipatov <lav@altlinux.ru> 0.8.0.1-alt1 - add patches from PLD, add icon from Fedora - add desktop file, rename binary to spectrum-fuse * Sun May 27 2007 Vitaly Lipatov <lav@altlinux.ru> 0.8.0.1-alt0.1 - new version 0.8.0.1 (with rpmrb script) * Mon Jun 05 2006 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt2 - fixes for GCC4 - cleanup: fix URL, Source, remove COPYING * Fri Feb 11 2005 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt1.1 - add buildreq for libspectrum * Sun Feb 06 2005 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt1 - NMU: new version - rename to spectrum-fuse (was conflicts with fuse as userspace fs) - add menu file - update buildreq * Tue Sep 30 2003 Alexey Tourbin <at@altlinux.ru> 0.6.1-alt1 - initial revision |