oddsocks ebd8f28
Name:           openmsx
d708728
Version:        0.11.0
be19de2
Release:        7%{?dist}
oddsocks ebd8f28
Summary:        An emulator for the MSX home computer system
oddsocks ebd8f28
Group:          Applications/Emulators
oddsocks ebd8f28
License:        GPL+
oddsocks ebd8f28
URL:            http://openmsx.sourceforge.net
oddsocks ebd8f28
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
oddsocks ebd8f28
Patch0:         openmsx-0.6.1-installbase.patch
oddsocks ebd8f28
BuildRequires:  desktop-file-utils
oddsocks ebd8f28
BuildRequires:  docbook-utils
oddsocks ebd8f28
BuildRequires:  glew-devel >= 1.3.2
oddsocks ebd8f28
BuildRequires:  jack-audio-connection-kit-devel
oddsocks ebd8f28
BuildRequires:  libpng-devel
oddsocks ebd8f28
BuildRequires:  libxml2-devel
aeb4f52
BuildRequires:  SDL_image-devel SDL_ttf-devel freetype-devel
oddsocks ebd8f28
BuildRequires:  tcl-devel >= 8.4.0
oddsocks ebd8f28
BuildRequires:  zlib-devel
3cc9ac3
BuildRequires:  python
oddsocks ebd8f28
Requires:       cbios-%{name}
oddsocks ebd8f28
Requires:       hicolor-icon-theme
oddsocks ebd8f28
oddsocks ebd8f28
%description
oddsocks ebd8f28
openMSX is an emulator for the MSX home computer system. Its goal is to emulate
oddsocks ebd8f28
all aspects of the MSX with 100% accuracy.
oddsocks ebd8f28
oddsocks ebd8f28
oddsocks ebd8f28
%prep
oddsocks ebd8f28
%setup -q
oddsocks ebd8f28
%patch0 -p1
oddsocks ebd8f28
oddsocks ebd8f28
# Verbose compilation
oddsocks ebd8f28
sed -i 's/@$(COMPILE_ENV)/$(COMPILE_ENV)/' build/main.mk
oddsocks ebd8f28
oddsocks ebd8f28
# Make the custom flavour module, so we can use RPM OPT FLAGS here
oddsocks ebd8f28
cat > build/flavour-rpm.mk << EOF
oddsocks ebd8f28
# $Id: flavour-rpm.mk,v 1.1 2006/08/06 06:32:02 mthuurne Exp $
oddsocks ebd8f28
#
oddsocks ebd8f28
# RPM opt flavour:
oddsocks ebd8f28
oddsocks ebd8f28
# Opt flags.
f6648a6
CXXFLAGS+=%{optflags} -DNDEBUG
oddsocks ebd8f28
oddsocks ebd8f28
# Dont strip exe, let rpm do it and save debug info
oddsocks ebd8f28
OPENMSX_STRIP:=false
oddsocks ebd8f28
EOF
oddsocks ebd8f28
oddsocks ebd8f28
oddsocks ebd8f28
%build
oddsocks ebd8f28
%configure
f6648a6
make %{?_smp_mflags} OPENMSX_FLAVOUR=rpm INSTALL_SHARE_DIR=%{_datadir}/%{name}\
bef0133
     INSTALL_DOC_DIR=%{_docdir}/%{name}
oddsocks ebd8f28
oddsocks ebd8f28
# Build desktop icon
oddsocks ebd8f28
cat >%{name}.desktop <
oddsocks ebd8f28
[Desktop Entry]
oddsocks ebd8f28
Name=openMSX
oddsocks c3538ea
GenericName=An MSX Emulator
oddsocks ebd8f28
Comment=%{summary}
oddsocks ebd8f28
Exec=%{name}
oddsocks c3538ea
Icon=%{name}
oddsocks ebd8f28
Terminal=false
oddsocks ebd8f28
Type=Application
oddsocks ebd8f28
Categories=Game;Emulator;
oddsocks ebd8f28
EOF
oddsocks ebd8f28
oddsocks ebd8f28
# Build the man page
oddsocks ebd8f28
docbook2man doc/openmsx.sgml -o ./
oddsocks ebd8f28
oddsocks ebd8f28
oddsocks ebd8f28
%install
f6648a6
make %{?_smp_mflags} OPENMSX_FLAVOUR=rpm INSTALL_SHARE_DIR=%{_datadir}/%{name}\
bef0133
     INSTALL_DOC_DIR=%{_docdir}/%{name} \
f6648a6
     DESTDIR=$RPM_BUILD_ROOT install
f6648a6
f6648a6
# Move some things around
38a8c0d
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/machines/*.txt \
38a8c0d
   $RPM_BUILD_ROOT%{_docdir}/%{name}
f6648a6
f6648a6
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
f6648a6
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/settings.xml \
f6648a6
   $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
f6648a6
ln -s --target-directory=$RPM_BUILD_ROOT%{_datadir}/%{name} \
oddsocks ebd8f28
   ../../../etc/openmsx/settings.xml
oddsocks ebd8f28
f6648a6
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
f6648a6
install -pm 0644 OPENMSX.1 $RPM_BUILD_ROOT%{_mandir}/man1/openmsx.1
f6648a6
f6648a6
# Install icon set and desktop file
f6648a6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
oddsocks c3538ea
for i in 16 32 48 64 128; do
oddsocks c3538ea
install -pm 0644 share/icons/openMSX-logo-"$i".png \
f6648a6
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/"$i"x"$i"/apps/%{name}.png
oddsocks c3538ea
done
oddsocks c3538ea
ee53063
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \
oddsocks ebd8f28
                     %{name}.desktop
oddsocks ebd8f28
Richard Hughes 1ea55a6
# Register as an application to be visible in the software center
Richard Hughes 1ea55a6
#
Richard Hughes 1ea55a6
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 1ea55a6
# project, translated and installed into the right place during `make install`.
Richard Hughes 1ea55a6
#
Richard Hughes 1ea55a6
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 1ea55a6
#
Richard Hughes 1ea55a6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 1ea55a6
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 1ea55a6
Richard Hughes 1ea55a6
Richard Hughes 1ea55a6
Richard Hughes 1ea55a6
BugReportURL: BUGTRACKER DEAD
Richard Hughes 1ea55a6
SentUpstream: 2014-09-25
Richard Hughes 1ea55a6
-->
Richard Hughes 1ea55a6
<application>
Richard Hughes 1ea55a6
  <id type="desktop">openmsx.desktop</id>
Richard Hughes 1ea55a6
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 1ea55a6
  <summary>Emulate all aspects of the MSX with 100% accuracy</summary>
Richard Hughes 1ea55a6
  <description>
Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
      MSX is an old Z80-based family of home computers as an attempt to establish
Richard Hughes 1ea55a6
      a single standard in home computing similar to VHS in video.
Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
      The MSX standard died from year 1988.
Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
      The MSX standard has been designed by a company called ASCII in Cooperation
Richard Hughes 1ea55a6
      with Microsoft which has provided a firmware version of his extended BASIC
Richard Hughes 1ea55a6
      (called "MicroSoft eXtended BASIC") for the machine, which explains the MSX name.
Richard Hughes 1ea55a6
    

Richard Hughes 1ea55a6
  </description>
Richard Hughes 1ea55a6
  <url type="homepage">http://openmsx.sourceforge.net</url>
Richard Hughes 1ea55a6
  <screenshots>
Richard Hughes 1ea55a6
    <screenshot type="default">http://openmsx.sourceforge.net/images/screenshots/mlimit3.png</screenshot>
Richard Hughes 1ea55a6
  </screenshots>
Richard Hughes 1ea55a6
</application>
Richard Hughes 1ea55a6
EOF
oddsocks ebd8f28
oddsocks ebd8f28
%post
f6648a6
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
oddsocks ebd8f28
oddsocks ebd8f28
%postun
f6648a6
if [ $1 -eq 0 ] ; then
f6648a6
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
f6648a6
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
oddsocks ebd8f28
fi
oddsocks ebd8f28
f6648a6
%posttrans
f6648a6
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
f6648a6
oddsocks ebd8f28
oddsocks ebd8f28
%files
bef0133
%doc %{_docdir}/%{name}
oddsocks ebd8f28
%{_bindir}/%{name}
oddsocks ebd8f28
%{_datadir}/%{name}
Richard Hughes 1ea55a6
%{_datadir}/appdata/*%{name}.appdata.xml
ee53063
%{_datadir}/applications/*%{name}.desktop
oddsocks c3538ea
%{_datadir}/icons/hicolor/*/apps/%{name}.png
oddsocks ebd8f28
%{_mandir}/man1/%{name}.1.gz
oddsocks ebd8f28
%dir %{_sysconfdir}/%{name}
oddsocks ebd8f28
%config(noreplace) %{_sysconfdir}/%{name}/settings.xml
oddsocks ebd8f28
oddsocks ebd8f28
oddsocks ebd8f28
%changelog
be19de2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-7
be19de2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
be19de2
3cc9ac3
* Fri Jan 15 2016 Adam Jackson <ajax@redhat.com> 0.11.0-6
3cc9ac3
- Add explicit python2 BuildRequires
3cc9ac3
252b6bb
* Thu Jan 14 2016 Adam Jackson <ajax@redhat.com> - 0.11.0-5
252b6bb
- Rebuild for glew 1.13
252b6bb
74a974f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-4
74a974f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
74a974f
b2fb2db
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.11.0-3
b2fb2db
- Rebuilt for GCC 5 C++11 ABI change
b2fb2db
Richard Hughes 1ea55a6
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.11.0-2
Richard Hughes 1ea55a6
- Add an AppData file for the software center
Richard Hughes 1ea55a6
d708728
* Fri Nov 21 2014 Hans de Goede <hdegoede@redhat.com> - 0.11.0-1
d708728
- New upstream release 0.11.0 (rhbz#1163192)
d708728
2c78d50
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-4
2c78d50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2c78d50
8ed9c83
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
8ed9c83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8ed9c83
8875778
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 0.10.1-2
8875778
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
8875778
7d8db0f
* Fri May 02 2014 Hans de Goede <hdegoede@redhat.com> - 0.10.1-1
7d8db0f
- New upstream release 0.10.1 (rhbz#1093671)
7d8db0f
38a8c0d
* Sat Mar 08 2014 Hans de Goede <hdegoede@redhat.com> - 0.10.0-1
38a8c0d
- New upstream release 0.10.0 (rhbz#1048800)
38a8c0d
48f26de
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 0.9.1-2
48f26de
- rebuilt for GLEW 1.10
48f26de
bef0133
* Fri Aug 09 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.1-1
bef0133
- New upstream release 0.9.1 (rhbz#861857)
bef0133
- Use unversioned docdir (rhbz#993995)
bef0133
6c809a3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-5
6c809a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6c809a3
ee53063
* Tue Apr 30 2013 Jon Ciesla <limburgher@gmail.com> - 0.9.0-4
ee53063
- Drop desktop vendor tag.
ee53063
049851b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
049851b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
049851b
b2a5480
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 0.9.0-2
b2a5480
- Rebuild for glew 1.9.0
b2a5480
8b9e434
* Sat Aug 18 2012 Hans de Goede <hdegoede@redhat.com> - 0.9.0-1
8b9e434
- New upstream release 0.9.0 (rhbz#847653)
8b9e434
4ac8c02
* Sat Jul 28 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.2-4
4ac8c02
- Fix FTBFS
4ac8c02
1735da1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-3
1735da1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1735da1
b338bca
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
b338bca
- Rebuilt for c++ ABI breakage
b338bca
b23dd67
* Fri Jan 27 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.2-1
b23dd67
- New upstream release 0.8.2 (rhbz#784831)
b23dd67
80606a2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
80606a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
80606a2
70fa6f7
* Tue Dec 06 2011 Hans de Goede <hdegoede@redhat.com> - 0.8.1-1
70fa6f7
- New upstream release 0.8.1
70fa6f7
- Fix building with libpng-1.5
70fa6f7
faa1865
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.7.2-5
faa1865
- Rebuild for new libpng
faa1865
cb72451
* Mon Jun 20 2011 ajax@redhat.com - 0.7.2-4
cb72451
- Rebuild for new glew soname
cb72451
e4598c4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
e4598c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e4598c4
bf9674e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
bf9674e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bf9674e
f6648a6
* Fri Jul  3 2009 Hans de Goede <hdegoede@redhat.com> 0.7.2-1
f6648a6
- New upstream release 0.7.2
f6648a6
63346d6
* Fri Apr 10 2009 Hans de Goede <hdegoede@redhat.com> 0.7.0-1
63346d6
- New upstream release 0.7.0
63346d6
14ef5dd
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-7
14ef5dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
14ef5dd
41dcb76
* Mon Feb 23 2009 Hans de Goede <hdegoede@redhat.com> 0.6.3-6
41dcb76
- Fix building with gcc-4.4
41dcb76
b7b0cc2
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.3-5
b7b0cc2
- Rebuild for Python 2.6
b7b0cc2
55b9b20
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> 0.6.3-4
55b9b20
- Fix patch fuzz build failure
55b9b20
cd7e9f3
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.3-3
cd7e9f3
- Autorebuild for GCC 4.3
cd7e9f3
oddsocks 759a024
* Tue Jan 22 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.3-2
oddsocks 759a024
- Rebuild for new glew version in devel
oddsocks 759a024
oddsocks c3538ea
* Wed Jan 09 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.3-1
oddsocks c3538ea
- Upgrade to 0.6.3
oddsocks c3538ea
- Use the icons now supplied with openmsx instead of our own
oddsocks c3538ea
- Harmless permission fix
oddsocks c3538ea
- Some spec optimisations
oddsocks c3538ea
- Updated datadir patch
oddsocks c3538ea
4ae1d9c
* Sat Jan  5 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.6.2-5
4ae1d9c
- Rebuild for new Tcl 8.5
4ae1d9c
oddsocks ebd8f28
* Mon Aug 27 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.2-4
oddsocks ebd8f28
- License field corrected
oddsocks ebd8f28
oddsocks ebd8f28
* Sun Aug 26 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.2-3
oddsocks ebd8f28
- Migration to Fedora
oddsocks ebd8f28
- License field changed due to new guidelines
oddsocks ebd8f28
oddsocks ebd8f28
* Sun May 06 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.2-2
oddsocks ebd8f28
- Rebuild for glew 1.4.0
oddsocks ebd8f28
oddsocks ebd8f28
* Fri Apr 27 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.2-1
oddsocks ebd8f28
- Upgrade to 0.6.2
oddsocks ebd8f28
- Increased compilation verbosity
oddsocks ebd8f28
oddsocks ebd8f28
* Sun Mar 11 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.1-2
oddsocks ebd8f28
- Dropped dribble-menus requirement, due to be obsoleted
oddsocks ebd8f28
- Changed .desktop category to Game;Emulator;
oddsocks ebd8f28
- Create the desktop icon from the skins (instead of using our own)
oddsocks ebd8f28
oddsocks ebd8f28
* Sun Aug 06 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.1-1
4ae1d9c
- Initial release