re-enable FORTIFY_SOURCE
This commit is contained in:
parent
3a79fab37d
commit
b2e79d898d
@ -1,8 +1,10 @@
|
|||||||
# This package used to be called "google-perftools", but it was renamed on 2012-02-03.
|
# This package used to be called "google-perftools", but it was renamed on 2012-02-03.
|
||||||
|
|
||||||
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
Name: gperftools
|
Name: gperftools
|
||||||
Version: 2.1
|
Version: 2.1
|
||||||
Release: 2%{?dist}
|
Release: 4%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Summary: Very fast malloc and performance analysis tools
|
Summary: Very fast malloc and performance analysis tools
|
||||||
@ -65,8 +67,8 @@ chmod -x src/sampler.h src/sampler.cc
|
|||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' | sed -e 's|-fexceptions||g'`
|
CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's|-fexceptions||g'`
|
||||||
CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' | sed -e 's|-fexceptions||g'`
|
CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's|-fexceptions||g'`
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
|
|
||||||
# Bad rpath!
|
# Bad rpath!
|
||||||
@ -76,14 +78,11 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}/ install
|
make DESTDIR=%{buildroot} docdir=%{_pkgdocdir}/ install
|
||||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
||||||
|
|
||||||
# Zero files
|
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/NEWS
|
|
||||||
|
|
||||||
# Delete useless files
|
# Delete useless files
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
rm -rf %{buildroot}%{_pkgdocdir}/INSTALL
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# http://code.google.com/p/google-perftools/issues/detail?id=153
|
# http://code.google.com/p/google-perftools/issues/detail?id=153
|
||||||
@ -102,7 +101,7 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_docdir}/%{name}-%{version}/
|
%{_pkgdocdir}/
|
||||||
%{_includedir}/google/
|
%{_includedir}/google/
|
||||||
%{_includedir}/gperftools/
|
%{_includedir}/gperftools/
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
@ -112,6 +111,13 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 4 2014 Tom Callaway <spot@fedoraproject.org> - 2.1-4
|
||||||
|
- re-enable FORTIFY_SOURCE
|
||||||
|
|
||||||
|
* Fri Dec 6 2013 Ville Skyttä <ville.skytta@iki.fi> - 2.1-3
|
||||||
|
- Install docs to %%{_pkgdocdir} where available (#993798), include NEWS.
|
||||||
|
- Fix bogus date in %%changelog.
|
||||||
|
|
||||||
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 2.1-2
|
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 2.1-2
|
||||||
- Perl 5.18 rebuild
|
- Perl 5.18 rebuild
|
||||||
|
|
||||||
@ -272,7 +278,7 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
|||||||
* Mon Apr 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-1
|
* Mon Apr 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-1
|
||||||
- alright, lets see if this works now.
|
- alright, lets see if this works now.
|
||||||
|
|
||||||
* Wed Oct 13 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-2
|
* Wed Oct 12 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-2
|
||||||
- change group to Development/Tools
|
- change group to Development/Tools
|
||||||
|
|
||||||
* Mon Oct 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-1
|
* Mon Oct 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-1
|
||||||
|
Loading…
Reference in New Issue
Block a user