Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:Emulators
qmc2-0.195-6.87
qmc2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qmc2.spec of Package qmc2-0.195-6.87
# # spec file for package qmc2 # # Copyright (c) 2020 SUSE LLC # Copyright (c) 2017 Asterios Dramis <asterios.dramis@gmail.com>. # # 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 https://bugs.opensuse.org/ # Name: qmc2 Version: 0.195 Release: 6.87 Summary: MAME Catalog / Launcher II License: GPL-2.0-only Group: Amusements/Games/Other URL: https://qmc2.batcom-it.net/ Source0: http://downloads.sourceforge.net/qmc2/%{name}-%{version}.tar.bz2 # PATCH-FEATURE-OPENSUSE qmc2.ini.template.patch asterios.dramis@gmail.com -- Adapt qmc2.ini to openSUSE mame package Patch0: qmc2.ini.template.patch Patch1: qmc2-qt5-fixes.patch # PATCH-FIX-OPENSUSE qmc2-qt5.15.patch asterios.dramis@gmail.com - Fix compilation with qt-5.15 (patch taken from Archlinux) Patch2: qmc2-qt5.15.patch BuildRequires: fdupes BuildRequires: libqt5-linguist BuildRequires: openSUSE-release BuildRequires: pkgconfig BuildRequires: rsync BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5WebKitWidgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(Qt5XmlPatterns) BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) Recommends: mame-tools %if 0%{?suse_version} > 1210 BuildRequires: desktop-file-utils %else BuildRequires: update-desktop-files %endif %description QMC2 is a Qt based multi-platform GUI front end MAME. QMC2 – M.A.M.E. Catalog / Launcher II is the successor of one of the first UNIX M.A.M.E. GUI front ends available on this planet called QMamecat (derived from MAMECAT, which was text-only). %package arcade Summary: MAME Catalog / Launcher II - Arcade Mode Requires: %{name} = %{version} Requires: %{name}-sdlmame = %{version} Recommends: mame %description arcade QMC2 is a Qt based multi-platform GUI front end MAME. This package contains an "arcade" QML based graphical mode for MAME emulator. %package sdlmame Summary: MAME Catalog / Launcher II Requires: %{name} = %{version} Recommends: mame # qmc2-sdlmess was last used at version 0.49 Provides: qmc2-sdlmess = %{version} Obsoletes: qmc2-sdlmess < %{version} # qmc2-sdlume was last used at version 0.49 Provides: qmc2-sdlume = %{version} Obsoletes: qmc2-sdlume < %{version} %description sdlmame QMC2 is a Qt based multi-platform GUI front end MAME. This package supports the MAME emulator. %prep %setup -qcT # For compilation with arcade mode tar -jxf %{SOURCE0} mv %{name} arcade cd arcade %patch0 %patch1 -p1 %patch2 -p1 cd .. # For compilation with qchdman tar -jxf %{SOURCE0} mv %{name} qchdman cd qchdman %patch0 %patch1 -p1 %patch2 -p1 cd .. # For compilation with MAME support tar -jxf %{SOURCE0} mv %{name} sdlmame cd sdlmame %patch0 %patch1 -p1 %patch2 -p1 cd .. # For compilation of man pages tar -jxf %{SOURCE0} mv %{name} man cd man %patch0 %patch1 -p1 %patch2 -p1 cd .. %build COMMON_FLAGS="\ QMAKE=%{_bindir}/qmake-qt5 \ PREFIX=%{_prefix} \ SYSCONFDIR=%{_sysconfdir} \ SDL=2 \ DISTCFG=1 \ LIBARCHIVE=1 \ SYSTEM_ZLIB=1 \ " cd arcade %make_build CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS arcade cd .. cd qchdman %make_build CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS qchdman cd .. cd sdlmame %make_build CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS all cd .. cd man %make_build CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS man cd .. %install COMMON_FLAGS="\ QMAKE=%{_bindir}/qmake \ PREFIX=%{_prefix} \ SYSCONFDIR=%{_sysconfdir} \ SDL=2 \ DISTCFG=1 \ LIBARCHIVE=1 \ SYSTEM_ZLIB=1 \ " cd arcade mkdir -p %{buildroot}%{_bindir} make arcade-install DESTDIR=%{buildroot} CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS cd .. cd qchdman mkdir -p %{buildroot}%{_bindir} make qchdman-install DESTDIR=%{buildroot} CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS cd .. cd sdlmame make install DESTDIR=%{buildroot} CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS all cd .. cd man mkdir -p %{buildroot}%{_bindir} make man-install DESTDIR=%{buildroot} MAN_DIR=%{_mandir} CC_FLAGS="%{optflags}" CXX_FLAGS="%{optflags}" $COMMON_FLAGS cd .. # Remove qmc2 (not needed, qmc2-arcade and qmc2-sdlmame are used) rm -f %{buildroot}%{_bindir}/qmc2 # Remove docs (they are installed in %%{_defaultdocdir}) rm -rf %{buildroot}%{_datadir}/qmc2/doc/* # Manually install the doc files in order to fix "files-duplicate" rpmlint warning install -dp -m 0755 %{buildroot}%{_defaultdocdir}/%{name} cp -a sdlmame/data/doc/html/ %{buildroot}%{_defaultdocdir}/%{name}/ # Add a link in qmc datadir pointing to %%{_defaultdocdir} to fix docs display ln -s %{_defaultdocdir}/%{name}/html %{buildroot}%{_datadir}/qmc2/doc/html %if 0%{?suse_version} > 1210 desktop-file-edit --set-name="Qchdman" --remove-category=Emulator --add-category=Qt --add-category=Simulation %{buildroot}%{_datadir}/applications/qchdman.desktop desktop-file-edit --remove-category=Emulator --add-category=Qt --add-category=Simulation %{buildroot}%{_datadir}/applications/qmc2-arcade.desktop desktop-file-edit --remove-category=Emulator --add-category=Qt --add-category=Simulation %{buildroot}%{_datadir}/applications/qmc2-sdlmame.desktop %else %suse_update_desktop_file -N "Qchdman" -r %{buildroot}%{_datadir}/applications/qchdman.desktop Qt Game Simulation %suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/qmc2-arcade.desktop Qt Game Simulation %suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/qmc2-sdlmame.desktop Qt Game Simulation %endif %fdupes -s %{buildroot} %files %dir %{_sysconfdir}/qmc2 %config(noreplace) %{_sysconfdir}/qmc2/qmc2.ini %{_bindir}/qchdman %doc %{_defaultdocdir}/%{name}/ %{_datadir}/applications/qchdman.desktop %{_datadir}/qmc2/ %{_mandir}/man6/qchdman.6%{?ext_man} %{_mandir}/man6/qmc2.6%{?ext_man} %{_mandir}/man6/qmc2-main-gui.6%{?ext_man} %files arcade %{_bindir}/qmc2-arcade %{_datadir}/applications/qmc2-arcade.desktop %{_mandir}/man6/qmc2-arcade.6%{?ext_man} %files sdlmame %{_bindir}/qmc2-sdlmame %{_datadir}/applications/qmc2-sdlmame.desktop %{_mandir}/man6/qmc2-sdlmame.6%{?ext_man} %changelog * Tue Jul 14 2020 Asterios Dramis <asterios.dramis@gmail.com> - Added a patch (qmc2-qt5.15.patch) to fix compilation with qt-5.15. * Sun Feb 16 2020 Martin Hauke <mardnh@gmx.de> - Add patch to fix compilation with Qt5: * qmc2-qt5-fixes.patch * Wed Jun 27 2018 mardnh@gmx.de - Update to version 0.195 * See http://qmc2.batcom-it.net/index.php/2018/03/01/qmc2-0-195-released/ http://qmc2.batcom-it.net/index.php/2017/11/29/qmc2-0-192-released/ for details. - Build with Qt5. Updated build requirements to Qt5 (removed libQtWebKit-devel, libqt4-devel and phonon-devel build requirements for Qt4). - Change to pkgconfig style BuildRequires. * Fri Jul 7 2017 asterios.dramis@gmail.com - Update to version 0.187: * See http://qmc2.batcom-it.net/index.php/2017/07/02/qmc2-0-187-released/ for details. - Added new build requirements libarchive-devel and zlib-devel. - Updated qmc2.ini.template.patch. * Sat Jun 25 2016 asterios.dramis@gmail.com - Update to version 0.64: * See http://qmc2.batcom-it.net/index.php/2016/05/26/qmc2-0-64-released/ for details. - sldmess and sdlume were merged with sdlmame. Removed the subpackages and added the necessary Provides/Obsoletes entries for them. - Updated qmc2.ini.template.patch. * Mon Mar 9 2015 asterios.dramis@gmail.com - Update to version 0.49: * See http://qmc2.arcadehits.net/wordpress/2015/02/25/qmc2-0-49-released/ http://qmc2.arcadehits.net/wordpress/2015/01/28/qmc2-0-48-released/ http://qmc2.arcadehits.net/wordpress/2014/12/31/qmc2-0-47-released/ http://qmc2.arcadehits.net/wordpress/2014/11/26/qmc2-0-46-released/ http://qmc2.arcadehits.net/wordpress/2014/10/15/qmc2-0-45-released/ http://qmc2.arcadehits.net/wordpress/2014/07/23/qmc2-0-44-released/ for the detailed changelog. * Replaced SDL-devel build requirement with libSDL2-devel. * Sat May 10 2014 asterios.dramis@gmail.com - Update to version 0.43: * See http://qmc2.arcadehits.net/wordpress/2014/04/07/qmc2-0-43-released/ and http://qmc2.arcadehits.net/wordpress/2013/12/24/qmc2-0-42-released/ for the detailed changelog. - Updated the libqt4-devel build requirement to >= 4.8.0 (minimum version supported by the package). * Thu Nov 7 2013 asterios.dramis@gmail.com - Update to version 0.41: * fix: QMC2 Arcade: disabled GTK style related work-around for Mac OS X * fix: foreign emulator support: the selection of a foreign emulator in the system’s configuration wasn’t correctly honored on emu-launch * imp: template-map check: switched the order in which differing default values are logged (the expected value is shown first now, the second value is the one from the currently active template) * imp: QMC2 Arcade / ToxicWaste theme: updated cabinet overlay image made by Jacques Châtelet (JacKc), added auto-stopping of animation and wave effect when emulators are running * imp: new logo images for all QMC2 variants, also by Jacques Châtelet (JacKc) * imp: improved key-sequence and joystick-function scanners * new: QMC2 Arcade: added support for key-sequence mapping * new: QMC2 Arcade: added support for digital joysticks (mapping their functions to key-sequences) * new: Qt CHDMAN GUI: added a script-engine based on QtScript (ECMAScript/JavaScript) * doc: completed all man-pages * Mon Oct 28 2013 asterios.dramis@gmail.com - Update to version 0.40: * See http://qmc2.arcadehits.net/wordpress/2013/09/18/qmc2-0-40-released/ for the detailed changelog. * Sun Jun 16 2013 asterios.dramis@gmail.com - Update to version 0.39: * See http://qmc2.arcadehits.net/wordpress/2013/06/11/qmc2-0-39-released/ for the detailed changelog. - Use desktop-file-utils instead of update-desktop-files for openSUSE > 12.1. - Updated qmc2.ini.template.patch to add support for UME. * Sat Feb 2 2013 asterios.dramis@gmail.com - Update to version 0.38: * See http://qmc2.arcadehits.net/wordpress/2013/01/11/qmc2-0-38-released/ for the detailed changelog. - Added arcade subpackage ("arcade" QML based graphical mode). * Fri Sep 21 2012 asterios.dramis@gmail.com - Update to version 0.37: This major update synchronizes QMC2 with MAME, MESS and UME 0.147. The most important changes in this release include: * Support for UME has been added! * The image support has been rewritten completely (code unification) and a new multi-threaded image-checker has been created as a replacement for the old one which didn’t support all image types and was slightly buggy. * A new system-notes detail has been added, and both the software- and the new system-notes can now also be auto-filled with HTML through a neat template-mechanism that even supports some template-logic through JavaScript. * The YouTube video player now supports local movie files as well. They can be attached to games/machines in the same way as YouTube videos. * The game/machine detail tabs can now also be reordered directly in the GUI by dragging them with the mouse. * MESS device-mapper: support for nested slots and real slot recursion was added, slot-setups are now stored with the configurations, and the BIOS used in slot-devices can be selected (if applicable). * Software-lists: available mount-devices are dynamically updated whenever the device/slot setup changes, <info> elements contained in a number of software-list entries are now displayed as well, and the value for the emulator’s -snapname parameter can be auto-adjusted for easier creation of software-snapshots. * HTML editor: added document preview in built-in browser as well as new-from-template and revert-from-saved-file functionality. * Replaced all QMC2 variant logos and splash-screens with improved versions from JacKc. * See http://qmc2.svn.sourceforge.net/viewvc/qmc2/tags/0.37/data/doc/html/us/changes.html for the detailed changelog. - Rebased qmc2.ini.template.patch to apply cleanly. - Added sdlume subpackage (UME support). * Sun May 27 2012 asterios.dramis@gmail.com - Updated qmc2.ini.template.patch to include also the location of the sysinfo.dat machine information database file, contained in the mess package. * Sun May 27 2012 asterios.dramis@gmail.com - Update to version 0.36: * See http://qmc2.svn.sourceforge.net/viewvc/qmc2/tags/0.36/data/doc/html/us/changes.html for the detailed changelog. - Rebased qmc2.ini.template.patch to adapt it to the OBS mame and mess packages from the Emulators project. Removed support for the Packman mame package. - Removed make build options that are already enabled by default. - Added a link in qmc datadir pointing to %%{_defaultdocdir} to fix docs display. * Sun Mar 4 2012 asterios.dramis@gmail.com - Update to version 0.35: * See http://qmc2.svn.sourceforge.net/viewvc/qmc2/tags/0.35/data/doc/html/us/changes.html for the detailed changelog. - Rebased qmc2.ini.template.patch to apply cleanly. - Spec file updates: * Link openSUSE.cfg to the correct file for openSUSE >= 12.1. Also added support for future openSUSE Milestone, Beta and RC releases. * Sun Jan 29 2012 asterios.dramis@gmail.com - Spec file updates: * Recommend "mame" and "mess" packages in qmc2-sdlmame and qmc2-sdlmess respectively. * Sun Nov 27 2011 asterios.dramis@gmail.com - Update to version 0.34: * See http://qmc2.svn.sourceforge.net/viewvc/qmc2/tags/0.34/data/doc/html/us/changes.html for the detailed changelog. - Spec file updates: * Removed the update-alternatives use (not needed). * Changes based on spec-cleaner run. * Removed libkde4-devel from BuildRequires: (not needed). Added libQtWebKit-devel and phonon-devel which are enough. * Link openSUSE.cfg to the correct file for openSUSE >= 12.1. * Remove qmc2 binary (not needed, qmc2-sdlmame and qmc2-sdlmess are used). * Don't install %%{_datadir}/qmc2/doc/ (docs are installed in %%{_defaultdocdir}). - Added a patch (qmc2.ini.template.patch) to adapt qmc2.ini.template to Packman mame package. Also made something similar for mess. * Sat Aug 13 2011 asterios.dramis@gmail.com - Initial release (version 0.2.b20).
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor