diff options
Diffstat (limited to '7w')
-rw-r--r-- | 7w/7w.spec | 122 | ||||
-rw-r--r-- | 7w/7w.svg | 152 |
2 files changed, 274 insertions, 0 deletions
diff --git a/7w/7w.spec b/7w/7w.spec new file mode 100644 index 0000000..0e0d554 --- /dev/null +++ b/7w/7w.spec @@ -0,0 +1,122 @@ +%global use_master 1 +%if 0%{use_master} +%global vername master +%else +%global vername %{version} +%endif + +# turn off debug package +%define debug_package %{nil} + +Name: 7w +Version: 0.0.1 +Release: 1%{?dist} +Summary: Ncurses-based implementation of 7 Wonders + +Group: Games/Boardgame +License: GPL2 +#OriginalURL: https://github.com/NathanRVance/7w +URL: https://gitlab.com/bgstack15/%{name} +Source0: %{URL}/-/archive/%{vername}/%{name}-%{vername}.tar.gz +Source1: %{name}.svg + +Packager: B Stack <bgstack15@gmail.com> +BuildRequires: gcc +BuildRequires: ncurses-devel +Requires: ncurses +# do not require the icon theme. the rpm can make the dirs, and it won't hurt on terminal-only systems to have the directories with just these icons. +#Requires: hicolor-icon-theme + +%description +7 Wonders is a drafting card game by Antoine Bauza and adapted for ncurses-based gameplay by Nathan Vance. Other works by the computer adaptation author include cettlers, an ncurses adapation of Settlers of Catan. + +%prep +#%%setup -n %%{name}-%%{vername} +tar -zxf %{SOURCE0} +cp -p %{SOURCE1} . + +%build +cd %{name}-* +cd Release +%make_build + +%install +pushd %{name}-* +#%%make_install +# upstream has no install instructions +install -d %{buildroot}%{_licensedir}/%{name} %{buildroot}%{_bindir} +install -m0644 LICENSE %{buildroot}%{_licensedir}/%{name}/ +install -m0755 Release/%{name} %{buildroot}%{_bindir}/ + +# desktop files +install -d %{buildroot}%{_datadir}/applications +cat <<EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop +#!/usr/bin/xdg-open +[Desktop Entry] +Name=7 Wonders +Exec=%{_bindir}/%{name} +Type=Application +StartupNotify=true +Path=%{_bindir} +Icon=%{name} +StartupWMClass=_7wonders +Comment=Drafting card game +Terminal=true +Categories=Game;BoardGame; +EOF + +# application start script +# none + +# man pages +# none + +# mimetypes +# none + +# icons +popd +for res in 16 22 24 32 48 64 96 128 256 ;do + dir=%{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps + mkdir -p ${dir} + for icon in %{name} ; do + convert ${icon}.svg -filter Lanczos -resize ${res}x${res} \ + ${dir}/${icon}.png + done +done +scalable_dir="%{buildroot}%{_datadir}/icons/hicolor/scalable/apps" +install -d "${scalable_dir}" +install -m0644 "%{name}.svg" "${scalable_dir}" + +%clean +%{__rm} -rf %{buildroot} || : + +%post +touch --no-create %{_datadir}/icons/hicolor 1>/dev/null 2>&1 || : +update-desktop-database 1>/dev/null 2>&1 || : + +%preun +# is it a final removal? +#if test "$1" = "0" ; +#then +#fi + +%postun +update-desktop-database &> /dev/null || : + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files +#%license %attr(444, -, -) NONE.txt +#%doc %attr(444, -, -) NONE.txt +%license %attr(444, -, -) %{_licensedir}/* +#%doc %attr(444, -, -) %%{_docdir}/*/* +%{_bindir}/%{name} +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/*/apps/* +#%%{_datadir}/%%{name} + +%changelog +* Fri Apr 5 2019 B Stack <bgstack15@gmail.com> - 0.0.1-1 +- Initial rpm built diff --git a/7w/7w.svg b/7w/7w.svg new file mode 100644 index 0000000..4a3aa6f --- /dev/null +++ b/7w/7w.svg @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="256" + height="256" + viewBox="0 0 67.733331 67.733331" + version="1.1" + id="svg11336" + inkscape:version="0.92.4 (unknown)" + sodipodi:docname="7w.svg"> + <title + id="title824">7w icon</title> + <defs + id="defs11330"> + <linearGradient + id="linearGradient13437" + osb:paint="solid"> + <stop + style="stop-color:#000000;stop-opacity:1;" + offset="0" + id="stop13435" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient13437" + id="linearGradient13498" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(-4.2219656,-214.66919)" + x1="14.026808" + y1="267.36665" + x2="55.823193" + y2="267.36665" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.35355339" + inkscape:cx="-254.1961" + inkscape:cy="331.19331" + inkscape:document-units="mm" + inkscape:current-layer="layer4" + showgrid="false" + units="px" + inkscape:snap-page="true" + inkscape:window-width="1920" + inkscape:window-height="1025" + inkscape:window-x="0" + inkscape:window-y="27" + inkscape:window-maximized="1" /> + <metadata + id="metadata11333"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>7w icon</dc:title> + <dc:date>2019-04-05</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>bgstack15</dc:title> + </cc:Agent> + </dc:creator> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,-229.26667)"> + <path + style="fill:#ebc845;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 127.99963 167.30536 L 33.503906 115.04492 L 33.503906 115.04492 L 10.376953 141.77734 L 69.189452 174.30469 L 128 206.83203 " + id="path13486" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + <path + style="fill:#d0a916;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 128 206.83203 L 128 206.83203 L 186.81055 174.30469 L 245.62305 141.77734 L 222.49609 115.04492 L 128.00195 167.30664 L 127.99963 167.30536 " + id="path13484" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + <path + style="fill:#ebc845;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 127.99963 104.27802 L 70.384765 72.414061 L 69.189452 73.794921 L 49.339843 96.740233 L 127.99963 140.24285 " + id="path13482" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + <path + style="fill:#d0a916;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 127.99963 140.24285 L 128.00195 140.24414 L 206.66211 96.742187 L 186.81055 73.794921 L 185.61719 72.414061 L 128.00195 104.2793 L 127.99963 104.27802 " + id="path13480" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + <path + style="fill:#d0a916;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 127.99962 77.223323 L 128.00195 77.224608 L 169.78516 54.11328 L 128 5.8105468 L 128 5.8105468 " + id="path13478" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + <path + style="fill:#ebc845;fill-opacity:1;stroke:none;stroke-width:33.72127533;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + d="M 128 5.8105468 L 86.214843 54.11328 L 127.99962 77.223323 " + id="path11342" + transform="matrix(0.26458333,0,0,0.26458333,0,229.26667)" /> + </g> + <g + inkscape:groupmode="layer" + id="layer4" + inkscape:label="text" + style="display:inline"> + <text + xml:space="preserve" + style="font-style:normal;font-weight:normal;font-size:29.63333321px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#f5d46f;fill-opacity:1;stroke:url(#linearGradient13498);stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" + x="11.721249" + y="61.955833" + id="text11340-8"><tspan + sodipodi:role="line" + id="tspan11338-3" + x="11.721249" + y="61.955833" + style="font-size:29.63333321px;fill:#f5d46f;fill-opacity:1;stroke:url(#linearGradient13498);stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers">7w</tspan></text> + </g> +</svg> |