source: rtems/contrib/crossrpms/freebsd6.2/i586/libs.add @ fc7d623

4.104.114.9
Last change on this file since fc7d623 was fc7d623, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 20, 2008 at 4:02:31 AM

Use %tar instead of /usr/bin/star.

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