Package desmume: 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 | Name: desmume Version: 0.9.11 Release: alt3 Summary: A Nintendo DS emulator Group: Emulators License: GPLv2+ Url: http://desmume.org/ # http://downloads.sourceforge.net/%%name/%%name-%%version.tar.gz Source: %name-%version.tar # Do not look into builddir Patch: %name-0.9-dontlookinbuilddir.patch Patch1: %name-0.9.11-alt-c++-compat.patch Patch2: %name-0.9.11-alt-gcc-8.patch BuildRequires: libgtkglext-devel BuildRequires: libglade-devel BuildRequires: libopenal-devel BuildRequires: liblua5-devel BuildRequires: zziplib-devel BuildRequires: gettext BuildRequires: intltool BuildRequires: gcc-c++ BuildRequires: desktop-file-utils Requires: icon-theme-hicolor BuildPreReq: chrpath %package glade Summary: A Nintendo DS emulator (Glade GUI version) Group: Emulators %package cli Summary: A Nintendo DS emulator (CLI version) Group: Emulators %description DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games. %description glade DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games. This is the GTK/Glade version. %description cli DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games. This is the CLI version. %prep %setup %patch -p1 %patch1 -p2 %patch2 -p2 # Fix end-of-line encoding sed -i 's/\r//' AUTHORS # Fix file encoding for txtfile in ChangeLog AUTHORS do iconv --from=ISO-8859-1 --to=UTF-8 $txtfile > tmp touch -r $txtfile tmp mv tmp $txtfile done # Fix premissions find src -name '*.cpp' -exec chmod -v 644 '{}' \; find src -name '*.h' -exec chmod -v 644 '{}' \; # Fix glade path sed -i 's|gladedir = $(datadir)/desmume/glade|gladedir = $(datadir)/desmume-glade/|g' src/gtk-glade/Makefile.{am,in} # We need a different icon for desmume-glade sed -i 's|Icon=DeSmuME|Icon=DeSmuME-glade|g' src/gtk-glade/desmume-glade.desktop # Fix gettext package name sed -i 's|GETTEXT_PACKAGE=desmume|GETTEXT_PACKAGE=desmume-glade|g' configure{,.ac} %build %add_optflags -fpermissive #autoreconf %configure --enable-openal --enable-glade %make_build %install %makeinstall_std # Remove installed icon rm -f %buildroot%_datadir/pixmaps/DeSmuME.xpm # Install icons mkdir -p %buildroot%_datadir/icons/hicolor/32x32/apps install -m 644 src/gtk/DeSmuME.xpm %buildroot%_datadir/icons/hicolor/32x32/apps/ install -m 644 src/gtk/DeSmuME.xpm %buildroot%_datadir/icons/hicolor/32x32/apps/DeSmuME-glade.xpm # Rename desktop files and fix categories mkdir -p %buildroot%_datadir/applications desktop-file-install \ --delete-original \ --vendor altlinux \ --remove-key Version \ --remove-category GNOME \ --remove-category GTK \ --dir %buildroot%_datadir/applications \ %buildroot%_datadir/applications/%name.desktop desktop-file-install \ --delete-original \ --vendor altlinux \ --remove-key Version \ --remove-category GNOME \ --remove-category GTK \ --dir %buildroot%_datadir/applications \ %buildroot%_datadir/applications/%name-glade.desktop for i in %buildroot%_libdir/*.so %buildroot%_libdir/desmume/*.so \ %buildroot%_bindir/* do chrpath -d $i ||: done %find_lang %name-glade %files %_bindir/%name %_datadir/icons/hicolor/32x32/apps/DeSmuME.xpm %_datadir/applications/altlinux-%name.desktop %_mandir/man1/%name.1* %doc AUTHORS ChangeLog COPYING README README.LIN %files glade -f %name-glade.lang %_bindir/%name-glade %_datadir/%name-glade %_datadir/icons/hicolor/32x32/apps/DeSmuME-glade.xpm %_datadir/applications/altlinux-%name-glade.desktop %_mandir/man1/%name-glade.1* %doc AUTHORS ChangeLog COPYING README README.LIN %files cli %_bindir/%name-cli %_mandir/man1/%name-cli.1* %doc AUTHORS ChangeLog COPYING README README.LIN %changelog * Tue Feb 12 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 0.9.11-alt3 - NMU: fixed build with gcc-8. * Fri Jun 22 2018 Grigory Ustinov <grenka@altlinux.org> 0.9.11-alt2 - Fixed FTBFS (corrected build requires). * Tue Feb 06 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.9.11-alt1 - Updated to version 0.9.11 * Tue Jun 05 2012 Ilya Mashkin <oddity@altlinux.ru> 0.9.8-alt1 - Build for Sisyphus * Thu Apr 26 2012 Andrea Musuruane <musuruan@gmail.com> 0.9.8-1 - Updated to upstream version 0.9.8 * Sun Apr 15 2012 Andrea Musuruane <musuruan@gmail.com> 0.9.7-5 - Fixed microphone support (BZ #2231) - Enabled LUA engine * Sat Mar 17 2012 Andrea Musuruane <musuruan@gmail.com> 0.9.7-4 - Fixed FTBFS for F17+ * Sat Mar 17 2012 Andrea Musuruane <musuruan@gmail.com> 0.9.7-3 - Fixed an error in desmume-glade.desktop (BZ #2229) * Fri Mar 02 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.9.7-2 - Rebuilt for c++ ABI breakage * Sun Feb 06 2011 Andrea Musuruane <musuruan@gmail.com> 0.9.7-1 - Updated to upstream version 0.9.7 * Sun Jun 06 2010 Andrea Musuruane <musuruan@gmail.com> 0.9.6-1 - Updated to upstream version 0.9.6-1 - Fixed Source0 URL * Sun Dec 06 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.5-2 - Added a patch from upstream to compile on big endian systems (SF #2909694) * Sun Dec 06 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.5-1 - Updated to upstream version 0.9.5 - Updated icon cache scriptlets * Fri Jul 24 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.4-1 - Updated to upstream version 0.9.4 - Added a fix to compile under gcc 4.4 (SF #2819176) - Removed no longer needed patches - Removed no longer needed Debian man pages - Cosmetic changes * Thu Apr 30 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.2-2 - Added a patch from upstream to fix IO Regs menu crash (SF #2781065) * Sun Apr 19 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.2-1 - Updated to upstream version 0.9.2 - Removed no longer needed patch to compile with gcc 4.4 - Added a patch from upstream to compile on 64 bit systems (SF #2755952) * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.9.1-3 - rebuild for new F11 features * Sat Feb 14 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.1-2 - Made a patch to compile with gcc 4.4 (SF #2599049) * Fri Feb 13 2009 Andrea Musuruane <musuruan@gmail.com> 0.9.1-1 - Updated to upstream version 0.9.1 * Sun Jan 04 2009 Andrea Musuruane <musuruan@gmail.com> 0.9-1 - Updated to upstream version 0.9 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.8-2 - rebuild for buildsys cflags issue * Wed Apr 23 2008 Andrea Musuruane <musuruan@gmail.com> 0.8-1 - Updated to upstream version 0.8 * Sun Sep 08 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.3-4 - Using debian sources because many things were missing from upstream - Removed no longer needed automake and autoconf from BR - Updated icon cache scriptlets to be compliant to new guidelines * Tue Aug 21 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.3-3 - Added missing automake libtool to BR * Mon Aug 20 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.3-2 - Added missing autoconf to BR * Sat Aug 18 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.3-1 - Updated to upstream version 0.7.3 - Added man pages from Debian - Updated License tag from GPL to GPLv2+ - Removed %%{?dist} tag from changelog * Sun Jun 24 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.1-1 - Updated to upstream version 0.7.1 - Updated icon cache scriptlets to be compliant to new guidelines * Thu Jun 07 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.0-2 - Added a patch from Ian Chapman to remove the buggy tools menu which only contains IO regs which frequently crashes desmume on x86_64 - Added a patch from Ian Chapman to make desmume-glade ONLY look in the installed location for it's .glade files and not to use the "uninstalled" location - Shortened description - Better use of %%{name} macro * Fri May 25 2007 Andrea Musuruane <musuruan@gmail.com> 0.7.0-1 - Updated to upstrem version 0.7.0 * Sun Mar 25 2007 Andrea Musuruane <musuruan@gmail.com> 0.6.0-1 - Initial release for Dribble |