Blame SPECS/execstack.spec

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