summaryrefslogtreecommitdiffstats
path: root/kdbg.spec
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-03 01:47:30 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-03 01:47:30 +0200
commit239e873a38fa91a3fbd27e134bda015922abbabd (patch)
treed7c79f740bce93768ee78b6b787c83a2115b047f /kdbg.spec
downloadkdbg-239e873a38fa91a3fbd27e134bda015922abbabd.tar.gz
kdbg-239e873a38fa91a3fbd27e134bda015922abbabd.zip
Initial import
Diffstat (limited to 'kdbg.spec')
-rw-r--r--kdbg.spec67
1 files changed, 67 insertions, 0 deletions
diff --git a/kdbg.spec b/kdbg.spec
new file mode 100644
index 0000000..0508ea2
--- /dev/null
+++ b/kdbg.spec
@@ -0,0 +1,67 @@
+%define name kdbg
+%define version 2.0.0
+%define release 1.kde2
+%define prefix /usr
+
+%define builddir $RPM_BUILD_DIR/%{name}-%{version}
+
+Summary: KDbg - KDE Debugging GUI around gdb
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Prefix: %{prefix}
+Group: X11/KDE/Development
+Copyright: GPL
+Distribution: RedHat 7.0
+Vendor: Johannes Sixt <j6t@kdbg.org>
+Packager: Ullrich von Bassewitz <uz@musoftware.de>
+Source: %{name}-%{version}.tar.gz
+URL: http://www.kdbg.org/
+Requires: kdelibs >= 2.0
+BuildRoot: /tmp/build-%{name}-%{version}
+
+%description
+KDbg is a graphical user interface to gdb, the GNU debugger. It provides
+an intuitive interface for setting breakpoints, inspecting variables, and
+stepping through code.
+
+%prep
+rm -rf $RPM_BUILD_ROOT
+rm -rf %{builddir}
+
+%setup
+touch `find . -type f`
+
+%build
+if [ -z "$KDEDIR" ]; then
+ export KDEDIR=%{prefix}
+fi
+CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" ./configure \
+ --prefix=$KDEDIR
+make
+
+
+%install
+if [ -z "$KDEDIR" ]; then
+ export KDEDIR=%{prefix}
+fi
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install-strip
+
+cd $RPM_BUILD_ROOT
+find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
+ $RPM_BUILD_DIR/file.list.%{name}
+find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
+ -e '/\/config\//s|^|%config|' >> \
+ $RPM_BUILD_DIR/file.list.%{name}
+find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
+ $RPM_BUILD_DIR/file.list.%{name}
+echo "%docdir $KDEDIR/share/doc/HTML" >> $RPM_BUILD_DIR/file.list.%{name}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+rm -rf %{builddir}
+rm -f $RPM_BUILD_DIR/file.list.%{name}
+
+%files -f ../file.list.%{name}