File activate-linux.spec of Package activate-linux

#
# spec file for package activate-linux
#
# Copyright (c) 2025 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:		activate-linux
Version:	0
Release:	0
Summary:	The "Activate Windows" watermark ported to Linux
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:	GPL-3.0-only
URL:		https://github.com/MrGlockenspiel/activate-linux
Source:		_service
Source1:	activate-linux.service
BuildRequires:	wayland-devel
BuildRequires:	wayland-protocols-devel
BuildRequires:	libconfig-devel
BuildRequires:	pango-devel
%description
The "Activate Windows" watermark ported to Linux

"Science isn't about WHY. It's about WHY NOT. Why is so much of our science dangerous? Why not marry safe science if you love it so much. In fact, why not invent a special safety door that won't hit you on the butt on the way out, because you are fired."
%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%__mkdir -p %_builddir/%_sourcedir
%__ln -s %_sourcedir/%name-%version %_builddir/%_sourcedir
%__sed -i -e 's|backends ?= wayland x11|backends ?= wayland|g' \
-e 's|$(MANDIR)/man1/activate-linux.1|$(DESTDIR)$(MANDIR)/man1/activate-linux.1|g' \
-e 's|PREFIX ?= /usr/local|PREFIX ?= %_prefix|g' Makefile
%build
%{set_build_flags}
%make_build

%install
%make_install
%__install -D -m 644 %{SOURCE1} %{buildroot}%{_userunitdir}/activate-linux.service

%files
%{_bindir}/%name
%license LICENSE.md
%doc ARGS.md README.md
%{_mandir}/man1/activate-linux.1.gz
%{_userunitdir}/activate-linux.service

%changelog

openSUSE Build Service is sponsored by