Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
hextris
hextris.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hextris.spec of Package hextris
# # spec file for package hextris # # Copyright (c) 2024 SUSE LLC # # 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: hextris %if 0%{?suse_version} > 01220 BuildRequires: fontpackages-devel %endif BuildRequires: bdftopcf BuildRequires: imake BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: pkg-config BuildRequires: pkgconfig(x11) %if 0%{?suse_version} >= 1330 BuildRequires: system-user-games Requires(pre): user(uucp) group(uucp) %endif Provides: cxhextris Provides: xhextris Version: 1.0 Release: 0 Summary: Xhextris and CXhextris, hexagonal versions of Xtetris License: MIT Group: Amusements/Games/Puzzle Source: hextris.tar.gz Patch0: hextris.dif URL: http://www.hextris.com/blog/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_exec_prefix" == "/usr/X11R6" %define _x11bin %{_exec_prefix}/bin %define _x11fonts %{_exec_prefix}/lib/X11/fonts %else %define _x11bin %{_bindir} %define _x11fonts %{_datadir}/fonts %endif %description This package provides two games under X Window System: Xhextris and the colored version CXhextris. Both are fast games involving dropping hexagonal blocks similar to xtetris. Both version are modified. They use the same font (but different letters) and they use the cursor keys. Authors: -------- David Markley <dam@cs.cmu.edu> Khun Yee Fung <clipper@csd.uwo.ca> %prep %setup -n hextris %patch -P0 %build if grep -q _DEFAULT_SOURCE /usr/include/features.h ; then sed -ri 's/-D_BSD_SOURCE[[:space:]]+-D_SVID_SOURCE/-D_DEFAULT_SOURCE/' Makefile.Linux fi make %{?_smp_mflags} -f Makefile.Linux compile FONTDIR=%{_x11fonts} MANDIR=%{_mandir} %install make -f Makefile.Linux install DESTDIR=%{buildroot} FONTDIR=%{_x11fonts} MANDIR=%{_mandir} mkdir %{buildroot}%{_sysconfdir} mkdir %{buildroot}%{_sysconfdir}/permissions.d # cat > %{buildroot}%{_sysconfdir}/permissions.d/hextris <<-EOF # %{_x11bin}/cxhextris games:games 2755 # %{_x11bin}/tophextris games:games 2755 # %{_x11bin}/xhextris games:games 2755 # EOF %if 0%{?suse_version} > 01220 %reconfigure_fonts_scriptlets %else %post %run_suseconfig_fonts %postun %run_suseconfig_fonts %endif %files %defattr(-, root, root) %attr(755, games, games) %{_x11bin}/cxhextris %attr(755, games, games) %{_x11bin}/tophextris %attr(755, games, games) %{_x11bin}/xhextris %dir %{_x11fonts}/misc %{_x11fonts}/misc/xhextris.pcf.gz %doc %{_mandir}/man1/cxhextris.1.gz %doc %{_mandir}/man1/xhextris.1.gz %attr(664, games, games) %config(noreplace) /var/games/cxhextris-scores %attr(664, games, games) %config(noreplace) /var/games/xhextris-scores #%{_sysconfdir}/permissions.d/hextris %changelog
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