LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cross-avr-gdb.spec of Package cross-avr-gdb (Project CrossToolchain:avr)

#
# spec file for package cross-avr-gcc
#
# Copyright (c) 2013 Wojciech Kazubski, wk@ire.pw.edu.pl
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild

%define realname gdb
%define realver  7.5.1

%define prefix   /usr
%define _prefix  %prefix

Name:          cross-avr-%{realname}
Summary:       A GNU source-level debugger for C, C++, Java and other languages
Version:       %{realver}
Release:       3.1
License:       GPL
Group:         Development/Tools/Debuggers
URL:           http://www.gnu.org/software/gdb/
Source:        http://ftp.gnu.org/gnu/gdb/%{realname}-%{realver}.tar.bz2
BuildRoot:     %{_tmppath}/%{name}-root
BuildRequires: ncurses-devel readline-devel
%if 0%{?suse_version}
Suggests:      cross-avr-binutils
%endif

%description
GDB, the GNU debugger, allows you to debug programs written in C, C++,
Java, and other languages, by executing them in a controlled fashion
and printing their data.

%prep
%setup -q -n %{realname}-%{realver}%{?extraver}

%build
%configure \
 --mandir=%{_mandir} \
 --infodir=%{_infodir} \
 --target=avr \
 --program-prefix=avr- \
 --disable-nls \
 LDFLAGS="-Wl,--as-needed -Wl,--strip-all"
%__make %{?_smp_mflags}


%install
%__make install DESTDIR=%{buildroot}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING* MAINTAINERS README
%{_bindir}/*
%{_datadir}/%{realname}/
%{_mandir}/man1/*
%exclude %{_datadir}/info/*
%exclude %{_libdir}/*.a
%exclude %{_includedir}/gdb/jit-reader.h

%changelog
* Sun Jan 27 2013 - wk@ire.pw.edu.pl - 7.5.1-3
- new specfile, partially based on Fedora specfile