+ Update 052_Rob_Ennals.pdf, courtesy of Elizabeth Mattijsen.
[parrot.git] / parrot.spec
blob698f5624291f2afc48e73b8b82b88c2e49f7e87b
1 %define version 0.4.9
2 %define devel -devel
3 %define prefix /usr/local/parrot/%{version}
4 %define exec_prefix %{prefix}
5 %define bindir %{exec_prefix}/bin
6 %define libdir %{exec_prefix}/lib
7 %define includedir %{exec_prefix}/include
9 Summary: Parrot
10 Name: parrot
11 Version: %{version}
12 Release: 1
13 Source0: %{name}-%{version}%{devel}.tar.gz
14 License: Artistic/GPL
15 Group: Development/Languages
16 BuildRoot: %{_tmppath}/%{name}-root
18 %description
20 %prep
21 %setup -q -n %{name}-%{version}%{devel}
23 %build
24 perl Configure.pl --optimize
25 make CC="ccache gcc" parrot pdb pdump
26 make -C imcc
27 perl tools/dev/mk_manifests.pl --prefix=%{prefix} --exec-prefix=%{exec_prefix} --bindir=%{bindir} --libdir=%{libdir} --includedir=%{includedir} MANIFEST.detailed
29 %install
30 rm -rf $RPM_BUILD_ROOT
32 make install BUILDPREFIX=$RPM_BUILD_ROOT PREFIX=%{prefix} EXEC_PREFIX=%{exec_prefix} BINDIR=%{bindir} LIBDIR=%{libdir} INCLUDEDIR=%{includedir} MANIFEST.detailed
34 # Create directories
35 #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
37 # Copy over files
38 #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
40 %clean
41 rm -rf $RPM_BUILD_ROOT
43 %package devel
44 Summary: Parrot devel package
45 Group: unknown
47 %description devel
48 Parrot sub-package
50 %package BASIC
51 Summary: Parrot BASIC package
52 Group: unknown
54 %description BASIC
55 Parrot sub-package
57 %package befunge
58 Summary: Parrot befunge package
59 Group: unknown
61 %description befunge
62 Parrot sub-package
64 %package bf
65 Summary: Parrot bf package
66 Group: unknown
68 %description bf
69 Parrot sub-package
71 %package cola
72 Summary: Parrot cola package
73 Group: unknown
75 %description cola
76 Parrot sub-package
78 %package forth
79 Summary: Parrot forth package
80 Group: unknown
82 %description forth
83 Parrot sub-package
85 %package jako
86 Summary: Parrot jako package
87 Group: unknown
89 %description jako
90 Parrot sub-package
92 %package ook
93 Summary: Parrot ook package
94 Group: unknown
96 %description ook
97 Parrot sub-package
99 %package perl6
100 Summary: Parrot perl6 package
101 Group: unknown
103 %description perl6
104 Parrot sub-package
106 %package regex
107 Summary: Parrot regex package
108 Group: unknown
110 %description regex
111 Parrot sub-package
113 %package ruby
114 Summary: Parrot ruby package
115 Group: unknown
117 %description ruby
118 Parrot sub-package
120 %package scheme
121 Summary: Parrot scheme package
122 Group: unknown
124 %description scheme
125 Parrot sub-package
128 %files -f MANIFEST.main
129 %defattr(-,root,root)
131 %files -f MANIFEST.devel devel
132 %defattr(-,root,root)
134 %files -f MANIFEST.BASIC BASIC
135 %defattr(-,root,root)
137 %files -f MANIFEST.befunge befunge
138 %defattr(-,root,root)
140 %files -f MANIFEST.bf bf
141 %defattr(-,root,root)
143 %files -f MANIFEST.cola cola
144 %defattr(-,root,root)
146 %files -f MANIFEST.forth forth
147 %defattr(-,root,root)
149 %files -f MANIFEST.jako jako
150 %defattr(-,root,root)
152 %files -f MANIFEST.ook ook
153 %defattr(-,root,root)
155 %files -f MANIFEST.perl6 perl6
156 %defattr(-,root,root)
158 %files -f MANIFEST.regex regex
159 %defattr(-,root,root)
161 %files -f MANIFEST.ruby ruby
162 %defattr(-,root,root)
164 %files -f MANIFEST.scheme scheme
165 %defattr(-,root,root)
168 %changelog
169 * Tue Mar 18 2003 <sfink@foxglove.localdomain>
170 - Initial build.