Accepting request 341816 from home:pluskalm:branches:devel:libraries:c_c++

- Update project and download url
- Tiny spec file cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/341816
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=29
This commit is contained in:
Ismail Dönmez 2015-10-31 14:05:02 +00:00 committed by Git OBS Bridge
parent 15145287ff
commit 9ee6e8c644
2 changed files with 43 additions and 33 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 31 13:35:12 UTC 2015 - mpluskal@suse.com
- Update project and download url
- Tiny spec file cleanup with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 10 16:30:24 UTC 2015 - cgardner@suse.com Mon Jan 10 16:30:24 UTC 2015 - cgardner@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gperftools # spec file for package gperftools
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,15 +15,15 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: gperftools Name: gperftools
Version: 2.4 Version: 2.4
Release: 0 Release: 0
Summary: Performance Tools for C++ Summary: Performance Tools for C++
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://code.google.com/p/gperftools/ Url: https://github.com/gperftools/gperftools
Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
Patch4: %{name}-fix_docdir.patch Patch4: %{name}-fix_docdir.patch
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
Patch14: %{name}_gcc46.patch Patch14: %{name}_gcc46.patch
@ -33,9 +33,9 @@ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
BuildRequires: libunwind-devel BuildRequires: libunwind-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: google-perftools Provides: google-perftools
Obsoletes: google-perftools Obsoletes: google-perftools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390 s390x ExcludeArch: s390 s390x
%description %description
@ -61,10 +61,10 @@ malloc().
%package devel %package devel
Summary: Performance tools for C++ Summary: Performance tools for C++
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %name = %version Requires: %{name} = %{version}
Requires: libprofiler0 = %version Requires: libprofiler0 = %{version}
Requires: libstdc++-devel Requires: libstdc++-devel
Requires: libtcmalloc4 = %version Requires: libtcmalloc4 = %{version}
Provides: google-perftools-devel Provides: google-perftools-devel
Obsoletes: google-perftools-devel Obsoletes: google-perftools-devel
@ -72,8 +72,6 @@ Obsoletes: google-perftools-devel
The gperftools-devel package contains static and debug libraries and header The gperftools-devel package contains static and debug libraries and header
files for developing applications that use the gperftools package. files for developing applications that use the gperftools package.
%prep %prep
%setup -q %setup -q
%patch4 -p1 %patch4 -p1
@ -82,48 +80,54 @@ files for developing applications that use the gperftools package.
%build %build
autoreconf -fi autoreconf -fi
export CXXFLAGS="%optflags -fno-strict-aliasing" export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%optflags -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --disable-static --with-gnu-ld --with-pic %configure \
--disable-static \
--with-gnu-ld \
--with-pic
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=%{buildroot} install %{?_smp_mflags}
%{__rm} -f %{buildroot}%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
%post -n libprofiler0 -p /sbin/ldconfig %post -n libprofiler0 -p /sbin/ldconfig
%postun -n libprofiler0 -p /sbin/ldconfig %postun -n libprofiler0 -p /sbin/ldconfig
%post -n libtcmalloc4 -p /sbin/ldconfig %post -n libtcmalloc4 -p /sbin/ldconfig
%postun -n libtcmalloc4 -p /sbin/ldconfig %postun -n libtcmalloc4 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%_bindir/pprof %{_bindir}/pprof
%_mandir/man1/pprof.1.gz %{_mandir}/man1/pprof.1.*
%_docdir/%name %{_docdir}/%{name}
%files -n libprofiler0 %files -n libprofiler0
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/libprofiler.so.0* %{_libdir}/libprofiler.so.0*
%files -n libtcmalloc4 %files -n libtcmalloc4
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/libtcmalloc.so.4* %{_libdir}/libtcmalloc.so.4*
%_libdir/libtcmalloc_debug.so.4* %{_libdir}/libtcmalloc_debug.so.4*
%_libdir/libtcmalloc_minimal.so.4* %{_libdir}/libtcmalloc_minimal.so.4*
%_libdir/libtcmalloc_minimal_debug.so.4* %{_libdir}/libtcmalloc_minimal_debug.so.4*
%_libdir/libtcmalloc_and_profiler.so.4* %{_libdir}/libtcmalloc_and_profiler.so.4*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%_includedir/google %{_includedir}/google
%_includedir/gperftools %{_includedir}/gperftools
%_libdir/libprofiler.so %{_libdir}/libprofiler.so
%_libdir/libtcmalloc.so %{_libdir}/libtcmalloc.so
%_libdir/libtcmalloc_debug.so %{_libdir}/libtcmalloc_debug.so
%_libdir/libtcmalloc_minimal.so %{_libdir}/libtcmalloc_minimal.so
%_libdir/libtcmalloc_minimal_debug.so %{_libdir}/libtcmalloc_minimal_debug.so
%_libdir/libtcmalloc_and_profiler.so %{_libdir}/libtcmalloc_and_profiler.so
%_libdir/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%changelog %changelog