112 lines
3.5 KiB
RPMSpec
112 lines
3.5 KiB
RPMSpec
%global githash 38573e7d
|
|
Name: memstomp
|
|
Version: 0.1.4
|
|
Release: 14%{?dist}
|
|
Summary: Warns of memory argument overlaps to various functions
|
|
Group: Development/Debuggers
|
|
# The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which
|
|
# is GPLv2+ by way of being a hacked up old version of binutils's addr2line.
|
|
# backtrace-symbols.c is built into an independent .so to avoid license contamination
|
|
License: LGPLv3+ and GPLv2+
|
|
URL: git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
|
|
# The source for this package was pulled from upstream's vcs. Use the
|
|
# following commands to generate the tarball:
|
|
# git glone git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
|
|
# cd memstomp
|
|
# git archive --prefix memstomp-0.1.4-38573e7d/ master | gzip > memstomp-0.1.4-3867e37d.tar.gz
|
|
Source0: %{name}-%{version}-%{githash}.tar.gz
|
|
Requires: util-linux
|
|
BuildRequires: binutils-devel autoconf automake dejagnu
|
|
|
|
Patch0: memstomp-testsuite.patch
|
|
Patch1: memstomp-man.patch
|
|
Patch2: memstomp-rh961495.patch
|
|
Patch3: memstomp-rh962763.patch
|
|
Patch4: memstomp-quietmode.patch
|
|
Patch5: memstomp-rh1093173.patch
|
|
|
|
|
|
%description
|
|
memstomp is a simple program that can be used to identify
|
|
places in code which trigger undefined behavior due to
|
|
overlapping memory arguments to certain library calls.
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-%{githash}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
|
|
|
|
%build
|
|
autoreconf
|
|
%configure
|
|
make %{?_smp_mflags} CFLAGS+="-fno-strict-aliasing"
|
|
make -k check
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%doc README LGPL3 GPL2 GPL3
|
|
%{_bindir}/memstomp
|
|
%{_libdir}/libmemstomp.so
|
|
%{_libdir}/libmemstomp-backtrace-symbols.so
|
|
%{_mandir}/man1/memstomp.1.gz
|
|
|
|
%changelog
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed Jun 4 2014 Jeff Law <law@redhat.com> 0.1.4-12
|
|
- Fix cut-n-paste bug in memmem
|
|
|
|
* Thu May 29 2014 Jeff Law <law@redhat.com> 0.1.4-11
|
|
- Add checking of various str* and mem* for NULL arguments (#1093173)
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Thu May 30 2013 Jeff Law <law@redhat.com> 0.1.4-9
|
|
- Add -q/--quiet options for quiet mode.
|
|
|
|
* Tue May 14 2013 Jeff Law <law@redhat.com> 0.1.4-8
|
|
- Link in libiberty too (#962763)
|
|
|
|
* Fri May 10 2013 Jeff Law <law@redhat.com> 0.1.4-7
|
|
- Improve man page (#961518)
|
|
|
|
* Thu May 09 2013 Jeff Law <law@redhat.com> 0.1.4-5
|
|
- Fix typo in initialization message (#961495)
|
|
|
|
* Fri Mar 15 2013 Jeff Law <law@redhat.com> 0.1.4-4
|
|
- Build tests with -fno-builtin
|
|
|
|
* Mon Mar 11 2013 Jeff Law <law@redhat.com> 0.1.4-4
|
|
- Add manpage
|
|
- Add initial testsuite
|
|
|
|
* Fri Feb 22 2013 Jeff Law <law@redhat.com> 0.1.4-3
|
|
- Change %%define to %%global for git hash
|
|
- Remove git hash from version # in changelog
|
|
- Build with -fno-strict-aliasing
|
|
- Fix minor spelling error in description
|
|
|
|
* Tue Feb 5 2013 Jeff Law <law@redhat.com> 0.1.4-2
|
|
- Remove commands/directives automatically handled by rpm
|
|
- Add comment on how to build the tarball
|
|
- Change Requires to reference package rather than file
|
|
- Add comments on licensing issues
|
|
- Add autoconf and automake to BuildRequires
|
|
|
|
* Tue Feb 5 2013 Jeff Law <law@redhat.com> 0.1.4-1
|
|
- Initial release
|