source: rtems/contrib/crossrpms/freebsd7.2/i586/libs.add @ 307cbcb5

4.104.11
Last change on this file since 307cbcb5 was 307cbcb5, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 5, 2009 at 10:06:31 PM

New.

  • Property mode set to 100644
File size: 4.8 KB
Line 
1%define freebsd_version @FREEBSD_VERS@
2%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
3
4%define _use_internal_dependency_generator 0
5%define __debug_install_post %{nil}
6
7Name:           @rpmprefix@@tool_target@
8Release:        @FREEBSD_RPMREL@%{?dist}
9License:        FreeBSD
10Group:          Development/Tools
11
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13BuildArch:      noarch
14
15Version:        %freebsd_rpmvers
16Summary:        @tool_target@ Libraries
17
18Source0:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
19Source1:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
20Source2:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
21Source3:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
22Source4:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
23Source5:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
24Source6:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
25Source7:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
26Source8:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
27Source9:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
28Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
29Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
30Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
31Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
32Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
33Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
34Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
35Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
36Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
37Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
38Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
39Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
40Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
41Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
42Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
43Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
44Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
45Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
46Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
47Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
48Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.be
49Source31: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bf
50Source32: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bg
51Source33: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bh
52Source34: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bi
53
54%description
55@tool_target@ libraries.
56
57%prep
58%setup -q -c -T -n %{name}-%{version}
59
60  cat \
61 %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
62 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
63 %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
64 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
65 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
66 %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
67 %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 \
68 | %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include
69
70%build
71  # Setup sys-root (Usable for gcc >= 3.4)
72  mkdir -p @tool_target@/sys-root
73  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
74
75  pushd @tool_target@/sys-root/usr/lib > /dev/null
76  # missing files
77  rm -f lib*_p.*
78  # not needed
79  rm -rf aout compat
80
81  # Fix up symlinks
82  find -type l -exec ls -l {} \; | \
83    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
84    case $aA in
85    /lib* ) # link
86       rm $a8;
87       b=`basename $aA`
88       ln -s ../../lib/$b $a8
89       ;;
90    esac
91  done
92  popd > /dev/null
93
94%install
95  rm -rf $RPM_BUILD_ROOT
96  mkdir -p $RPM_BUILD_ROOT%{_prefix}
97  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
98
Note: See TracBrowser for help on using the repository browser.