diff --git a/.cvsignore b/.cvsignore index e69de29..5c26139 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +openmsx-0.6.2.tar.gz diff --git a/openmsx-0.6.1-datadir.patch b/openmsx-0.6.1-datadir.patch new file mode 100644 index 0000000..3c75877 --- /dev/null +++ b/openmsx-0.6.1-datadir.patch @@ -0,0 +1,11 @@ +--- openmsx-0.6.1/build/info2code.mk.orig 2006-01-19 18:39:49.000000000 +0000 ++++ openmsx-0.6.1/build/info2code.mk 2006-08-11 00:31:11.000000000 +0100 +@@ -30,7 +30,7 @@ + # Don't call it "BIG_ENDIAN", because some system header may #define that. + @echo "static const bool OPENMSX_BIGENDIAN = $(BIG_ENDIAN);" >> $@ + @echo "static const bool OPENMSX_SET_WINDOW_ICON = $(SET_WINDOW_ICON);" >> $@ +- @echo "static const std::string DATADIR = \"$(INSTALL_SHARE_DIR)\";" >> $@ ++ @echo "static const std::string DATADIR = \"/usr/share/openmsx\";" >> $@ + @echo "" >> $@ + @echo "} // namespace openmsx" >> $@ + @echo "" >> $@ diff --git a/openmsx-0.6.1-flavour.patch b/openmsx-0.6.1-flavour.patch new file mode 100644 index 0000000..13fc939 --- /dev/null +++ b/openmsx-0.6.1-flavour.patch @@ -0,0 +1,29 @@ +--- openmsx-0.6.1/build/cpu-x86.mk.orig 2006-07-23 19:50:57.000000000 +0100 ++++ openmsx-0.6.1/build/cpu-x86.mk 2006-08-06 18:30:46.000000000 +0100 +@@ -9,7 +9,7 @@ + ifeq ($(filter darwin%,$(OPENMSX_TARGET_OS)),) + # To run openMSX with decent speed, at least a Pentium 2 class machine + # is needed, so let's optimise for that. +-OPENMSX_FLAVOUR?=i686 ++OPENMSX_FLAVOUR?=rpm + else + # The system headers of OS X use SSE features, which are not available on + # i686, so we only use the generic optimisation flags instead. +--- openmsx-0.6.1/build/cpu-ppc.mk.orig 2004-07-10 16:25:01.000000000 +0100 ++++ openmsx-0.6.1/build/cpu-ppc.mk 2006-08-13 16:07:26.000000000 +0100 +@@ -6,5 +6,5 @@ + BIG_ENDIAN:=true + + # Default build flavour. +-OPENMSX_FLAVOUR?=ppc ++OPENMSX_FLAVOUR?=rpm + +--- openmsx-0.6.1/build/cpu-x86_64.mk.orig 2004-10-09 07:32:02.000000000 +0100 ++++ openmsx-0.6.1/build/cpu-x86_64.mk 2006-08-13 16:07:38.000000000 +0100 +@@ -6,5 +6,5 @@ + BIG_ENDIAN:=false + + # Default build flavour. +-OPENMSX_FLAVOUR?=opt ++OPENMSX_FLAVOUR?=rpm + diff --git a/openmsx-0.6.1-installbase.patch b/openmsx-0.6.1-installbase.patch new file mode 100644 index 0000000..62d0eb9 --- /dev/null +++ b/openmsx-0.6.1-installbase.patch @@ -0,0 +1,20 @@ +--- openmsx-0.6.1/build/custom.mk.orig 2005-12-22 04:53:18.000000000 +0000 ++++ openmsx-0.6.1/build/custom.mk 2006-08-06 18:28:59.000000000 +0100 +@@ -6,7 +6,7 @@ + # openMSX is always installed into a single self-contained directory. + # But you can change that directory to for example /usr/local/openMSX + # or /usr/games/openMSX if you like. +-INSTALL_BASE:=/opt/openMSX ++INSTALL_BASE:=/usr + + # Add ChangeLog version number to executable file name? This applies only to + # development versions, not to release versions (see version.mk). +@@ -16,7 +16,7 @@ + # This link is placed in a location that is typically in a user's path: + # /usr/local/bin for system-wide installs and ~/bin for personal installs. + # This setting is only relevant on systems that support symbolic links. +-SYMLINK_FOR_BINARY:=true ++SYMLINK_FOR_BINARY:=false + + # Install content of Contrib/ directory? + # Currently this contains a version of C-BIOS. diff --git a/openmsx.spec b/openmsx.spec new file mode 100644 index 0000000..57f5651 --- /dev/null +++ b/openmsx.spec @@ -0,0 +1,179 @@ +Name: openmsx +Version: 0.6.2 +Release: 4%{?dist} +Summary: An emulator for the MSX home computer system +Group: Applications/Emulators +License: GPL+ +URL: http://openmsx.sourceforge.net +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: openmsx-0.6.1-installbase.patch +Patch1: openmsx-0.6.1-flavour.patch +Patch2: openmsx-0.6.1-datadir.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: desktop-file-utils +BuildRequires: docbook-utils +BuildRequires: glew-devel >= 1.3.2 +BuildRequires: ImageMagick +BuildRequires: jack-audio-connection-kit-devel +BuildRequires: libpng-devel +BuildRequires: libxml2-devel +BuildRequires: SDL_image-devel +BuildRequires: tcl-devel >= 8.4.0 +BuildRequires: zlib-devel +Requires: cbios-%{name} +Requires: hicolor-icon-theme + +%description +openMSX is an emulator for the MSX home computer system. Its goal is to emulate +all aspects of the MSX with 100% accuracy. + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +# Verbose compilation +sed -i 's/@$(COMPILE_ENV)/$(COMPILE_ENV)/' build/main.mk + +# Correct some permissions +chmod 0644 share/extensions/rs232/hardwareconfig.xml share/extensions/gfx9000/hardwareconfig.xml \ + share/extensions/debugdevice/hardwareconfig.xml + +# Make the custom flavour module, so we can use RPM OPT FLAGS here +cat > build/flavour-rpm.mk << EOF +# $Id: flavour-rpm.mk,v 1.1 2006/08/06 06:32:02 mthuurne Exp $ +# +# RPM opt flavour: + +# Opt flags. +CXXFLAGS+=%{optflags} + +# Dont strip exe, let rpm do it and save debug info +OPENMSX_STRIP:=false +EOF + +# Move documentation to a sensible location +echo 'System ROM Dir: %{_datadir}/%{name}/systemroms' > systemroms-README +cat share/systemroms/README >> doc/systemroms-README +rm -f share/systemroms/README + +echo '%{_datadir}/%{name}/machines/Boosted_MSX2_EN/roms' > Boosted_MSX2_EN-roms-README +cat share/machines/Boosted_MSX2_EN/roms/README >> doc/Boosted_MSX2_EN-roms-README +rm -f share/machines/Boosted_MSX2_EN/roms/README + +echo '%{_datadir}/%{name}/machines/Boosted_MSX2_EN' > Boosted_MSX2_EN-README +cat share/machines/Boosted_MSX2_EN/README >> doc/Boosted_MSX2_EN-README +rm -f share/machines/Boosted_MSX2_EN/README + + +%build +%configure +make %{?_smp_mflags} + +# Build desktop icon +cat >%{name}.desktop < 0.6.2-4 +- License field corrected + +* Sun Aug 26 2007 Ian Chapman 0.6.2-3 +- Migration to Fedora +- License field changed due to new guidelines + +* Sun May 06 2007 Ian Chapman 0.6.2-2 +- Rebuild for glew 1.4.0 + +* Fri Apr 27 2007 Ian Chapman 0.6.2-1 +- Upgrade to 0.6.2 +- Increased compilation verbosity + +* Sun Mar 11 2007 Ian Chapman 0.6.1-2 +- Dropped dribble-menus requirement, due to be obsoleted +- Changed .desktop category to Game;Emulator; +- Create the desktop icon from the skins (instead of using our own) + +* Sun Aug 06 2006 Ian Chapman 0.6.1-1 +- Initial release \ No newline at end of file diff --git a/sources b/sources index e69de29..ae6d0e7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +282acf2ea7bf67e15a7b8d961c9556a5 openmsx-0.6.2.tar.gz