2015-08-04 14:32:17 +00:00
|
|
|
Name: execstack
|
|
|
|
Version: 0.5.0
|
2022-11-22 16:18:53 +00:00
|
|
|
Release: 24%{?dist}
|
2015-08-04 14:32:17 +00:00
|
|
|
Summary: Utility to set/clear/query executable stack bit
|
|
|
|
|
|
|
|
%global commit 4c79120bcdbde0616f592458ccde7035e92ca3d8
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
# work around for missing upstream tarball with latest checkin
|
|
|
|
Source0: https://github.com/keszybz/prelink/archive/%{commit}.tar.gz#/prelink-%{shortcommit}.tar.gz
|
|
|
|
|
2015-08-21 16:26:25 +00:00
|
|
|
Patch0: Add-PL_ARCH-for-AArch64.patch
|
2022-11-22 16:18:53 +00:00
|
|
|
Patch1: execstack-configure-c99.patch
|
2015-08-21 16:26:25 +00:00
|
|
|
|
2018-07-19 10:12:12 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2015-08-04 14:32:17 +00:00
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: libselinux-devel, libselinux-utils
|
2015-08-21 16:26:25 +00:00
|
|
|
BuildRequires: git
|
2020-12-17 05:13:53 +00:00
|
|
|
BuildRequires: make
|
2015-08-04 14:32:17 +00:00
|
|
|
Requires: glibc >= 2.2.4-18, coreutils, findutils
|
|
|
|
Requires: util-linux, gawk, grep
|
|
|
|
|
|
|
|
Obsoletes: prelink < 0.5.0-8
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package is built from prelink sources but contains just the
|
|
|
|
execstack binary. It can be used manipulate ELF binaries to run
|
|
|
|
with or without executable stack.
|
|
|
|
|
|
|
|
%prep
|
2015-08-21 16:26:25 +00:00
|
|
|
%autosetup -n prelink-%{commit} -p1 -Sgit
|
2015-08-04 14:32:17 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
sed -i -e '/^prelink_LDADD/s/$/ -lpthread/' src/Makefile.{am,in}
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags} -C gelf
|
|
|
|
make %{?_smp_mflags} -C gelfx
|
|
|
|
make %{?_smp_mflags} -C gelfx32
|
|
|
|
make %{?_smp_mflags} -C src execstack
|
|
|
|
|
|
|
|
%check
|
|
|
|
cp src/execstack test
|
|
|
|
src/execstack -q test | grep '^-'
|
|
|
|
src/execstack -s test
|
|
|
|
src/execstack -q test | grep '^X'
|
|
|
|
src/execstack -c test
|
|
|
|
src/execstack -q test | grep '^-'
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -D src/execstack %{buildroot}%{_bindir}/execstack
|
|
|
|
install -Dm0644 doc/execstack.8 %{buildroot}%{_mandir}/man8/execstack.8
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog NEWS README TODO THANKS
|
|
|
|
%{_bindir}/execstack
|
|
|
|
%{_mandir}/man8/execstack.8.*
|
|
|
|
|
|
|
|
%changelog
|
2022-11-22 16:18:53 +00:00
|
|
|
* Tue Nov 22 2022 Florian Weimer <fweimer@redhat.com> - 0.5.0-24
|
|
|
|
- Avoid implicit function declarations in configure (#2144890)
|
|
|
|
|
2022-07-21 02:36:24 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 02:30:41 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-21 22:29:44 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-26 05:05:12 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-27 17:02:14 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-28 17:57:04 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 00:03:03 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-01-31 19:12:35 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 00:14:15 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 09:04:18 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-02 20:22:34 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 07:54:27 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 09:29:45 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-03 20:08:50 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-08-21 16:26:25 +00:00
|
|
|
* Fri Aug 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-9
|
|
|
|
- Add support for aarch64 (#1251165)
|
|
|
|
|
2015-08-04 14:32:17 +00:00
|
|
|
* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-8
|
|
|
|
- Kill off most of prelink package
|