Summary: An Atari 2600 Video Computer System emulator
-Summary(pl): Emulator Atari 2600 Video Computer System
+Summary(pl.UTF-8): Emulator Atari 2600 Video Computer System
Name: stella
-Version: 1.3
+Version: 3.1
Release: 1
-License: GPL
+License: GPL v2+
Group: Applications/Emulators
-Source0: http://dl.sourceforge.net/stella/%{name}-%{version}-src.tar.gz
-# Source0-md5: b9318f82a180ff0a404fca78511b2772
-Patch0: %{name}-conf.patch
+Source0: http://downloads.sourceforge.net/stella/%{name}-%{version}-src.tar.gz
+# Source0-md5: 82d5a4c761ff81757036af015a1e7f41
+Patch0: %{name}-desktop.patch
+Patch1: %{name}-useless_files.patch
URL: http://stella.sourceforge.net/
-BuildRequires: XFree86-devel
+BuildRequires: OpenGL-devel
+BuildRequires: SDL-devel >= 1.2.10
BuildRequires: alsa-lib-devel >= 0.9.0
BuildRequires: libpng-devel
BuildRequires: libstdc++-devel
+BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
emulator will run most Atari ROM images, so that you can play your
favorite old Atari 2600 games on your PC.
-%description -l pl
-Atari 2600 Video Computer System (VCS), który mia³ premierê w 1977
-roku, by³ najpopularniejszym systemem domowych gier video wczesnych
-lat 1980-tych. Ten emulator potrafi uruchomiæ wiêkszo¶æ obrazów Atari
-ROM, wiêc mo¿na graæ w swoje ulubione stare gry z Atari 2600 na PC.
+%description -l pl.UTF-8
+Atari 2600 Video Computer System (VCS), który miał premierę w 1977
+roku, był najpopularniejszym systemem domowych gier video wczesnych
+lat 1980-tych. Ten emulator potrafi uruchomić większość obrazów Atari
+ROM, więc można grać w swoje ulubione stare gry z Atari 2600 na PC.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
-cd src/build
-%{__make} linux-x \
- CC=%{__cc} \
- CXX=%{__cxx}
+./configure \
+ --prefix=%{_prefix}
+%{__make} \
+ CXX="%{__cxx}" \
+ LD="%{__cxx}" \
+ CXXFLAGS="%{rpmcxxflags}" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_sysconfdir}}
-install src/build/stella.x11 $RPM_BUILD_ROOT%{_bindir}/%{name}
-install src/stellarc $RPM_BUILD_ROOT%{_sysconfdir}
+install src/emucore/stella.pro $RPM_BUILD_ROOT%{_sysconfdir}
+install src/common/stella.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Announce.txt Changes.txt Todo.txt docs/*.html
+%doc Announce.txt Changes.txt Readme.txt Todo.txt docs
%attr(755,root,root) %{_bindir}/stella
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/stellarc
+%config %{_sysconfdir}/stella.pro
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.xpm