From 555845d6017cfb072cb329832d5912b096791b6a Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Jan 31 2019 20:28:08 +0000 Subject: Replace tabs with spaces --- diff --git a/dreamweb.spec b/dreamweb.spec index 83a0976..2d643be 100644 --- a/dreamweb.spec +++ b/dreamweb.spec @@ -1,52 +1,52 @@ # Define destination dir. -%global destdir %{_datadir}/%{name} +%global destdir %{_datadir}/%{name} # Setup _pkgdocdir if not defined already. -%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} +%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} # Define available languages. -%global avail_langs us uk fr de it es -%global lang_list %(echo "%{?avail_langs}" | %{__sed} -e 's! !,!g') +%global avail_langs us uk fr de it es +%global lang_list %(echo "%{?avail_langs}" | %{__sed} -e 's! !,!g') # Define common part of source-url. -%global src_url http://downloads.sf.net/scummvm/%{name}- +%global src_url http://downloads.sf.net/scummvm/%{name}- # Define commonly used description. -%global common_desc \ -Ryan, a bartender from a dystopian future can't sleep peacefully \ -for months. His nights are sequences of nightmares and strange \ -dreams, days with frequent black-outs with strange visions, until \ -one night a figure in monk attire appears to him, and tells him the \ -story of the seven evil ones, uniting to destroy to Dreamweb, the \ -only barrier between the world and darkness. The monk makes a \ -proposition: Ryan becomes the "deliverer": the one who would keep \ -the Dreamweb safe by killing those who try to destroy it. \ - \ -Descending into paranoia and just wanting dreams to stop, Ryan \ -accepts the mission, then wakes up in a puddle of cold sweat, next \ -to his beloved girlfriend in her house, and late for work. Again. \ - \ -DreamWeb is a top-down adventure game set in a gritty futuristic \ -dystopian city. Each location takes only a small portion of the \ -screen without panning (except an optional small zoom window in the \ -corner that follows the cursor), with the player interacting with \ -objects and people by simply clicking them. Ryan has a limited \ -inventory space, and as a lot of objects can be picked up (many \ -without any use), the player must rationalize what might be useful \ -and what just serves as filler. \ - \ -Dialogue is straightforward, with no options, but still required \ -to advance in the game (to find new locations, for instance). In \ -situations where many adventure games usually feature an indirect \ -approach to solve a problem, Ryan often faces himself with \ -situations where it's "killed or be killed", which result in deaths \ +%global common_desc \ +Ryan, a bartender from a dystopian future can't sleep peacefully \ +for months. His nights are sequences of nightmares and strange \ +dreams, days with frequent black-outs with strange visions, until \ +one night a figure in monk attire appears to him, and tells him the \ +story of the seven evil ones, uniting to destroy to Dreamweb, the \ +only barrier between the world and darkness. The monk makes a \ +proposition: Ryan becomes the "deliverer": the one who would keep \ +the Dreamweb safe by killing those who try to destroy it. \ + \ +Descending into paranoia and just wanting dreams to stop, Ryan \ +accepts the mission, then wakes up in a puddle of cold sweat, next \ +to his beloved girlfriend in her house, and late for work. Again. \ + \ +DreamWeb is a top-down adventure game set in a gritty futuristic \ +dystopian city. Each location takes only a small portion of the \ +screen without panning (except an optional small zoom window in the \ +corner that follows the cursor), with the player interacting with \ +objects and people by simply clicking them. Ryan has a limited \ +inventory space, and as a lot of objects can be picked up (many \ +without any use), the player must rationalize what might be useful \ +and what just serves as filler. \ + \ +Dialogue is straightforward, with no options, but still required \ +to advance in the game (to find new locations, for instance). In \ +situations where many adventure games usually feature an indirect \ +approach to solve a problem, Ryan often faces himself with \ +situations where it's "killed or be killed", which result in deaths \ (sometimes of innocents). -Name: dreamweb -Version: 1.1 -Release: 8%{?dist} -Summary: Click-and-point adventure with the look and feel of Ridley Scott's Blade Runner +Name: dreamweb +Version: 1.1 +Release: 8%{?dist} +Summary: Click-and-point adventure with the look and feel of Ridley Scott's Blade Runner # The license-file included in the sources says: # @@ -89,37 +89,37 @@ Summary: Click-and-point adventure with the look and feel of Ridley Scott's Bla # reference have a look at: # http://www.redhat.com/archives/fedora-extras-list/2006-November/msg00030.html # -License: Redistributable, no modification permitted -URL: http://www.mobygames.com/game/%{name} -Source0: %{src_url}cd-us-%{version}.zip +License: Redistributable, no modification permitted +URL: http://www.mobygames.com/game/%{name} +Source0: %{src_url}cd-us-%{version}.zip # Other localizations. -Source10: %{src_url}cd-uk-%{version}.zip -Source11: %{src_url}cd-fr-%{version}.zip -Source12: %{src_url}cd-de-%{version}.zip -Source13: %{src_url}cd-it-%{version}.zip -Source14: %{src_url}cd-es-%{version}.zip +Source10: %{src_url}cd-uk-%{version}.zip +Source11: %{src_url}cd-fr-%{version}.zip +Source12: %{src_url}cd-de-%{version}.zip +Source13: %{src_url}cd-it-%{version}.zip +Source14: %{src_url}cd-es-%{version}.zip # Documentation / Manuals. -Source90: %{src_url}manuals-en-highres.zip -Source91: %{src_url}manuals-en-lores.zip +Source90: %{src_url}manuals-en-highres.zip +Source91: %{src_url}manuals-en-lores.zip -BuildArch: noarch +BuildArch: noarch -BuildRequires: desktop-file-utils dos2unix fdupes vorbis-tools +BuildRequires: desktop-file-utils dos2unix fdupes vorbis-tools %description %{?common_desc} %package common -Summary: Common files used by %{name} +Summary: Common files used by %{name} # The files inside this sub-pkg are pretty useless without the files # shipped with the other packages. -Requires: %{name} == %{version}-%{release} -Requires: filesystem -Requires: scummvm +Requires: %{name} == %{version}-%{release} +Requires: filesystem +Requires: scummvm %description common This package contains common files used by %{name}. @@ -128,7 +128,7 @@ This package contains common files used by %{name}. %package doc -Summary: Documentation files for %{name} +Summary: Documentation files for %{name} %description doc This package contains documentation files used by %{name}. The @@ -141,13 +141,13 @@ versions of the game from those documents. %package us -Summary: US-English language version of %{name} +Summary: US-English language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description us This package contains the US-English language version of %{name}, a @@ -158,13 +158,13 @@ Blade Runner. %package uk -Summary: UK-English language version of %{name} +Summary: UK-English language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description uk This package contains the UK-English language version of %{name}, a @@ -175,13 +175,13 @@ Blade Runner. %package fr -Summary: French language version of %{name} +Summary: French language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description fr This package contains the French language version of %{name}, a @@ -192,13 +192,13 @@ Blade Runner. %package de -Summary: German language version of %{name} +Summary: German language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description de This package contains the German language version of %{name}, a @@ -209,13 +209,13 @@ Blade Runner. %package it -Summary: Italian language version of %{name} +Summary: Italian language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description it This package contains the Italian language version of %{name}, a @@ -226,13 +226,13 @@ Blade Runner. %package es -Summary: Spanish language version of %{name} +Summary: Spanish language version of %{name} -Requires: %{name}-common == %{version}-%{release} +Requires: %{name}-common == %{version}-%{release} # This package provides the localized content of the main-pkg. This is # also needed to satisfy the Requires of the common sub-pkg. -Provides: %{name} == %{version}-%{release} +Provides: %{name} == %{version}-%{release} %description es This package contains the Spanish language version of %{name}, a @@ -245,18 +245,18 @@ Blade Runner. %prep # Create empty builddir and subdirs. %setup -cqT -%{__mkdir} -p common %{?avail_langs} doc/{common,manuals_hq,manuals_lq} \ - doc/{%{?lang_list}} +%{__mkdir} -p common %{?avail_langs} \ + doc/{common,manuals_hq,manuals_lq,%{?lang_list}} # Setup sources in subdirs. Move documentation-files into seperate subdir. _file="%(echo %{SOURCE0} | %{__sed} -e 's!-us-.*$!!g')" for _dir in %{?avail_langs} do - %{__unzip} -q -LL ${_file}-${_dir}-%{version}.zip -d ${_dir} - for _doc in $(%{_bindir}/find ${_dir} -type f -name '*.htm*') - do - %{__mv} -f $(%{_bindir}/dirname ${_doc}) doc/${_dir} - done + %{__unzip} -q -LL ${_file}-${_dir}-%{version}.zip -d ${_dir} + for _doc in $(%{_bindir}/find ${_dir} -type f -name '*.htm*') + do + %{__mv} -f $(%{_bindir}/dirname ${_doc}) doc/${_dir} + done done # Setup additional documentation-files. @@ -264,10 +264,8 @@ done %{__unzip} -q -LL %{SOURCE91} -d doc/manuals_lq # Change mode of all files to 0644, all dirs to 0755. -%{_bindir}/find . -type f -print0 | \ - %{_bindir}/xargs -0 /bin/chmod -c 0644 -%{_bindir}/find . -type d -print0 | \ - %{_bindir}/xargs -0 /bin/chmod -c 0755 +%{_bindir}/find . -type f -print0 | %{_bindir}/xargs -0 /bin/chmod -c 0644 +%{_bindir}/find . -type d -print0 | %{_bindir}/xargs -0 /bin/chmod -c 0755 %build @@ -282,7 +280,7 @@ done # Create desktop-files. for _lang in %{?avail_langs} do - cat > %{name}-${_lang}.desktop << EOF + cat > %{name}-${_lang}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=DreamWeb (${_lang}) @@ -304,16 +302,16 @@ _common_dir="%{?destdir}/common" # ScummVM is able to play the uncompressed PCM-wave as well. for _dir in %{?avail_langs} do - %{__rm} -f ${_dir}/track1.flac ${_dir}/track01.flac - /bin/ln -fs ${_common_dir}/dreamweb.wav ${_dir}/track01.wav + %{__rm} -f ${_dir}/track1.flac ${_dir}/track01.flac + %{__ln_s} -f ${_common_dir}/dreamweb.wav ${_dir}/track01.wav done # Soft-link duplicate files into _common_dir. for _file in $(%{_bindir}/fdupes -r1 . | %{__sed} -e '/doc\//d') do - _filename="$(/bin/basename ${_file})" - %{__mv} -f ${_file} common/${_filename} - /bin/ln -fs ${_common_dir}/${_filename} ${_file} + _filename="$(/bin/basename ${_file})" + %{__mv} -f ${_file} common/${_filename} + %{__ln_s} -f ${_common_dir}/${_filename} ${_file} done pushd doc @@ -321,15 +319,15 @@ pushd doc _common_dir="%{?_pkgdocdir}/common" # Fix end-of-line-encoding. -%{_bindir}/find . -type f -name '*.txt' -print0 | \ - %{_bindir}/xargs -0 %{_bindir}/dos2unix -k +%{_bindir}/find . -type f -name '*.txt' -print0 | \ + %{_bindir}/xargs -0 %{_bindir}/dos2unix -k # Soft-link duplicate files into _common_dir. for _file in $(%{_bindir}/fdupes -r1 .) do - _filename="$(/bin/basename ${_file})" - %{__mv} -f ${_file} common/${_filename} - /bin/ln -fs ${_common_dir}/${_filename} ${_file} + _filename="$(/bin/basename ${_file})" + %{__mv} -f ${_file} common/${_filename} + %{__ln_s} -f ${_common_dir}/${_filename} ${_file} done # Soft-link duplicate files inside documentation. @@ -350,8 +348,8 @@ popd %install # Install the game-files. -%{__mkdir} -p %{buildroot}%{_datadir}/applications \ - %{buildroot}%{?destdir} %{buildroot}%{?_pkgdocdir} +%{__mkdir} -p %{buildroot}%{_datadir}/applications \ + %{buildroot}%{?destdir} %{buildroot}%{?_pkgdocdir} %{__cp} -a common %{?avail_langs} %{buildroot}%{?destdir} # Install the documentation-files. @@ -360,9 +358,9 @@ popd # Install the desktop-files. for _lang in %{?avail_langs} do - %{_bindir}/desktop-file-install \ - --dir=%{buildroot}%{_datadir}/applications \ - %{name}-${_lang}.desktop + %{_bindir}/desktop-file-install \ + --dir=%{buildroot}%{_datadir}/applications \ + %{name}-${_lang}.desktop done