Name: motif Version: 2.3.8 Release: 7 Summary: Run-time libraries and programs License: LGPLv2+ URL: https://motif.ics.com/ Source0: http://downloads.sf.net/motif/motif-%{version}.tar.gz Source1: xmbind BuildRequires: automake, libtool, autoconf, flex, flex-static, byacc, pkgconfig, libjpeg-devel libpng-devel BuildRequires: libXft-devel libXmu-devel libXp-devel libXt-devel libXext-devel, xorg-x11-xbitmaps, perl-interpreter Requires: xorg-x11-xbitmaps, xorg-x11-xinit Requires: %{name}-help = %{version}-%{release} Provides: openmotif = %{version}-%{release} Conflicts: lesstif <= 0.92.32-6 Patch0: 0001-fix-motif-no-autogen.patch Patch1: Fix-issues-with-Werror-format-security.patch Patch2: CVE-2022-44617-1.patch Patch3: CVE-2022-44617-2.patch Patch4: CVE-2022-46285.patch %description This module is motif run-time environment, which includes the motif shared libraries. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release}, libjpeg-devel%{?_isa}, libpng-devel%{?_isa}, libXft-devel%{?_isa} Requires: libXmu-devel%{?_isa}, libXp-devel%{?_isa}, libXt-devel%{?_isa}, libXext-devel%{?_isa} Provides: openmotif-devel = %{version}-%{release} Obsoletes: openmotif-devel < 2.3.4 Provides: %{name}-static%{?_isa} %{name}-static Obsoletes: %{name}-static Conflicts: lesstif-devel <= 0.92.32-6 %description devel This package includes development files for %{name}. %package help Summary: man files for %{name} Requires: man %description help This package includes man files for %{name}. %prep %autosetup -p1 sed -i 's/-fno-strict-aliasing/-fstack-protector-strong -fno-strict-aliasing/g' configure.ac %ifarch loongarch64 riscv64 sw_64 %_update_config_guess %_update_config_sub %endif %build CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" ./autogen.sh --libdir=%{_libdir} --enable-static --enable-xft --enable-jpeg --enable-png %make_build clean make -C include %make_build %install %make_install install -d $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/xmbind.sh rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %ldconfig_scriptlets %files %doc COPYING /etc/X11/xinit/xinitrc.d/xmbind.sh %dir /etc/X11/mwm %config(noreplace) /etc/X11/mwm/system.mwmrc %{_bindir}/mwm %{_bindir}/xmbind %{_includedir}/X11/bitmaps/* %{_libdir}/*.so.* %{_datadir}/X11/bindings %files devel %{_bindir}/uil %{_includedir}/Mrm %{_includedir}/Xm %{_includedir}/uil %{_libdir}/*.so %{_libdir}/*.a %files help %{_mandir}/man*/* %changelog * Mon Feb 17 2025 zhangshaoning - 2.3.8-7 - Add sw_64 support * Fri Oct 25 2024 yaoxin - 2.3.8-6 - Fix CVE-2022-44617 and CVE-2022-46285 * Fri Aug 25 2023 xu_ping <707078654@qq.com> - 2.3.8-5 - Fix issues with Werror format security * Wed Jun 28 2023 laokz - 2.3.8-4 - update config.guess and config.sub for riscv64 * Tue Dec 13 2022 huajingyun - 2.3.8-3 - update config.guess and config.sub for loongarch64 * Thu Aug 25 2022 Ge Wang - 2.3.8-2 - add security compile option -fstack-protector-strong * Wed Dec 29 2021 baizhonggui - 2.3.8-1 - update to 2.3.8 * Thu Nov 26 2020 zhanghua - 2.3.4-20 - fix url requests timeout problem * Sat Nov 07 2020 Ge Wang - 2.3.4-19 - Set help package as motif package's install require * Fri Nov 29 2019 openEuler Buildteam - 2.3.4-18 - Package init