[packages/cuyo] Up to 2.1.0

arekm arekm at pld-linux.org
Thu May 21 14:56:22 CEST 2026


commit d84a0bb52b7d3c2335bb42c6e813ceab88781878
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 14:56:04 2026 +0200

    Up to 2.1.0

 cuyo-make.patch | 12 ------------
 cuyo-qt.patch   | 54 ------------------------------------------------------
 cuyo.spec       | 56 +++++++++++++++++++++++---------------------------------
 3 files changed, 23 insertions(+), 99 deletions(-)
---
diff --git a/cuyo.spec b/cuyo.spec
index b1a002b..349f85a 100644
--- a/cuyo.spec
+++ b/cuyo.spec
@@ -1,18 +1,19 @@
 Summary:	Cuyo - a Tetris clone
 Summary(pl.UTF-8):	Cuyo - klon Tetrisa
 Name:		cuyo
-Version:	1.8.5
-Release:	3
-License:	GPL
+Version:	2.1.0
+Release:	1
+License:	GPL v2+
 Group:		X11/Applications/Games
-Source0:	http://freesoftware.fsf.org/download/cuyo/%{name}-%{version}.tar.gz
-# Source0-md5:	9c250217ab90baeb993a238b9b98f63f
-Patch0:		%{name}-make.patch
-Patch1:		%{name}-qt.patch
+Source0:	https://download.savannah.gnu.org/releases/cuyo/%{name}-%{version}.tar.gz
+# Source0-md5:	38dec00a4cf2a2ab520c09177cae86e7
 URL:		http://www.karimmi.de/cuyo/
-BuildRequires:	automake
-BuildRequires:	autoconf
-BuildRequires:	qt-devel
+BuildRequires:	SDL-devel >= 1.2.0
+BuildRequires:	SDL_mixer-devel
+BuildRequires:	bison
+BuildRequires:	flex
+BuildRequires:	gettext-tools
+BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,40 +24,29 @@ Cuyo to ciekawy klon Tetrisa.
 
 %prep
 %setup -q
-%patch -P0 -p1
-%patch -P1 -p1
 
 %build
-%{__aclocal} -I .
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-	QTDIR=%{_prefix}
-for i in src/{cuyo,prefs,punktefeld,spielfeld,startatdlg,tastenbtn,sound}.h; do
-	moc $i > ${i%.h}.moc.cpp
-done
-%{__make} \
-	CPPFLAGS=-I/usr/include/qt \
-	%{!?debug:CXXDBGFLAGS="-DQT_NO_DEBUG -DQT_NO_CHECK %{rpmcflags}"} \
-	%{?debug:CXXDBGFLAGS="%{debugcflags}"}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	gamesdir=%{_bindir}
+	DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS TODO README
 %attr(755,root,root) %{_bindir}/%{name}
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*.ld
-%dir %{_datadir}/%{name}/pics
-%{_datadir}/%{name}/pics/*
-%{_mandir}/man6/*
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_iconsdir}/hicolor/32x32/apps/%{name}.png
+%{_iconsdir}/hicolor/64x64/apps/%{name}.png
+%{_mandir}/man6/cual.6*
+%{_mandir}/man6/cuyo.6*
diff --git a/cuyo-make.patch b/cuyo-make.patch
deleted file mode 100644
index dd032d3..0000000
--- a/cuyo-make.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nur cuyo-1.6.0alpha5.orig/configure.in cuyo-1.6.0alpha5.chng/configure.in
---- cuyo-1.6.0alpha5.orig/configure.in	Fri Aug 30 19:00:54 2002
-+++ cuyo-1.6.0alpha5.chng/configure.in	Tue Sep 10 10:12:29 2002
-@@ -18,7 +18,7 @@
- AM_CONFIG_HEADER(config.h)
- 
- dnl g++: (*)
--dnl AC_PROG_CXX
-+AC_PROG_CXX
- dnl Das Programm, mit dem installiert wird:
- dnl AC_PROG_INSTALL
- dnl X-Libs und so: (*)
diff --git a/cuyo-qt.patch b/cuyo-qt.patch
deleted file mode 100644
index cbcac08..0000000
--- a/cuyo-qt.patch
+++ /dev/null
@@ -1,54 +0,0 @@
---- cuyo-1.8.5/gwqt.m4.orig	2004-07-07 14:30:39.000000000 +0200
-+++ cuyo-1.8.5/gwqt.m4	2004-10-30 19:08:58.435322817 +0200
-@@ -62,7 +62,7 @@
- 
- # Figure out which version of Qt we are using
- AC_MSG_CHECKING([Qt version])
--QT_VER=`grep 'define.*QT_VERSION_STR\W' $QTDIR/include/qglobal.h | perl -p -e 's/\D//g'`
-+QT_VER=`grep 'define.*QT_VERSION_STR\W' $QTDIR/include/qt/qglobal.h | perl -p -e 's/\D//g'`
- case "${QT_VER}" in
-     2*)
-         QT_MAJOR="2"
-@@ -122,39 +122,9 @@
-         ;;
- 
-     *)
--        QT_IS_DYNAMIC=`ls /usr/lib/libqt*.so $QTDIR/lib/libqt*.so 2> /dev/null` 
--        if test "x$QT_IS_DYNAMIC" = x;  then
--            QT_IS_STATIC=`ls /usr/lib/libqt*.a $QTDIR/lib/libqt*.a 2> /dev/null`
--            if test "x$QT_IS_STATIC" = x; then
--                AC_MSG_ERROR([*** Couldn't find any Qt libraries])
--            else
--                QT_IS_STATIC="yes"
--            fi
--	else
--                QT_IS_STATIC="no"
--        fi
--
--        if test "x`ls $QTDIR/lib/libqt.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqt"
--            QT_IS_MT="no"
--        elif test "x`ls $QTDIR/lib/libqt-mt.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqt-mt"
--            QT_IS_MT="yes"
--        elif test "x`ls $QTDIR/lib/libqte.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqte"
--            QT_IS_MT="no"
--            QT_IS_EMBEDDED="yes"
--        elif test "x`ls $QTDIR/lib/libqte-mt.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqte-mt"
--            QT_IS_MT="yes"
--            QT_IS_EMBEDDED="yes"
--        elif test "x`ls /usr/lib/libqt.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqt"
--            QT_IS_MT="no"
--        elif test "x`ls /usr/lib/libqt-mt.* 2> /dev/null`" != x ; then
--            QT_LIB="-lqt-mt"
--            QT_IS_MT="yes"
--        fi
-+	QT_IS_STATIC="no"
-+	QT_LIB="-lqt-mt"
-+	QT_IS_MT="yes"
-         ;;
- esac
- AC_MSG_CHECKING([if Qt is static])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cuyo.git/commitdiff/d84a0bb52b7d3c2335bb42c6e813ceab88781878



More information about the pld-cvs-commit mailing list