]>
Commit | Line | Data |
---|---|---|
779bc74d MM |
1 | Summary: DJGPP GNU Binary Utility Development Utilities - libraries |
2 | Name: crossdjgpp-platform | |
3 | Version: 203 | |
4 | Release: 1 | |
5 | Epoch: 1 | |
6 | License: GPL | |
7 | Group: Development/Libraries | |
8 | Group(de): Entwicklung/Libraries | |
9 | Group(fr): Development/Librairies | |
10 | Group(pl): Programowanie/Biblioteki | |
11 | URL: http://www.delorie.com/djgpp | |
12 | Source0: ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/djcrx%{version}.zip | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | BuildRequires: unzip | |
15 | PreReq: fix-info-dir | |
16 | ||
17 | %define target i386-pc-msdosdjgpp | |
18 | %define arch %{_prefix}/%{target} | |
19 | ||
20 | %description | |
21 | DJGPP is a port of GNU GCC to the DOS environment. (It stands for | |
22 | DJ's Gnu Programming Platform, if it has to stand for something, but | |
23 | it's best left ambiguous.) | |
24 | ||
25 | This package contains DOS API includes and libraries. | |
26 | ||
27 | %prep | |
28 | %setup -q -c -T -n djcrx-%{version} | |
29 | unzip -a %{SOURCE0} > /dev/null | |
30 | ||
31 | %build | |
32 | %{__cc} %{rpmcflags} -o stubify src/stub/stubify.c | |
33 | %{__cc} %{rpmcflags} -o stubedit src/stub/stubedit.c | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | install -d $RPM_BUILD_ROOT{%{_infodir},%{arch}/{include,lib,bin},%{_bindir}} | |
39 | cp -fa include/* $RPM_BUILD_ROOT%{arch}/include | |
40 | cp -fa lib/* $RPM_BUILD_ROOT%{arch}/lib | |
41 | # required by linker... strange | |
42 | ln -sf ../lib/djgpp.djl $RPM_BUILD_ROOT%{arch}/bin | |
43 | ||
44 | ( cat <<EOF | |
45 | This is foobarbaz. | |
46 | ||
47 | INFO-DIR-SECTION Libraries: | |
48 | START-INFO-DIR-ENTRY | |
49 | * DJGPP Libc: (djgpp-libc) Libc for cross-djgpp | |
50 | END-INFO-DIR-ENTRY | |
51 | EOF | |
52 | cat info/libc.info ) | \ | |
53 | sed -e 's/libc\.info/djgpp-libc.info/g' \ | |
54 | > $RPM_BUILD_ROOT%{_infodir}/djgpp-libc.info | |
55 | ||
56 | install stubify stubedit $RPM_BUILD_ROOT/%{_bindir} | |
57 | ||
58 | %post | |
59 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
60 | ||
61 | %postun | |
62 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %{arch} | |
67 | %{_infodir}/* | |
68 | %attr(755,root,root) %{_bindir}/* | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT |