A new user interface for you! Read more...

File cross-msp430-devel.spec of Package cross-msp430-devel

#
# spec file for package msp430-gcc-support-files
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#

%define realname msp430-gcc-support-files

Name:           cross-msp430-devel
Version:        1.204
Release:        0
Summary:        Header files for MSP430 development
License:        BSD-3-Clause
Group:          Development/Languages
Url:            http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/index_FDS.html
Source0:        http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/exports/%{realname}-%{version}.zip
BuildRequires:  unzip
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package is derived from the official Texas Instruments MSP430 support
files and contains the necessary C header files for compilation with
msp430-elf-gcc

%prep
%setup -q -n %{realname}


%build
true


%install
incdir=%{buildroot}%{_prefix}/msp430-elf/sys-root%{_includedir}
mkdir -p $incdir
cp -v include/*.h $incdir/

lddir=%{buildroot}%{_libdir}/gcc/msp430-elf/%{gcc_version}
mkdir -p $lddir
cp -v include/*.ld $lddir/

%fdupes %{buildroot}/


%files
%defattr(-,root,root)
%doc Revisions_Header.txt
%dir %{_prefix}/msp430-elf
%dir %{_prefix}/msp430-elf/sys-root
%dir %{_prefix}/msp430-elf/sys-root%{_includedir}/..
%dir %{_prefix}/msp430-elf/sys-root%{_includedir}
%{_prefix}/msp430-elf/sys-root%{_includedir}/*.h

%dir %{_libdir}/gcc/msp430-elf
%dir %{_libdir}/gcc/msp430-elf/%{gcc_version}
%{_libdir}/gcc/msp430-elf/%{gcc_version}/*.ld

%changelog