More tests with std::vector.
[kdbg.git] / kdbg.spec
blob0508ea22518e949c87b55d62184ab624636cc0bd
1 %define name kdbg
2 %define version 2.0.0
3 %define release 1.kde2
4 %define prefix /usr
6 %define builddir $RPM_BUILD_DIR/%{name}-%{version}
8 Summary: KDbg - KDE Debugging GUI around gdb
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}
12 Prefix: %{prefix}
13 Group: X11/KDE/Development
14 Copyright: GPL
15 Distribution: RedHat 7.0
16 Vendor: Johannes Sixt <j6t@kdbg.org>
17 Packager: Ullrich von Bassewitz <uz@musoftware.de>
18 Source: %{name}-%{version}.tar.gz
19 URL: http://www.kdbg.org/
20 Requires: kdelibs >= 2.0
21 BuildRoot: /tmp/build-%{name}-%{version}
23 %description
24 KDbg is a graphical user interface to gdb, the GNU debugger. It provides
25 an intuitive interface for setting breakpoints, inspecting variables, and
26 stepping through code.
28 %prep
29 rm -rf $RPM_BUILD_ROOT
30 rm -rf %{builddir}
32 %setup
33 touch `find . -type f`
35 %build
36 if [ -z "$KDEDIR" ]; then
37 export KDEDIR=%{prefix}
39 CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" ./configure \
40 --prefix=$KDEDIR
41 make
44 %install
45 if [ -z "$KDEDIR" ]; then
46 export KDEDIR=%{prefix}
48 rm -rf $RPM_BUILD_ROOT
49 make DESTDIR=$RPM_BUILD_ROOT install-strip
51 cd $RPM_BUILD_ROOT
52 find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
53 $RPM_BUILD_DIR/file.list.%{name}
54 find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
55 -e '/\/config\//s|^|%config|' >> \
56 $RPM_BUILD_DIR/file.list.%{name}
57 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
58 $RPM_BUILD_DIR/file.list.%{name}
59 echo "%docdir $KDEDIR/share/doc/HTML" >> $RPM_BUILD_DIR/file.list.%{name}
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64 rm -rf %{builddir}
65 rm -f $RPM_BUILD_DIR/file.list.%{name}
67 %files -f ../file.list.%{name}