Package pipepanic: 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 | Group: Games/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-fedora-compat BuildRequires: /usr/bin/desktop-file-install # END SourceDeps(oneline) %define fedora 27 # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: pipepanic Version: 0.1.3 Release: alt4_24 Summary: A pipe connecting game License: GPLv2+ URL: http://www.users.waitrose.com/~thunor/pipepanic/ Source0: http://www.users.waitrose.com/~thunor/pipepanic/dload/%{name}-%{version}-source.tar.gz Source1: pipepanic.desktop # Use standard Fedora CFLAGS to compile Patch0: pipepanic-0.1.3-Makefile.patch # Hans de Goede # Set a window title and icon Patch1: pipepanic-0.1.3-window-title.patch # Miroslav Lichvar # Fix wrong score with long pipes (BZ #847344) Patch2: pipepanic-0.1.3-score.patch BuildRequires: gcc BuildRequires: libSDL-devel BuildRequires: desktop-file-utils BuildRequires: ImageMagick-tools Requires: icon-theme-hicolor Source44: import.info %description Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. %prep %setup -q -n %{name}-%{version}-source %patch0 -p0 %patch1 -p1 %patch2 -p1 # Fix file encoding iconv --from=ISO-8859-1 --to=UTF-8 COPYING-ARTWORK > COPYING-ARTWORK.conv mv COPYING-ARTWORK.conv COPYING-ARTWORK # Fix DATADIR sed -i 's:/opt/QtPalmtop/share/pipepanic/:%{_datadir}/%{name}/:' main.h %build %make_build \ CFLAGS="%{optflags}" \ LDFLAGS="%{__global_ldflags}" %install # Install binary mkdir -p %{buildroot}%{_bindir} install -m 755 pipepanic %{buildroot}%{_bindir} # Install data files mkdir -p %{buildroot}%{_datadir}/%{name} install -m 644 *.bmp %{buildroot}%{_datadir}/%{name}/ # Install window icon (needed by patch1) convert PipepanicIcon32.png bmp3:- | \ convert - -fill '#FF00FF' -opaque black -colors 256 \ -compress none bmp3:icon.bmp install -m 644 icon.bmp %{buildroot}%{_datadir}/%{name}/ # Install icons mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps install -m 644 PipepanicIcon16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png install -m 644 PipepanicIcon32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png install -m 644 PipepanicIcon48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png install -m 644 PipepanicIcon64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png # Install desktop file mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} %files %{_bindir}/pipepanic %{_datadir}/%{name} %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %if 0%{?fedora} && 0%{?fedora} < 19 %{_datadir}/applications/%{name}.desktop %else %{_datadir}/applications/%{name}.desktop %endif %doc AUTHORS ChangeLog README %doc --no-dereference COPYING COPYING-ARTWORK %changelog * Mon May 07 2018 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_24 - update to new release by fcimport * Sat Feb 03 2018 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_22 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_19 - update to new release by fcimport * Wed Feb 17 2016 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_18 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_17 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_16 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_15 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_14 - update to new release by fcimport * Wed Feb 20 2013 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_13 - update to new release by fcimport * Mon Aug 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_11 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_10 - update to new release by fcimport * Fri Mar 02 2012 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt4_9 - rebuild with fixed sourcedep analyser (#27020) * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt3_9 - update to new release by fcimport * Sat May 21 2011 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt3_8 - rebuild to fix .desktop permissions * Thu May 19 2011 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt2_8 - rebuild with new rpm desktop cleaner * Wed Feb 16 2011 Igor Vlasenko <viy@altlinux.ru> 0.1.3-alt1_8 - converted from Fedora by srpmconvert script |