source: rtems/contrib/crossrpms/freebsd7.0/i586/libs.add @ e107a1b

4.104.11
Last change on this file since e107a1b was e107a1b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 27, 2009 at 1:20:33 PM

Update.

  • Property mode set to 100644
File size: 4.7 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@
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
52
53%description
54@tool_target@ libraries.
55
56%prep
57%setup -q -c -T -n %{name}-%{version}
58
59  cat \
60 %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
61 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
62 %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
63 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
64 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
65 %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
66 %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 \
67 | %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
68
69%build
70  # Setup sys-root (Usable for gcc >= 3.4)
71  mkdir -p @tool_target@/sys-root
72  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
73
74  pushd @tool_target@/sys-root/usr/lib > /dev/null
75  # missing files
76  rm -f lib*_p.*
77  # not needed
78  rm -rf aout compat
79
80  # Fix up symlinks
81  find -type l -exec ls -l {} \; | \
82    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
83    case $aA in
84    /lib* ) # link
85       rm $a8;
86       b=`basename $aA`
87       ln -s ../../lib/$b $a8
88       ;;
89    esac
90  done
91  popd > /dev/null
92
93%install
94  rm -rf $RPM_BUILD_ROOT
95  mkdir -p $RPM_BUILD_ROOT%{_prefix}
96  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
97
Note: See TracBrowser for help on using the repository browser.