Blame SPECS/execstack.spec

3e694c
Name:           execstack
3e694c
Version:        0.5.0
3e694c
Release:        23%{?dist}
3e694c
Summary:        Utility to set/clear/query executable stack bit
3e694c
3e694c
%global commit 4c79120bcdbde0616f592458ccde7035e92ca3d8
3e694c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
3e694c
3e694c
License: GPLv2+
3e694c
# work around for missing upstream tarball with latest checkin
3e694c
Source0: https://github.com/keszybz/prelink/archive/%{commit}.tar.gz#/prelink-%{shortcommit}.tar.gz
3e694c
3e694c
Patch0:  Add-PL_ARCH-for-AArch64.patch
3e694c
Patch1:  coverity.patch
3e694c
3e694c
BuildRequires: gcc
3e694c
BuildRequires: gcc-c++
3e694c
BuildRequires: elfutils-libelf-devel
3e694c
BuildRequires: libselinux-devel, libselinux-utils
3e694c
BuildRequires: git
3e694c
BuildRequires: make
3e694c
Requires: glibc >= 2.2.4-18, coreutils, findutils
3e694c
Requires: util-linux, gawk, grep
3e694c
3e694c
Obsoletes:     prelink < 0.5.0-8
3e694c
3e694c
%description
3e694c
This package is built from prelink sources but contains just the
3e694c
execstack binary. It can be used manipulate ELF binaries to run
3e694c
with or without executable stack.
3e694c
3e694c
%prep
3e694c
%autosetup -n prelink-%{commit} -p1 -Sgit
3e694c
3e694c
%build
3e694c
sed -i -e '/^prelink_LDADD/s/$/ -lpthread/' src/Makefile.{am,in}
3e694c
%configure
3e694c
make %{?_smp_mflags} -C gelf
3e694c
make %{?_smp_mflags} -C gelfx
3e694c
make %{?_smp_mflags} -C gelfx32
3e694c
make %{?_smp_mflags} -C src execstack
3e694c
3e694c
%check
3e694c
cp src/execstack test
3e694c
src/execstack -q test | grep '^-'
3e694c
src/execstack -s test
3e694c
src/execstack -q test | grep '^X'
3e694c
src/execstack -c test
3e694c
src/execstack -q test | grep '^-'
3e694c
3e694c
%install
3e694c
install -D src/execstack %{buildroot}%{_bindir}/execstack
3e694c
install -Dm0644 doc/execstack.8 %{buildroot}%{_mandir}/man8/execstack.8
3e694c
3e694c
%files
3e694c
%license COPYING
3e694c
%doc ChangeLog NEWS README TODO THANKS
3e694c
%{_bindir}/execstack
3e694c
%{_mandir}/man8/execstack.8.*
3e694c
3e694c
%changelog
3e694c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.0-23
3e694c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
3e694c
  Related: rhbz#1991688
3e694c
3e694c
* Fri Jul 30 2021 Nikola Forró <nforro@redhat.com> - 0.5.0-22
3e694c
- Fix important Covscan defects
3e694c
  resolves: #1938712
3e694c
3e694c
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.0-21
3e694c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
3e694c
3e694c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-20
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3e694c
3e694c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-19
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3e694c
3e694c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-18
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3e694c
3e694c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-17
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3e694c
3e694c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-16
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3e694c
3e694c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-15
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3e694c
3e694c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3e694c
3e694c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-13
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3e694c
3e694c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-12
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3e694c
3e694c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3e694c
3e694c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-10
3e694c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3e694c
3e694c
* Fri Aug 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-9
3e694c
- Add support for aarch64 (#1251165)
3e694c
3e694c
* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-8
3e694c
- Kill off most of prelink package