source: rtems/contrib/crossrpms/netbsd5.0.2/amd64/libs.add @ 7bfa75d5

4.104.11
Last change on this file since 7bfa75d5 was 7bfa75d5, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 19, 2010 at 2:08:59 PM

New.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1%define netbsd_version @NETBSD_VERS@
2%define netbsd_rpmvers %{expand:%(echo @NETBSD_VERS@ | tr - _)}
3
4%define _use_internal_dependency_generator 0
5%define __debug_install_post %{nil}
6
7Name:           @rpmprefix@@tool_target@
8Release:        @NETBSD_RPMREL@
9License:        NetBSD
10Group:          Development/Tools
11
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13BuildArch:      noarch
14
15Version:        %netbsd_rpmvers
16Summary:        @tool_target@ Libraries
17
18Source0:        ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.1/amd64/binary/sets/base.tgz
19Source1:        ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.1/amd64/binary/sets/comp.tgz
20
21%description
22@tool_target@ libraries.
23
24%prep
25%setup -q -c -T -n %{name}-%{version} -a 0 -a 1
26
27%build
28  # Setup sys-root (Usable for gcc >= 3.4)
29  mkdir -p @tool_target@/sys-root
30  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
31
32  pushd @tool_target@/sys-root/usr/lib > /dev/null
33  # missing files
34  rm -f lib*_p.*
35  # not needed
36  rm -rf aout compat
37
38  # Fix up symlinks
39  find -type l -exec ls -l {} \; | \
40    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
41    case $aA in
42    /lib* ) # link
43       rm $a8;
44       b=`basename $aA`
45       ln -s ../../lib/$b $a8
46       ;;
47    esac
48  done
49  popd > /dev/null
50
51%install
52  rm -rf $RPM_BUILD_ROOT
53  mkdir -p $RPM_BUILD_ROOT%{_prefix}
54  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
55
Note: See TracBrowser for help on using the repository browser.