server.c: When read returns < 0 then close the fd as well
[memprof.git] / memprof.spec.in
blob7f49198085f5429af1196ebcd12c24d52ac9ff5f
1 Summary: Tool for memory profiling and leak detection
2 Name: memprof
3 Version: @VERSION@
4 Release: 1
5 # Serial is one for historical Red Hat reasons
6 Serial: 1
7 License: GPL
8 Group: Development/Debuggers
9 Source: memprof-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 ExclusiveArch: i386
13 BuildRequires: libgnomeui-devel >= 2.0.0
14 BuildRequires: libglade2-devel >= 2.0.0
16 %description
17 Memprof is a tool for profiling memory usage and
18 detecting memory leaks. It can be used with existing
19 binaries without need for recompilation.
20 %prep
21 %setup -q
23 %build
24 %configure
25 make
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
30 make DESTDIR=$RPM_BUILD_ROOT install
31 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
33 %find_lang %name
35 %clean
36 rm -rf $RPM_BUILD_ROOT
38 %post
39 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
40 SCHEMAS="memprof.schemas"
41 for S in $SCHEMAS; do
42 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
43 done
45 %files -f %{name}.lang
46 %defattr(-, root, root)
48 %doc README AUTHORS NEWS
49 %{_bindir}/*
50 %{_libdir}/libmemintercept.so
51 %{_datadir}/pixmaps/memprof.png
52 %{_datadir}/applications/memprof.desktop
53 %{_datadir}/memprof
54 %{_sysconfdir}/gconf/schemas/*.schemas
56 %changelog
57 * Thu Jun 19 2003 Owen Taylor <otaylor@redhat.com>
58 - Version 0.5.1-ssp
60 * Sat Aug 31 2002 Owen Taylor <otaylor@redhat.com>
61 - Version 0.5.1
63 * Sat Aug 10 2002 Owen Taylor <otaylor@redhat.com>
64 - Cleanups from Red Hat spec file, minor fixes.
66 * Sat Aug 10 2002 Kristian Rietveld <kris@gtk.org>
67 - Version 0.5.0
68 - Updates deps, files and handle installation of gconf schemas.
70 * Fri Feb 09 2001 Owen Taylor <otaylor@redhat.com>
71 - Version 0.4.1
73 * Sat Jul 08 2000 Owen Taylor <otaylor@redhat.com>
74 - Some cleanups, reenable local files
76 * Wed Nov 10 1999 Owen Taylor <otaylor@redhat.com>
77 (From Nils Philippsen <nils@wombat.dialup.fht-esslingen.de>)
78 - Added %defattr() so that files are owned by root
79 - Only require libglade >= 0.7, not >= 0.7-1
80 (From mkj@redhat.com)
81 - ExclusiveArch: i386
82 - Changed group to Development/Debuggers
84 * Wed Oct 27 1999 Owen Taylor <otaylor@redhat.com>
85 - Initial package