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
13 Source0: %{name}-%{version}%{devel}.tar.gz
15 Group: Development
/Languages
16 BuildRoot: %{_tmppath}/%{name}-root
21 %setup -q
-n
%{name}-%{version}%{devel}
24 perl Configure.pl
--optimize
25 make CC
="ccache gcc" parrot pdb pdump
27 perl tools
/dev
/mk_manifests.pl
--prefix
=%{prefix} --exec-prefix=%{exec_prefix} --bindir=%{bindir} --libdir=%{libdir} --includedir=%{includedir} MANIFEST.detailed
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
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
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
41 rm -rf $RPM_BUILD_ROOT
44 Summary: Parrot devel package
51 Summary: Parrot BASIC package
58 Summary: Parrot befunge package
65 Summary: Parrot bf package
72 Summary: Parrot cola package
79 Summary: Parrot forth package
86 Summary: Parrot jako package
93 Summary: Parrot ook package
100 Summary: Parrot perl6 package
107 Summary: Parrot regex package
114 Summary: Parrot ruby package
121 Summary: Parrot scheme 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
)
169 * Tue Mar
18 2003 <sfink@foxglove.localdomain
>