%global svndate 20150221 %global svnrev 3087 Name: xu4 Version: 1.1 Release: 0.43.%{svndate}svn%{svnrev}%{?dist} Summary: Ultima IV recreated License: GPLv2+ URL: http://xu4.sourceforge.net/ # This was generated by running the xu4-svn-checkout.sh script Source0: xu4-%{svndate}svn.tar.xz Source1: xu4.sh Source2: xu4.autodlrc Source3: u4download.txt Patch0: xu4-1.0beta3-desktop.patch Patch1: xu4-1.1-format-security.patch BuildRequires: make BuildRequires: gcc-c++ SDL_mixer-devel libxml2-devel BuildRequires: libicns-utils libpng-devel desktop-file-utils Requires: hicolor-icon-theme autodownloader Provides: bundled(minizip) = 0.15 %description XU4 is a remake of the computer game Ultima IV. This game requires the original Ultima IV datafiles, which can be freely downloaded from the internet but may not be (re)distributed. When you start xu4 for the first time it will offer to download the datafiles for you. XU4 isn't a new game based on the Ultima IV story -- it is a faithful recreation of the old game, right up to the crappy graphics. If you are looking for a game with modern gameplay and graphics, this is not it -- yet. New features that improve the gameplay and keep with the spirit of the original game will be added. %prep %autosetup -p1 -n u4 if [ "%{_lib}" = "lib64" ]; then sed -i 's|/usr/lib|%{_libdir}|g' src/u4file.cpp fi cp %{SOURCE3} . %build pushd src make DEBUGCXXFLAGS="%{optflags}" \ bindir=%{_bindir} datadir=%{_datadir} libdir=%{_libdir} %{?_smp_mflags} popd # The apple icns file has a higher resolution icon, but still not 256x256. pushd icons icns2png -x xu4.icns popd %install pushd src # Note: make install DESTDIR=%%{buildroot}, doesn't work %{makeinstall} find %{buildroot}/%{_libdir}/u4 -name '*.xml' -o -name '*.dtd'|xargs chmod -x popd cp -p mid/*.it %{buildroot}/%{_libdir}/u4/music # mv u4 to u4.bin and install our autodl wrapper script mv %{buildroot}/%{_bindir}/u4 %{buildroot}/%{_bindir}/u4.bin install -p -m 755 %{SOURCE1} %{buildroot}/%{_bindir}/u4 install -p -m 644 %{SOURCE2} %{buildroot}/%{_libdir}/u4 # below is the desktop file and icon stuff. desktop-file-install \ --dir %{buildroot}/%{_datadir}/applications \ --delete-original \ %{buildroot}/%{_datadir}/applications/u4.desktop mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps install -p -m 655 icons/xu4_128x128x32.png \ %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/u4.png rm -rf %{buildroot}/%{_datadir}/pixmaps %files %license COPYING %doc AUTHORS README doc/Algorithms.* doc/*FileFormats.txt %doc doc/U4Notes.txt doc/tools.txt u4download.txt %{_bindir}/u4* %{_libdir}/u4 %{_datadir}/applications/u4.desktop %{_datadir}/icons/hicolor/128x128/apps/u4.png %changelog * Sat Jan 22 2022 Fedora Release Engineering - 1.1-0.43.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.1-0.42.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jan 28 2021 Fedora Release Engineering - 1.1-0.41.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1-0.40.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 1.1-0.39.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 1.1-0.38.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.1-0.37.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Sep 24 2018 Jason L Tibbitts III - 1.1-0.36.20150221svn3087 - Remove minizip-compat dependency. Revert to the small bundled piece of minizip. * Tue Sep 04 2018 Pavel Raiskup - 1.1-0.35.20150221svn3087 - rebuild against minizip-compat-devel, rhbz#1609830, rhbz#1615381 * Sat Jul 14 2018 Fedora Release Engineering - 1.1-0.34.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Feb 18 2018 Jason L Tibbitts III - 1.1-0.33.20150221svn3087 - Add build dependency on g++. - Remove Group: tag. - Add %%license. * Fri Feb 09 2018 Fedora Release Engineering - 1.1-0.32.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Jason L Tibbitts III - 1.1-0.31.20150221svn3087 - Remove icon-cache scriptlets. * Thu Aug 03 2017 Fedora Release Engineering - 1.1-0.30.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1-0.29.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1-0.28.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Oct 17 2016 Jason L Tibbitts III - 1.1-0.27.20150221svn3087 - Rebase unbundle.patch so that it actually applies with fuzz 0. * Fri Feb 05 2016 Fedora Release Engineering - 1.1-0.26.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 25 2015 Jason L Tibbitts III - Change %%defines to %%global. * Fri Jun 19 2015 Fedora Release Engineering - 1.1-0.25.20150221svn3087 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.1-0.24.20150221svn3087 - Rebuilt for GCC 5 C++11 ABI change * Tue Feb 24 2015 Jason L Tibbitts III - 1.1-0.23.20150221svn3087 - Oops, I screwed up and made the version go backwards. * Sat Feb 21 2015 Jason L Tibbitts III - 1.1-0.1.20150221svn3087 - Update from SVN. - Extract higher resulution icon from macos .icns archive. - Fix a format-security error. * Mon Aug 18 2014 Fedora Release Engineering - 1.1-0.22.20120106svn2999 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.1-0.21.20120106svn2999 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.1-0.20.20120106svn2999 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Feb 10 2013 Parag Nemade - 1.1-0.19.20120106svn2999 - Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 - Cleanup spec as per recently changed packaging guidelines * Sun Jul 22 2012 Fedora Release Engineering - 1.1-0.18.20120106svn2999 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 06 2012 Jason L Tibbitts III - 1.1-0.17.20120106svn2999 - Update to latest SVN. * Thu Dec 15 2011 Jason L Tibbitts III - 1.1-0.16.20111215svn2997 - Update to new snapshot, fixing (among other things) the libpng build issue. - Remove unneeded zipfile patch. - Use recommended gtk icon cache scriptlets. * Tue Dec 06 2011 Adam Jackson - 1.1-0.15.20110329svn2873 - Rebuild for new libpng * Tue Mar 29 2011 Jason L Tibbitts III - 1.1-0.14.20110329svn2873 - Slightly newer snapshot with more fixes. - Use the system minizip library instead of the ancient bundled version. * Tue Mar 29 2011 Jason L Tibbitts III - 1.1-0.13.20110329svn2869 - Update to latest SVN snapshot. - Drop gcc46 patch; no longer needed. - Add buildfix patch. - Install the .it music files manually so that music works again. - Switch from $RPM_* to macros with less yelling. * Tue Feb 08 2011 Fedora Release Engineering - 1.1-0.12.20110124svn2792 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 24 2011 Jason L Tibbitts III - 1.1-0.11.20110124svn2792 - Update to latest SVN, just past the beta4 tag made by upstream. - Add patch for building with gcc46. * Wed Jan 19 2011 Jason L Tibbitts III - 1.1-0.10.20110119svn2776 - Update to current SVN. Upstream indicates that this should fix bug 666631. * Thu Jan 06 2011 Jason L Tibbitts III - 1.1-0.9.20110106svn2767 - Update to current SVN now that development has picked back up. - Update to current Fedora packaging guidelines. - Turn on parallel make. - Update download links in autodlrc. * Tue Jan 19 2010 Jason L Tibbitts III - 1.1-0.8.20100119svn2725 - Upstream revived! Now uses SVN; switch everything over to that. - Provide a checkout script instead of requiring cut-n-paste. - Use correct versioning (date comes first). - Drop gcc44 patch; upstream has fixed the issues. * Mon Jul 27 2009 Fedora Release Engineering - 1.1-0.7.cvs20090209 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.1-0.6.cvs20090209 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 09 2009 Jason L Tibbitts III - 1.1-0.5.cvs20090209 - Update to latest CVS snapshot - it contains a few minor bugfixes. - Tweak for gcc 4.4. * Tue Feb 19 2008 Fedora Release Engineering - 1.1-0.4.cvs20070510 - Autorebuild for GCC 4.3 * Fri Jan 11 2008 Hans de Goede 1.1-0.3.cvs20070510 - Fix compilation with gcc 4.3 * Wed Aug 15 2007 Hans de Goede 1.1-0.2.cvs20070510 - Update License tag for new Licensing Guidelines compliance * Fri May 11 2007 Hans de Goede 1.1-0.1.20070510 - Update to latest CVS, as this actually makes the game finishable - Add missing BuildRequires: desktop-file-utils - Add u4download.txt to the docs * Thu Feb 1 2007 Hans de Goede 1.0-0.1.beta3 - Initial Fedora Extras package