patch/patch.spec

65 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:11:23 -04:00
Name: patch
Version: 2.7.6
2019-11-06 19:45:18 +08:00
Release: 7
2019-09-30 11:11:23 -04:00
Summary: Utiliity which applies a patch file to original files.
License: GPLv3+
URL: http://www.gnu.org/software/patch/patch.html
Source0: https://ftp.gnu.org/gnu/patch/patch-%{version}.tar.xz
Patch0: patch-CVE-2018-1000156.patch
Patch1: patch-selinux.patch
Patch6000: CVE-2018-6951.patch
Patch6001: Fix-check-of-return-value-of-fwrite.patch
Patch6002: Don-t-leak-temporary-file-on-failed-ed-style-patch.patch
Patch6003: Don-t-leak-temporary-file-on-failed-multi-file-ed-st.patch
Patch6004: Fix-swapping-fake-lines-in-pch_swap.patch
BuildRequires: gcc libselinux-devel libattr-devel ed
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-root
%description
Patch takes a patch file containing a difference listing produced by the
diff program and applies those differences to one or more original files,
producing patched versions.
%package help
Summary: help document
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description help
This package provides help document for patch.
%prep
%autosetup -p1
%build
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
%configure --disable-silent-rules
%make_build
%check
make check
%install
%makeinstall
%files
%defattr(-,root,root)
2019-11-06 19:45:18 +08:00
%doc README ChangeLog
2019-09-30 11:11:23 -04:00
%license COPYING
%{_bindir}/patch
%files help
%defattr(-,root,root)
2019-11-06 19:45:18 +08:00
%doc NEWS
2019-09-30 11:11:23 -04:00
%{_mandir}/man1/*
%changelog
2019-11-06 19:45:18 +08:00
* Mon Oct 21 2019 shenyangyang <shenyangyang4@huawei.com> - 2.7.6-7
- Type:NA
- ID:NA
- SUG:NA
- DESC:move README and ChangeLog to main package
2019-09-30 11:11:23 -04:00
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.com> - 2.7.6-6
- Package Init