Blame SPECS/memstomp.spec

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