Blame SPECS/memstomp.spec

6c0663
%{?scl:%{?scl_package:%scl_package binutils}}
6c0663
6c0663
%global		githash 38573e7d
6c0663
Name:		%{?scl_prefix}memstomp
6c0663
Version:	0.1.5
6c0663
Release:	5%{?dist}
6c0663
Summary:	Warns of memory argument overlaps to various functions
6c0663
Group:		Development/Debuggers
6c0663
# The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which
6c0663
# is GPLv2+ by way of being a hacked up old version of binutils's addr2line.
6c0663
# backtrace-symbols.c is built into an independent .so to avoid license contamination
6c0663
License:	LGPLv3+ and GPLv2+
6c0663
URL:		git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
6c0663
# The source for this package was pulled from upstream's vcs.  Use the
6c0663
# following commands to generate the tarball:
6c0663
# git clone git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
6c0663
# cd memstomp
6c0663
# git archive --prefix memstomp-0.1.5-38573e7d/ master | gzip > memstomp-0.1.5-38573e7d.tar.gz
6c0663
Source0:	memstomp-%{version}-%{githash}.tar.gz
6c0663
Requires:	util-linux
6c0663
BuildRequires:	binutils-devel autoconf automake dejagnu
6c0663
BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
6c0663
6c0663
Patch0: memstomp-testsuite.patch
6c0663
Patch1: memstomp-man.patch
6c0663
Patch2: memstomp-rh961495.patch
6c0663
Patch3: memstomp-rh962763.patch
6c0663
Patch4: memstomp-quietmode.patch
6c0663
Patch5: memstomp-rh1093173.patch
6c0663
Patch6: memstomp-rh1133815.patch
6c0663
Patch7: memstomp-implicit-int.patch
6c0663
6c0663
6c0663
%define alternatives_cmd %{!?scl:%{_sbindir}}%{?scl:%{_root_sbindir}}/alternatives
6c0663
%define alternatives_cmdline %{alternatives_cmd}%{?scl: --altdir %{_sysconfdir}/alternatives --admindir %{_scl_root}/var/lib/alternatives}
6c0663
6c0663
%{?scl:Requires:%scl_runtime}
6c0663
6c0663
6c0663
%description 
6c0663
memstomp is a simple program that can be used to identify
6c0663
places in code which trigger undefined behavior due to
6c0663
overlapping memory arguments to certain library calls.
6c0663
6c0663
%post -p /sbin/ldconfig
6c0663
%postun -p /sbin/ldconfig
6c0663
6c0663
%prep
6c0663
%setup -q -n memstomp-%{version}-%{githash}
6c0663
%patch0 -p1
6c0663
%patch1 -p1
6c0663
%patch2 -p1
6c0663
%patch3 -p1
6c0663
%patch4 -p1
6c0663
%patch5 -p1
6c0663
%patch6 -p1
6c0663
%patch7 -p1
6c0663
6c0663
6c0663
%build
6c0663
autoreconf
6c0663
%configure
6c0663
# We force -O0 here because memstomp essentially relies on GCC
6c0663
# not removing any of its checks.  GCC continues to get better
6c0663
# and twarting its optimizer isn't something I have any interest
6c0663
# in maintaining over time.  So just force -O0 for stupid code
6c0663
# generation.
6c0663
make %{?_smp_mflags} CFLAGS+="-O0 -fno-strict-aliasing"
6c0663
make -k check
6c0663
6c0663
%install
6c0663
make install DESTDIR=$RPM_BUILD_ROOT
6c0663
6c0663
%files
6c0663
%doc README LGPL3 GPL2 GPL3
6c0663
%{_bindir}/memstomp
6c0663
%{_libdir}/libmemstomp.so
6c0663
%{_libdir}/libmemstomp-backtrace-symbols.so
6c0663
%{_mandir}/man1/memstomp.1.gz
6c0663
6c0663
%changelog
6c0663
* Tue Aug  6 2019 Marek Polacek <polacek@redhat.com> 0.1.5-5
6c0663
- Rebuild for DTS 9 (#1738270)