Blame SPECS/execstack.spec

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