Blame SPECS/execstack.spec

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