File xeuphoric.spec of Package xeuphoric

#
# spec file for package xeuphoric
#
# Copyright (c) 2017 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:           xeuphoric
Version:        0.19.0
Release:        0
Summary:        Oric-1, Oric Atmos and Telestrat Emulator
License:        GPL-2.0
Group:          System/Emulators/PC
URL:            http://www.teaser.fr/~amajorel/xeuphoric/
Source:         http://www.teaser.fr/~amajorel/xeuphoric/%{name}-%{version}.tar.gz
Patch1:         xeuphoric-conditional-SIGUNUSED.patch
BuildRequires:  dos2unix
BuildRequires:  xorg-x11-devel
ExclusiveArch:  %{ix86}

%description
Emulates the Oric-1, the Oric Atmos and the Telestrat.

%prep
%setup -q
%patch1 -p1

pushd doc/euphoric-0.99b/
	# Remove garbage file that causes problems
	rm -f HISTORIC
	# fix the others
	dos2unix *
popd


%build
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ./configure --prefix %{_prefix}
make %{?_smp_mflags}

%install
%make_install

%files
%doc CHANGES README TODO doc/euphoric-0.99b
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/%{version}
%config %{_sysconfdir}/%{name}/%{version}/xeuphoricrc
%{_bindir}/%{name}
%{_bindir}/%{name}-%{version}
%{_mandir}/man1/%{name}-%{version}.1%{ext_man}
%{_mandir}/man1/%{name}.1%{ext_man}
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by