Name:           yasm
Version:        1.3.0
Release:        13
Summary:        NASM assembler
License:        BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
URL:            https://yasm.tortall.net/
Source0:        https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz

Patch1:         yasm-1.3.0-sw.patch
Patch2:         CVE-2023-37732.patch
Patch3:         CVE-2023-31975.patch
Patch4:         CVE-2021-33454.patch
# from debian
Patch5:         CVE-2021-33464.patch
# from debian
Patch6:         CVE-2023-29579.patch

BuildRequires:  gcc bison byacc gettext-devel xmlto
Provides:       bundled(md5-plumb)

%description
Yasm is a complete rewrite of the NASM assembler under the “new” BSD License.

%package devel
Summary:        The libraries and headers for yasm
Requires:       yasm  = %{version}-%{release}
Provides:       yasm-static = %{version}-%{release} bundled(md5-plumb)

%description devel
The package contains the libraries and headers necessary for the yasm Modular Assembler.

%package_help

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%files
%license Artistic.txt BSD.txt COPYING GNU_GPL-2.0 GNU_LGPL-2.0
%doc AUTHORS
%{_bindir}/*

%files devel
%{_includedir}/*
%{_libdir}/libyasm.a

%files help
%{_mandir}/man?/*

%changelog
* Mon May 12 2025 Funda Wang <fundawang@yeah.net> - 1.3.0-13
- fix CVE-2021-33454, CVE-2021-33464, CVE-2023-29579

* Tue Aug 15 2023 liningjie <liningjie@xfusion.com> - 1.3.0-12
- fix CVE-2023-31975

* Fri Aug 11 2023 liningjie <liningjie@xfusion.com> - 1.3.0-11
- fix CVE-2023-37732

* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1.3.0-10
- Add sw64 architecture

* Mon Jan 6 2020 qinjian <qinjian18@huawei.com> - 1.3.0-9
- Package init
