Пакет moon-buggy: 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 | Group: Games/Other # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install texinfo # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # Enable oldstyle to have a nearly nothing requiring package after rebuilding %global oldstyle 0 Summary: Drive and jump with some kind of car across the moon Name: moon-buggy Version: 1.0.51 Release: alt2_24 License: GPL+ URL: http://seehuhn.de/pages/%{name} Source0: http://seehuhn.de/media/programs/%{name}-%{version}.tar.gz Source1: http://seehuhn.de/media/programs/%{name}-sound-%{version}.tar.gz Source2: %{name}.desktop Source3: %{name}-sound.desktop Patch0: moon-buggy-1.0.51-pause.patch Patch1: moon-buggy-1.0.51-sound.patch %if 0%{?rhel} && 0%{?rhel} <= 7 %endif BuildRequires: gcc libncurses++-devel libncurses-devel libncursesw-devel libtic-devel libtinfo-devel, makeinfo %if !%{oldstyle} BuildRequires: libesd-devel, desktop-file-utils, autoconf, automake %endif Source44: import.info %description Moon-buggy is a simple character graphics game where you drive some kind of car across the moon's surface. Unfortunately there are dangerous craters there. Fortunately your car can jump over them! The game has some resemblance of the classic arcade game moon-patrol which was released in 1982. A clone of this game was relased for the Commodore C64 in 1983. The present, ASCII art version of moon-buggy was written many years later by Jochen Voss. %prep %setup -q -a 1 %patch0 -p1 -b .pause %if !%{oldstyle} %patch1 -p1 -b .sound mv -f %{name}-%{version}/* . autoreconf -f -i %endif %build %configure --sharedstatedir=%{_localstatedir}/games %make_build %install make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install # Create zero-sized highscore file touch $RPM_BUILD_ROOT%{_localstatedir}/games/%{name}/mbscore # Install working *.desktop files and an icon %if !%{oldstyle} desktop-file-install --vendor "" --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} desktop-file-install --vendor "" --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3} install -D -p -m 644 %{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png %endif # Some file cleanups rm -f $RPM_BUILD_ROOT%{_infodir}/dir # Convert everything to UTF-8 iconv -f iso-8859-1 -t utf-8 -o ChangeLog.utf8 ChangeLog sed -i 's|\r$||g' ChangeLog.utf8 touch -c -r ChangeLog ChangeLog.utf8 mv -f ChangeLog.utf8 ChangeLog iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO sed -i 's|\r$||g' TODO.utf8 touch -c -r TODO TODO.utf8 mv -f TODO.utf8 TODO %files %doc --no-dereference COPYING %doc ANNOUNCE AUTHORS ChangeLog README THANKS %if !%{oldstyle} %doc README.sound %{_datadir}/%{name}/ %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}-sound.desktop %endif %attr(2711,root,games) %{_bindir}/%{name} %{_mandir}/man6/%{name}.6* %{_infodir}/%{name}.info.* %attr(0775,root,games) %{_localstatedir}/games/%{name} %verify(not md5 size mtime) %config(noreplace) %attr(664,root,games) %{_localstatedir}/games/%{name}/mbscore %changelog * Sat May 25 2019 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_24 - update to new release by fcimport * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_20 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_18 - update to new release by fcimport * Tue Feb 16 2016 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_17 - update to new release by fcimport * Sun Dec 27 2015 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_16 - update to new release by fcimport * Mon Oct 19 2015 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_15 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_14 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_13 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_12 - update to new release by fcimport * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.51-alt2_10.1 - Fixed build * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_10 - update to new release by fcimport * Sun Feb 24 2013 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_9 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_7 - update to new release by fcimport * Fri Mar 02 2012 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt2_6 - rebuild with fixed sourcedep analyser (#27020) * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt1_6 - update to new release by fcimport * Mon May 23 2011 Igor Vlasenko <viy@altlinux.ru> 1.0.51-alt1_5 - converted from Fedora by srpmconvert script |