File xtrascreenhacks.spec of Package xtrascreenhacks

#
# spec file for package xtrascreenhacks
#
# Copyright (c) 2022 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:           xtrascreenhacks
Version:        0.7+git20150119
Release:        0
Summary:        Collection of openGL Screensavers
License:        GPL-2.0-only AND MIT
Group:          Amusements/Toys/Screensavers
URL:            https://github.com/shegeek/xtrascreenhacks
Source:         https://github.com/shegeek/xtrascreenhacks/archive/master.tar.gz#/%{name}-master.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bc
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  xscreensaver
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(glut)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xt)
Requires:       xscreensaver

%description
XtraScreenHacks is a collection of display modes that are based on and intended
to be run with the XScreensaver distribution. Requires Xlib and OpenGL.

Included screensavers:
* Skylark, the classic 1950s kitchen table top
* Soma, the 3d cube puzzle
* Berlin-Uhr, the Berlin Quantity Didactics Clock
* Flyer
* Daisy
* Twinkle
* HH-Tree

For these screensavers to work, you will need to add entries to your
$HOME/.xscreensaver file by hand. Add the following lines:
-                               daisy -root                                 \n\
-                               twinkle -root                               \n\
- GL:                           flyer -root                                 \n\
- GL:             "Berlin-Uhr"  berlinuhr -root                             \n\
- GL:                           soma -root                                  \n\
- GL:                           skylark -root                               \n\
- GL:                           craters -root                               \n\
- GL:                           psychedelic -root                           \n\
- GL:                "HH-Tree"  hhtree -root                                \n\

%prep
%setup -q -n %{name}-master

%build
CFLAGS="%{optflags} -DHAVE_SYS_WAIT_H"
%configure \
    --with-hackdir="%{_libexecdir}/xscreensaver" \
    --with-configdir="%{_sysconfdir}/xscreensaver" \
    --with-xshm-ext \
    --with-xdbe-ext \
    --with-gl \
    --with-jpeg
%make_build

%install
%make_install install_prefix=%{buildroot}

%files
%doc README INSTALL
%license COPYING LICENSE
%dir %{_sysconfdir}/xscreensaver
%config(noreplace) %{_sysconfdir}/xscreensaver/*.xml
%{_libexecdir}/xscreensaver
%{_datadir}/xtrascreenhacks
%{_mandir}/man6/*.6%{?ext_man}*

%changelog
openSUSE Build Service is sponsored by