| OLD | NEW |
| (Empty) |
| 1 %define RELEASE 1 | |
| 2 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} | |
| 3 %define prefix /usr | |
| 4 | |
| 5 Name: %NAME | |
| 6 Summary: Performance tools for C++ | |
| 7 Version: %VERSION | |
| 8 Release: %rel | |
| 9 Group: Development/Libraries | |
| 10 URL: http://code.google.com/p/gperftools/ | |
| 11 License: BSD | |
| 12 Vendor: Google Inc. and others | |
| 13 Packager: Google Inc. and others <google-perftools@googlegroups.com> | |
| 14 Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz | |
| 15 Distribution: Redhat 7 and above. | |
| 16 Buildroot: %{_tmppath}/%{name}-root | |
| 17 Prefix: %prefix | |
| 18 | |
| 19 %description | |
| 20 The %name packages contains some utilities to improve and analyze the | |
| 21 performance of C++ programs. This includes an optimized thread-caching | |
| 22 malloc() and cpu and heap profiling utilities. | |
| 23 | |
| 24 %package devel | |
| 25 Summary: Performance tools for C++ | |
| 26 Group: Development/Libraries | |
| 27 Requires: %{NAME} = %{VERSION} | |
| 28 | |
| 29 %description devel | |
| 30 The %name-devel package contains static and debug libraries and header | |
| 31 files for developing applications that use the %name package. | |
| 32 | |
| 33 %changelog | |
| 34 * Mon Apr 20 2009 <opensource@google.com> | |
| 35 - Change build rule to use a configure line more like '%configure' | |
| 36 - Change install to use DESTDIR instead of prefix for configure | |
| 37 - Use wildcards for doc/ and lib/ directories | |
| 38 | |
| 39 * Fri Mar 11 2005 <opensource@google.com> | |
| 40 - First draft | |
| 41 | |
| 42 %prep | |
| 43 %setup | |
| 44 | |
| 45 %build | |
| 46 # I can't use '% configure', because it defines -m32 which breaks some | |
| 47 # of the low-level atomicops files in this package. But I do take | |
| 48 # as much from % configure (in /usr/lib/rpm/macros) as I can. | |
| 49 ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir
} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --incl
udedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localsta
tedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir}
--infodir=%{_infodir} | |
| 50 make | |
| 51 | |
| 52 %install | |
| 53 rm -rf $RPM_BUILD_ROOT | |
| 54 make DESTDIR=$RPM_BUILD_ROOT install | |
| 55 | |
| 56 %clean | |
| 57 rm -rf $RPM_BUILD_ROOT | |
| 58 | |
| 59 %files | |
| 60 %defattr(-,root,root) | |
| 61 | |
| 62 %docdir %{prefix}/share/doc/%{NAME}-%{VERSION} | |
| 63 %{prefix}/share/doc/%{NAME}-%{VERSION}/* | |
| 64 | |
| 65 %{_libdir}/*.so.* | |
| 66 %{_bindir}/pprof | |
| 67 %{_mandir}/man1/pprof.1* | |
| 68 | |
| 69 %files devel | |
| 70 %defattr(-,root,root) | |
| 71 | |
| 72 %{_includedir}/google | |
| 73 %{_includedir}/gperftools | |
| 74 %{_libdir}/*.a | |
| 75 %{_libdir}/*.la | |
| 76 %{_libdir}/*.so | |
| 77 %{_libdir}/pkgconfig/*.pc | |
| OLD | NEW |