Extend copyright to 2018.
[kdbg.git] / kdbg.spec
blob13fd77f15fe813a65b2f5f3789b8a6606ba24b1d
1 %define name kdbg
2 %define version 2.5.4
3 %define release 1.kde4
4 %define prefix /usr
5 %define src_dir %{name}-%{version}
7 %define builddir $RPM_BUILD_DIR/%{name}-%{version}
9 Summary: KDbg - KDE Debugging GUI around gdb
10 Name: %{name}
11 Version: %{version}
12 Release: %{release}
13 Prefix: %{prefix}
14 Group: X11/KDE/Development
15 License: GPL
16 Distribution: RedHat 7.0
17 Vendor: Johannes Sixt <j6t@kdbg.org>
18 Packager: Ullrich von Bassewitz <uz@musoftware.de>
19 Source: %{name}-%{version}.tar.gz
20 URL: http://www.kdbg.org/
21 Requires: kdelibs >= 2.0
22 BuildRoot: /tmp/build-%{name}-%{version}
24 %description
25 KDbg is a graphical user interface to gdb, the GNU debugger. It provides
26 an intuitive interface for setting breakpoints, inspecting variables, and
27 stepping through code.
29 %prep
30 rm -rf $RPM_BUILD_ROOT
31 rm -rf %{builddir}
33 %setup
34 touch `find . -type f`
36 %build
38 rm -f CMakeCache.txt
39 cmake . -DCMAKE_INSTALL_PREFIX=/usr
40 make -j4
43 %install
45 if [ -z "$KDEDIR" ]; then
46 export KDEDIR=%{prefix}
48 rm -rf $RPM_BUILD_ROOT
49 make DESTDIR=$RPM_BUILD_ROOT install
51 cd $RPM_BUILD_ROOT
52 find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
53 -e '/\/config\//s|^|%config|' > \
54 $RPM_BUILD_DIR/file.list.%{name}
55 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
56 $RPM_BUILD_DIR/file.list.%{name}
57 echo "%docdir $KDEDIR/share/doc/HTML" >> $RPM_BUILD_DIR/file.list.%{name}
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62 rm -rf %{builddir}
63 rm -f $RPM_BUILD_DIR/file.list.%{name}
65 %files -f ../file.list.%{name}