Пакет dgae: Specfile

BuildRequires: gcc-c++
# one of the sources is a zip file
BuildRequires: unzip
Name:		dgae
Version:	1.1
Release:	alt1_7
Summary:	DG, a short AGI adventure game

Group:		Games/Other
License:	Public Domain
URL:		http://membres.lycos.fr/agisite/agisite.htm
Source0:	dgae.zip
#Original from http://membres.lycos.fr/agisite/dgae.zip includes
#copyrighted executables. Generated new source by unzipping, removing
#DOS-related content, running dos2unix on the text file, and changing
#all filenames to lowercase for agistudio compatibility.
Source1:	dgae.desktop
Source2:	dgae-wrapper.sh
Source3:	dgae.xpm
BuildArch:	noarch

BuildRequires:	desktop-file-utils
Requires:	nagi icon-theme-hicolor
Source44: import.info

%description
Help DG to seek out his twin brother's stick.
This game is a public domain: you can look out the codes and make your own
AGI game.

%prep
%setup -q -c

%build
iconv -f IBM850 -t UTF8 readme.txt > readme.txt.tmp
mv readme.txt.tmp readme.txt

%install

mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -D -m0644 -p * $RPM_BUILD_ROOT%{_datadir}/%{name}
install -D -m0755 -p %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}

# desktop file
desktop-file-install  \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	%{SOURCE1}

# icon
install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
install -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm

%files
%doc readme.txt
%{_datadir}/dgae
%{_datadir}/applications/dgae.desktop
%{_datadir}/icons/hicolor/32x32/apps/dgae.xpm
%{_bindir}/dgae-wrapper.sh

%changelog
* Wed Feb 16 2011 Igor Vlasenko <viy@altlinux.ru> 1.1-alt1_7
- converted from Fedora by srpmconvert script