source: rtems/contrib/freebsd/i386-freebsd-libs.spec.in @ fce4a52

4.104.114.84.95
Last change on this file since fce4a52 was fce4a52, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 13, 2004 at 10:59:41 AM

New.

  • Property mode set to 100644
File size: 3.8 KB
Line 
1#
2# spec file for package i386-freebsd5-libs
3#
4
5%define _prefix @PREFIX@
6
7%define freebsd_version @FREEBSD_VERS@
8%define freebsd_rpmvers %{expand: %(echo @FREEBSD_VERS@ | tr - _)}
9
10%define __os_install_post       %{nil}
11
12Vendor:       RTEMS.org
13Distribution: Linux
14Name:         i386-freebsd5-libs
15Release:      @FREEBSD_RPMREL@
16Copyright:    FreeBSD
17Group:        freebsd
18
19Packager:       Ralf Corsepius <ralf_corsepius@rtems.org>
20Prefix:         %{_prefix}
21BuildRoot:      @RPM_BUILD_ROOT@
22BuildArch:      noarch
23
24Version:        %freebsd_rpmvers
25Summary:        freebsd
26Prefix:         %{_prefix}
27
28# Urgh, but RH's find-* is too stupid to cope with foreign objects
29Autoreqprov:    off
30Provides:     i386-freebsd5-libs
31
32Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aa
33Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ab
34Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ac
35Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ad
36Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ae
37Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.af
38Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ag
39Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ah
40Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ai
41Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aj
42Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ak
43Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.al
44Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.am
45Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.an
46Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ao
47Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ap
48Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aq
49Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ar
50Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.as
51Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.at
52Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.au
53Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.av
54Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aw
55Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ax
56Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ay
57Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.az
58
59%description
60FreeBSD libs
61
62%prep
63%setup -c -T -n %{name}-%{version}
64
65  cat \
66 %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
67 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
68 %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
69 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
70 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
71 %SOURCE25 | tar xzvf -
72
73%build
74  mkdir -p i386-freebsd5/sys-root
75  tar cvf - usr/lib usr/include lib | ( cd i386-freebsd5/sys-root ; tar xvf -)
76
77  pushd i386-freebsd5/sys-root/usr/lib
78  # missing files
79  rm -f lib*_p.*
80  # not needed
81  rm -rf aout compat
82
83  # Fix up symlinks
84  find -type l -exec ls -l {} \; | \
85    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
86    case $aA in
87    /lib* ) # link
88       rm $a8;
89       b=`basename $aA`
90       ln -s ../../lib/$b $a8
91       ;;
92    esac
93  done
94  popd
95
96%install
97  rm -rf $RPM_BUILD_ROOT
98  mkdir -p $RPM_BUILD_ROOT%{prefix}
99  cp -a i386-freebsd5 $RPM_BUILD_ROOT%{prefix}
100
101%files
102%defattr(-,root,root)
103%{prefix}/i386-freebsd5
Note: See TracBrowser for help on using the repository browser.