Update to v1.0.0, the first stable release of the fork.

- Switch from imake/xmkmf to the new upstream Makefile build system.
- Add libXrender-devel, libXfixes-devel and pkgconf-pkg-config BuildRequires.
This commit is contained in:
Anders da Silva Rytter Hansen 2026-09-15 13:28:24 +02:00
commit b3bf845e59

View file

@ -9,32 +9,29 @@
# dnf copr enable @xlibre/xlibre-xserver
# or build/install libXpresent from source (https://gitlab.freedesktop.org/xorg/lib/libxpresent).
#
# The build uses the legacy imake/xmkmf build system (provided by the
# 'imake' package, available in EPEL on EL9/EL10).
%global commit b6745cc4236415983ff9f19a03f5c83a9def7429
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global snapdate 20260824
# Since v1.0.0 the build uses a plain Makefile; the legacy imake/xmkmf
# build system is no longer needed.
Name: 12to11
Version: 0
Release: 0.1.%{snapdate}git%{shortcommit}%{?dist}
Version: 1.0.0
Release: 1%{?dist}
Summary: Wayland to X11 protocol translator
License: GPL-3.0-only
URL: https://github.com/fish4terrisa-MSDSM/12to11
Source0: %{url}/archive/%{commit}/12to11-%{commit}.tar.gz
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
# Build dependencies
# imake is in EPEL on EL9/EL10.
BuildRequires: make
BuildRequires: gcc
BuildRequires: imake
BuildRequires: pkgconf-pkg-config
BuildRequires: gawk
BuildRequires: wayland-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libXfixes-devel
BuildRequires: libXi-devel
BuildRequires: libxcb-devel
BuildRequires: pixman-devel
@ -58,7 +55,7 @@ displaying Wayland applications as normal X windows. It implements a
broad set of Wayland protocols including wl_data_device_manager (clipboard),
zwp_linux_dmabuf_v1, xdg_wm_base, zwp_text_input_manager_v3, and more.
When built with EGL support (the default in this package), it uses
When built with EGL support (the upstream default), it uses
OpenGL ES 2.0 for rendering, enabling YUV video format support and
hardware-accelerated compositing.
@ -72,30 +69,32 @@ fish4terrisa-MSDSM; the original SourceForge project has been
unmaintained since 2022.
%prep
%autosetup -n 12to11-%{commit}
%autosetup
%build
# Generate Makefile from Imakefile using the legacy imake system.
xmkmf -a
# Build with EGL support (already enabled by default in 12to11.conf).
# The Makefile picks up HaveEglSupport from 12to11.conf.
%{make_build}
# Export the RPM build flags: the Makefile uses CFLAGS ?= / LDFLAGS +=
# so exported values are picked up (and -pthread is still appended).
export CFLAGS="%{optflags}"
export LDFLAGS="%{?build_ldflags}"
# ANALYZE=0 disables GCC's -fanalyzer (on by default upstream); it only
# produces diagnostics and slows the build down considerably.
%make_build ANALYZE=0
%install
%{make_install} DESTDIR=%{buildroot}
# Install the manual page manually (imake's install.man target can be
# unreliable across distros due to CppManTarget/nroff dependencies).
install -D -p -m 0644 12to11.man %{buildroot}%{_mandir}/man1/12to11.1
%{make_install} DESTDIR=%{buildroot} PREFIX=%{_prefix} BINDIR=%{_bindir} MANDIR=%{_mandir}
%files
%license COPYING
%doc README
%doc README.md
%{_bindir}/12to11
%{_mandir}/man1/12to11.1*
%changelog
* Tue Sep 15 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 1.0.0-1
- Update to v1.0.0, the first stable release of the fork.
- Switch from imake/xmkmf to the new upstream Makefile build system.
- Add libXrender-devel, libXfixes-devel and pkgconf-pkg-config BuildRequires.
* Thu Sep 03 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 0-0.1.20260824gitb6745cc
- Initial RPM package for 12to11 (fish4terrisa-MSDSM fork).
- Built with EGL/GLESv2 rendering support.