Package apricots: 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 | Group: Games/Other # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install perl(Shell.pm) # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} #remove once using %%configure again %global debug_package %{nil} %define apricotsdir %{_datadir}/apricots Name: apricots Version: 0.2.6 Release: alt4_27 Summary: 2D air combat game License: GPLv2 URL: http://www.fishies.org.uk/apricots.html Source0: http://www.fishies.org.uk/apricots-%{version}.tar.gz Source1: apricots.png #Icon created from screenshot on website Source2: apricots.desktop Patch0: apricots-0.2.6-alut-apricots.patch Patch1: apricots-0.2.6-alut-sampleio.patch Patch2: apricots-0.2.6-alut-configure.patch # alut patches sent upstream. Patch3: apricots-0.2.6-path.patch #Patch4: apricots-0.2.6-alincludes.patch BuildRequires: gcc gcc-c++ BuildRequires: libSDL-devel BuildRequires: libalut-devel BuildRequires: desktop-file-utils BuildRequires: libopenal-devel BuildRequires: autoconf automake ExcludeArch: ppc64le aarch64 Source44: import.info %description It's a game where you fly a little plane around the screen and shoot things and drop bombs on enemy targets, and it's meant to be quick and fun. %prep %setup -q chmod -x apricots/*.cpp chmod -x apricots/*.h chmod -x AUTHORS chmod -x ChangeLog chmod -x COPYING chmod -x README chmod -x TODO %patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p0 # e2k support cp -at admin -- \ /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess #%patch4 -p0 %build #Use %%configure once --as-needed is fixed, and fix debug at top of spec. ./configure --prefix=%{_prefix} %make_build %install mkdir -p %{buildroot}%{_bindir} install -m 755 apricots/apricots %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/apricots install -m 644 apricots/*.wav %{buildroot}%{_datadir}/apricots mkdir -p %{buildroot}%{_sysconfdir} install -m 644 apricots/apricots.cfg %{buildroot}%{_sysconfdir} ln -s ../../..%{_sysconfdir}/apricots.cfg %{buildroot}%{_datadir}/apricots/apricots.cfg install -m 644 apricots/*.psf %{buildroot}%{_datadir}/apricots install -m 644 apricots/*.shapes %{buildroot}%{_datadir}/apricots mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE2} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps install -p -m 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps %files %doc AUTHORS ChangeLog COPYING README TODO %{_bindir}/apricots %{_datadir}/apricots %{_datadir}/applications/apricots.desktop %{_datadir}/icons/hicolor/24x24/apps/apricots.png %config(noreplace) %{_sysconfdir}/apricots.cfg %changelog * Sat Dec 07 2019 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt4_27 - restored e2k patch * Wed Nov 20 2019 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt3_27 - update to new release by fcimport * Sat Jun 29 2019 Michael Shigorin <mike@altlinux.org> 0.2.6-alt3_25 - fix build on new arches * Fri Mar 15 2019 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_25 - update to new release by fcimport * Wed Oct 10 2018 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_23 - update to new release by fcimport * Sat Feb 03 2018 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_20 - update to new release by fcimport * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_19 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_17 - update to new release by fcimport * Mon Feb 15 2016 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_16 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_15 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_13 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_12 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_11 - update to new release by fcimport * Mon Feb 11 2013 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_10 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_9 - update to new release by fcimport * Wed May 09 2012 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_8 - update to new release by fcimport * Fri Mar 02 2012 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt2_7 - rebuild with fixed sourcedep analyser (#27020) * Fri Jan 20 2012 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt1_7 - update to new release by fcimport * Wed Feb 16 2011 Igor Vlasenko <viy@altlinux.ru> 0.2.6-alt1_6 - converted from Fedora by srpmconvert script |