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

4.104.114.84.9
Last change on this file since 2aa2177 was 2aa2177, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 27, 2007 at 3:57:55 AM

New.

  • 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
14BuildRequires:  /usr/bin/star
15
16Version:        %freebsd_rpmvers
17Summary:        @tool_target@ Libraries
18
19Source0:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
20Source1:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
21Source2:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
22Source3:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
23Source4:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
24Source5:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
25Source6:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
26Source7:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
27Source8:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
28Source9:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
29Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
30Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
31Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
32Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
33Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
34Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
35Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
36Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
37Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
38Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
39Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
40Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
41Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
42Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
43Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
44Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
45Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
46Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
47Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
48Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
49
50%description
51@tool_target@ libraries.
52
53%prep
54%setup -q -c -T -n %{name}-%{version}
55
56  cat \
57 %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
58 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
59 %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
60 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
61 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
62 %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
63 | /usr/bin/star xzf - lib usr/lib usr/include
64
65%build
66  # Setup sys-root (Usable for gcc >= 3.4)
67  mkdir -p @tool_target@/sys-root
68  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
69
70  pushd @tool_target@/sys-root/usr/lib > /dev/null
71  # missing files
72  rm -f lib*_p.*
73  # not needed
74  rm -rf aout compat
75
76  # Fix up symlinks
77  find -type l -exec ls -l {} \; | \
78    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
79    case $aA in
80    /lib* ) # link
81       rm $a8;
82       b=`basename $aA`
83       ln -s ../../lib/$b $a8
84       ;;
85    esac
86  done
87  popd > /dev/null
88
89%install
90  rm -rf $RPM_BUILD_ROOT
91  mkdir -p $RPM_BUILD_ROOT%{_prefix}
92  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
93
Note: See TracBrowser for help on using the repository browser.