]> git.pld-linux.org Git - packages/dmalloc.git/blame - dmalloc.spec
- up to 5.5.2
[packages/dmalloc.git] / dmalloc.spec
CommitLineData
7ba5cab1 1Summary: A library for controlling and tracing dynamic memory allocations
e6a9e4af 2Summary(pl.UTF-8): Biblioteka do kontroli i śledzenia dynamicznej alokacji pamięci
7ba5cab1 3Name: dmalloc
a11cac62 4Version: 5.5.2
7d0ced25 5Release: 1
7ba5cab1
AM
6License: LGPL
7Group: Development/Debuggers
a11cac62
AM
8Source0: http://dmalloc.com/releases/%{name}-%{version}.tgz
9# Source0-md5: f92e5606c23a8092f3d5694e8d1c932e
813cea82 10Source1: %{name}.1
1fb36724 11Patch0: %{name}-info.patch
813cea82 12Patch1: %{name}-pic.patch
13Patch2: %{name}-4.8.2-pld_man.patch
7ba5cab1 14URL: http://dmalloc.com/
1fb36724 15BuildRequires: autoconf
16BuildRequires: automake
dc34bcc5 17BuildRequires: gcc-c++
7ba5cab1 18BuildRequires: texinfo
93a7d6ab 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7ba5cab1
AM
20
21%description
22The debug memory allocation or "dmalloc" library has been designed as
23a drop in replacement for the system's `malloc', `realloc', `calloc',
24`free' and other memory management routines while providing powerful
25debugging facilities configurable at runtime. These facilities include
26such things as memory-leak tracking, fence-post write detection,
27file/line number reporting, and general logging of statistics. It also
28provides support for the debugging of threaded programs.
29
ba85c082
JR
30%description -l pl.UTF-8
31Biblioteka do odpluskwiania programów zastępuje systemowe funkcje
7ba5cab1 32takie jak `malloc', `realloc', `calloc', `free' i inne funkcje do
ba85c082
JR
33zarządzania pamięcią. Możliwości to wykrywanie wycieków pamięci,
34wykrywanie zapisów poza zaalokowanym obszarem, informowanie o
35pliku/numerze linii, w której występuje problem oraz generalne
36statystyki. Biblioteka umożliwia odpluskwianie programów wątkowych.
7ba5cab1 37
1fb36724 38%package static
39Summary: Static dmalloc libraries
e6a9e4af 40Summary(pl.UTF-8): Biblioteki statyczne dmalloc
1fb36724 41Group: Development/Debuggers
c3f1572e 42Requires: %{name} = %{version}-%{release}
1fb36724 43
44%description static
45Static dmalloc libraries.
46
ba85c082 47%description static -l pl.UTF-8
1fb36724 48Biblioteki statyczne dmalloc.
7ba5cab1
AM
49
50%prep
51%setup -q
813cea82 52install %{SOURCE1} .
7d0ced25 53cd docs
1fb36724 54%patch0 -p1
7d0ced25 55cd ..
1fb36724 56%patch1 -p1
813cea82 57%patch2 -p0
7ba5cab1
AM
58
59%build
5e793c63 60%{__aclocal}
45045be3 61%{__autoconf}
1fb36724 62%configure \
dc7cc74f 63 --enable-cxx \
7ba5cab1
AM
64 --enable-threads \
65 --enable-shlib
ab9e2935 66
7d0ced25
AM
67%{__make}
68%{__make} docs/%{name}.info
7ba5cab1
AM
69
70%install
71rm -rf $RPM_BUILD_ROOT
813cea82 72install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1}
7ba5cab1
AM
73
74%{makeinstall} \
a11cac62 75 installsl installcxx installth \
7ba5cab1
AM
76 shlibdir=$RPM_BUILD_ROOT%{_libdir} \
77 incdir=$RPM_BUILD_ROOT%{_includedir}
78
a11cac62 79install docs/*.info $RPM_BUILD_ROOT%{_infodir}
813cea82 80install dmalloc.1 $RPM_BUILD_ROOT%{_mandir}/man1
81
7ba5cab1
AM
82%post
83/sbin/ldconfig
c814cfe8 84[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
7ba5cab1
AM
85
86%postun
87/sbin/ldconfig
c814cfe8 88[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
7ba5cab1
AM
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%files
94%defattr(644,root,root,755)
7d0ced25 95%doc README NEWS ChangeLog*
7ba5cab1 96%attr(755,root,root) %{_bindir}/*
1fb36724 97%attr(755,root,root) %{_libdir}/lib*.so
2ebb919c 98%{_includedir}/*
813cea82 99%{_mandir}/man1/*
2ebb919c 100%{_infodir}/*.info*
1fb36724 101
102%files static
103%defattr(644,root,root,755)
104%{_libdir}/lib*.a
This page took 0.098918 seconds and 4 git commands to generate.