File pom1.spec of Package pom1
#
# spec file for package pom1
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pom1
Version: 1.0.0
Release: 0
Summary: Apple 1 emulator
License: GPL-2.0
Group: System/Emulators/Other
Url: http://pom1.sourceforge.net
Source: http://sourceforge.net/projects/pom1/files/pom1/%{version}/%{name}-%{version}.tar.gz
BuildRequires: SDL-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Pom1 is an Apple 1 emulator ported to C and Android from the original Java version.
The port to C uses Simple DirectMedia Layer library and works on most platforms.
%prep
%setup -q
%build
# build section
%configure --docdir=%{_datadir}/doc/packages
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm %{buildroot}%{_datadir}/icons/%{name}.png
rm -rf %{buildroot}%{_datadir}/doc
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 src/%{name}.png -t %{buildroot}%{_datadir}/pixmaps
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/%{name}
%{_bindir}/%{name}-%{version}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%changelog