forked from ps2dev/ps2toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathps2dev-binutils.spec
62 lines (50 loc) · 1.49 KB
/
ps2dev-binutils.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: ps2dev-binutils
Version: 0.1
Release: alt1
Summary: ps2dev project's patched cross-binutils
License: GPL
Group: Development/Other
Url: https://github.com/ps2dev/ps2toolchain
Packager: Ildar Mulyukov <[email protected]>
Source: https://github.com/ps2dev/ps2toolchain.tar
Source1: https://github.com/downloads/ps2dev/ps2toolchain/binutils-2.14.tar.bz2
# Automatically added by buildreq on Mon Dec 03 2012 (-bi)
# optimized out: elfutils perl-Encode perl-Pod-Escapes perl-Pod-Simple perl-podlators python-base tzdata
BuildRequires: flex git-core glibc-devel-static perl-Pod-Parser wget
%description
%name is the part of ps2dev toolchain.
This package provides the binutils part of the toolchain.
%prep
%setup -n ps2toolchain
mkdir downloads
cp -al %SOURCE1 downloads/
%install
cat > ps2dev_env.sh <<EOF
## Set up the environment.
export PS2DEV=%prefix/ps2dev
export PATH=\$PATH:\$PS2DEV/bin
export PATH=\$PATH:\$PS2DEV/ee/bin
export PATH=\$PATH:\$PS2DEV/iop/bin
export PATH=\$PATH:\$PS2DEV/dvp/bin
export PS2SDK=\$PS2DEV/ps2sdk
export PATH=\$PATH:\$PS2SDK/bin
EOF
. ps2dev_env.sh
export _DESTDIR=%buildroot
./toolchain.sh 1
mkdir -p %buildroot%_sysconfdir/profile.d/
install ps2dev_env.sh %buildroot%_sysconfdir/profile.d/
# remove unnessesary files
rm -rf %buildroot$PS2DEV/{\
*/info/,\
*/man/,\
*/share/locale/,\
ps2sdk/,\
test.tmp\
}
%files
%_sysconfdir/profile.d/ps2dev_env.sh
%prefix/ps2dev
%changelog
* Mon Dec 03 2012 Ildar Mulyukov <[email protected]> 0.1-alt1
- initial build for ALT Linux family