source: rtems/contrib/crossrpms/freebsd6.4/i586/libs.add @ 6beaac1

4.104.11
Last change on this file since 6beaac1 was 6beaac1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 18, 2009 at 3:18:39 PM

New.

  • Property mode set to 100644
File size: 4.4 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
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 %SOURCE30 \
64 | %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include
65
66%build
67  # Setup sys-root (Usable for gcc >= 3.4)
68  mkdir -p @tool_target@/sys-root
69  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
70
71  pushd @tool_target@/sys-root/usr/lib > /dev/null
72  # missing files
73  rm -f lib*_p.*
74  # not needed
75  rm -rf aout compat
76
77  # Fix up symlinks
78  find -type l -exec ls -l {} \; | \
79    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
80    case $aA in
81    /lib* ) # link
82       rm $a8;
83       b=`basename $aA`
84       ln -s ../../lib/$b $a8
85       ;;
86    esac
87  done
88  popd > /dev/null
89
90%install
91  rm -rf $RPM_BUILD_ROOT
92  mkdir -p $RPM_BUILD_ROOT%{_prefix}
93  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
94
Note: See TracBrowser for help on using the repository browser.