/
parrot.spec
172 lines (121 loc) · 3.24 KB
/
parrot.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
%define version 0.2.2
%define devel -devel
%define prefix /usr/local/parrot/%{version}
%define exec_prefix %{prefix}
%define bindir %{exec_prefix}/bin
%define libdir %{exec_prefix}/lib
%define includedir %{exec_prefix}/include
Summary: Parrot
Name: parrot
Version: %{version}
Release: 1
Source0: %{name}-%{version}%{devel}.tar.gz
License: Artistic/GPL
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-root
%description
%prep
%setup -q -n %{name}-%{version}%{devel}
%build
perl Configure.pl --optimize
make CC="ccache gcc" parrot pdb pdump
make -C imcc
perl tools/dev/mk_manifests.pl --prefix=%{prefix} --exec-prefix=%{exec_prefix} --bindir=%{bindir} --libdir=%{libdir} --includedir=%{includedir} MANIFEST.detailed
%install
rm -rf $RPM_BUILD_ROOT
make install BUILDPREFIX=$RPM_BUILD_ROOT PREFIX=%{prefix} EXEC_PREFIX=%{exec_prefix} BINDIR=%{bindir} LIBDIR=%{libdir} INCLUDEDIR=%{includedir} MANIFEST.detailed
# Create directories
#perl -MFile::Basename=dirname -lne 'next if /\[\]/; my($meta,$src,$dest)=split(/\s+/); $dest ||= $src; print "install -d ".dirname("$ENV{RPM_BUILD_ROOT}%{prefix}/$dest")' MANIFEST.detailed | sort -u | sh
# Copy over files
#perl -lne 'next if /\[\]/; my($meta,$src,$dest)=split(/\s+/); $dest ||= $src; print "install -c $src $ENV{RPM_BUILD_ROOT}%{prefix}/$dest"' MANIFEST.detailed | sh
%clean
rm -rf $RPM_BUILD_ROOT
%package devel
Summary: Parrot devel package
Group: unknown
%description devel
Parrot sub-package
%package BASIC
Summary: Parrot BASIC package
Group: unknown
%description BASIC
Parrot sub-package
%package befunge
Summary: Parrot befunge package
Group: unknown
%description befunge
Parrot sub-package
%package bf
Summary: Parrot bf package
Group: unknown
%description bf
Parrot sub-package
%package cola
Summary: Parrot cola package
Group: unknown
%description cola
Parrot sub-package
%package forth
Summary: Parrot forth package
Group: unknown
%description forth
Parrot sub-package
%package jako
Summary: Parrot jako package
Group: unknown
%description jako
Parrot sub-package
%package ook
Summary: Parrot ook package
Group: unknown
%description ook
Parrot sub-package
%package perl6
Summary: Parrot perl6 package
Group: unknown
%description perl6
Parrot sub-package
%package regex
Summary: Parrot regex package
Group: unknown
%description regex
Parrot sub-package
%package ruby
Summary: Parrot ruby package
Group: unknown
%description ruby
Parrot sub-package
%package scheme
Summary: Parrot scheme package
Group: unknown
%description scheme
Parrot sub-package
%files -f MANIFEST.main
%defattr(-,root,root)
%files -f MANIFEST.devel devel
%defattr(-,root,root)
%files -f MANIFEST.BASIC BASIC
%defattr(-,root,root)
%files -f MANIFEST.befunge befunge
%defattr(-,root,root)
%files -f MANIFEST.bf bf
%defattr(-,root,root)
%files -f MANIFEST.cola cola
%defattr(-,root,root)
%files -f MANIFEST.forth forth
%defattr(-,root,root)
%files -f MANIFEST.jako jako
%defattr(-,root,root)
%files -f MANIFEST.ook ook
%defattr(-,root,root)
%files -f MANIFEST.perl6 perl6
%defattr(-,root,root)
%files -f MANIFEST.regex regex
%defattr(-,root,root)
%files -f MANIFEST.ruby ruby
%defattr(-,root,root)
%files -f MANIFEST.scheme scheme
%defattr(-,root,root)
%changelog
* Tue Mar 18 2003 <sfink@foxglove.localdomain>
- Initial build.