Blame SPECS/memstomp.spec

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