124 Star 0 Fork 19

src-openEuler/motif

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
motif.spec 3.53 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2024-10-24 22:34 . Fix CVE-2022-44617 and CVE-2022-46285
Name: motif
Version: 2.3.8
Release: 6
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
%_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
* Fri Oct 25 2024 yaoxin <yao_xin001@hoperun.com> - 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 <zhangkai@iscas.ac.cn> - 2.3.8-4
- update config.guess and config.sub for riscv64
* Tue Dec 13 2022 huajingyun <huajingyun@loongson.cn> - 2.3.8-3
- update config.guess and config.sub for loongarch64
* Thu Aug 25 2022 Ge Wang <wangge20@h-partners.com> - 2.3.8-2
- add security compile option -fstack-protector-strong
* Wed Dec 29 2021 baizhonggui <baizhonggui@huawei.com> - 2.3.8-1
- update to 2.3.8
* Thu Nov 26 2020 zhanghua <zhanghua40@huawei.com> - 2.3.4-20
- fix url requests timeout problem
* Sat Nov 07 2020 Ge Wang <wangge20@huawei.com> - 2.3.4-19
- Set help package as motif package's install require
* Fri Nov 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.4-18
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/motif.git
git@gitee.com:src-openeuler/motif.git
src-openeuler
motif
motif
master

搜索帮助