nasm/nasm.spec

115 lines
3.0 KiB
RPMSpec
Raw Normal View History

2020-01-13 22:26:31 +08:00
%global _module_build 1
%if 0%{?_module_build}
%bcond_with documentation
%else
%bcond_without documentation
%endif
2020-03-20 16:08:17 +08:00
Name: nasm
2023-05-18 16:09:15 +08:00
Version: 2.16.01
Release: 1
2020-03-20 16:08:17 +08:00
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
2022-05-11 15:29:54 +08:00
License: BSD-2-Clause
2020-03-20 16:08:17 +08:00
URL: http://www.nasm.us
2023-05-18 16:09:15 +08:00
Source0: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz
Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.xz
2021-01-07 10:46:03 +08:00
Patch6000: enable-make-check.patch
Patch6001: fix-help-info-error.patch
2019-12-14 18:58:35 +08:00
2023-05-18 16:09:15 +08:00
BuildRequires: perl(Env) autoconf asciidoc xmlto gcc make git automake
Obsoletes: nasm-rdoff < 2.16.01-1
2019-12-14 18:58:35 +08:00
%description
NASM is the Netwide Assembler, a free portable assembler for the Intel
80x86 microprocessor series, using primarily the traditional Intel
instruction mnemonics and syntax. It also provides tools in RDOFF binary
format, includes linker, library manager, loader, and information dump.
%package help
Summary: Help files for NASM
2020-01-13 22:26:31 +08:00
%if %{with documentation}
BuildRequires: perl(Font::TTF::Font) perl(File::Spec)
2023-05-18 16:09:15 +08:00
BuildRequires: perl(Sort::Versions) perl(sort)
2019-12-14 18:58:35 +08:00
BuildRequires: adobe-source-sans-pro-fonts adobe-source-code-pro-fonts
BuildRequires: ghostscript
Provides: %{name}-doc
Obsoletes: %{name}-doc
2020-01-13 22:26:31 +08:00
%endif
BuildArch: noarch
2019-12-14 18:58:35 +08:00
%description help
Help files for %{name}, includes documentation in HTML, PDF, PostScript,
and text formats.
%prep
%autosetup -n %{name}-%{version} -p1
2023-05-18 16:09:15 +08:00
tar xJf %{SOURCE1} --strip-components 1
2019-12-14 18:58:35 +08:00
%build
%configure
2020-01-13 22:26:31 +08:00
%if %{with documentation}
2020-07-23 15:54:04 +08:00
%make everything
2019-12-14 18:58:35 +08:00
gzip -9f doc/nasmdoc.{ps,txt}
2020-01-13 22:26:31 +08:00
%else
make all %{?_smp_mflags}
%endif
2019-12-14 18:58:35 +08:00
%install
2023-05-18 16:09:15 +08:00
%make_install
2019-12-14 18:58:35 +08:00
%check
make golden
make test
2019-12-14 18:58:35 +08:00
%files
2020-07-23 15:54:04 +08:00
%doc CHANGES README.md
2023-05-18 16:09:15 +08:00
%license AUTHORS LICENSE
2019-12-14 18:58:35 +08:00
%{_bindir}/nasm
%{_bindir}/ndisasm
%files help
2020-01-13 22:26:31 +08:00
%if %{with documentation}
2019-12-14 18:58:35 +08:00
%doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
2020-01-13 22:26:31 +08:00
%endif
2019-12-14 18:58:35 +08:00
%{_mandir}/man1/nasm*
%{_mandir}/man1/ndisasm*
%changelog
2023-05-18 16:09:15 +08:00
* Thu May 18 2023 liyanan <thistleslyn@163.com> - 2.16.01-1
- update to 2.16.01
2023-04-12 16:20:17 +08:00
* Wed Apr 12 2023 yaoxin <yao_xin001@hoperun.com> - 2.15.05-5
- Fix CVE-2022-44370
* Thu Jan 19 2023 yangchenguang <yangchenguang@uniontech.com> - 2.15.05-4
- Fix help info error
2022-05-11 15:29:54 +08:00
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 2.15.05-3
- License compliance rectification
* Sat Nov 27 2021 ExtinctFire <shenyining_00@126.com> - 2.15.05-2
- enable make check
2021-01-28 16:50:07 +08:00
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 2.15.05-1
- upgrade version to 2.15.05
2021-01-07 10:46:03 +08:00
* Thu Jan 07 2020 shixuantong <shixuantong@huawei.com> - 2.15.03-2
- fix CVE-2019-20352 CVE-2020-24241
2020-07-23 15:54:04 +08:00
* Thu Jul 23 2020 shixuantong <shixuantong@huawei.com> - 2.15.03-1
- update to 2.15.03-1
2020-06-09 14:57:51 +08:00
* Tue Jun 9 2020 lizhenhua <lizhenhua21@huawei.com> - 2.13.03-6
- fix compile error
2020-03-20 16:08:17 +08:00
* Fri Mar 20 2020 shijian<shijian16@huawei.com> - 2.13.03-5
- fix CVE-2018-10254
2020-01-13 22:26:31 +08:00
* Mon Jan 13 2020 openEuler BuildTeam<buildteam@openeuler.org> - 2.13.03-4
- build without documentation
2019-12-14 18:58:35 +08:00
* Mon Dec 09 2019 openEuler BuildTeam<buildteam@openeuler.org> - 2.13.03-3
- Package Init