Quote:
|
Originally Posted by SHtRO
Is there equivalencies to directives like %makeinstall% for use with scons? If not, how might I go about creating them. The problem is that I can't get scons to configure and build in the proper directories, it always wants to configure and install globally.
|
the thing to remember about rpm is that the spec file is basically just shell commands and anything else is a macro. If you look in /var/lib/rpm/macros you'll see that %makeinstall is just
# The make install analogue of %configure:
%makeinstall \
make \\\
prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
exec_prefix=%{?buildroot:%{buildroot}}%{_exec_pref ix} \\\
bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir } \\\
datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
includedir=%{?buildroot:%{buildroot}}%{_includedir } \\\
libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir } \\\
localstatedir=%{?buildroot:%{buildroot}}%{_localst atedir} \\\
sharedstatedir=%{?buildroot:%{buildroot}}%{_shared statedir} \\\
mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
install
you can write your own macros for scons and stick them in /etc/rpm/macros.scons
If you come up with a reasonable set you might want to post them so that others can use them
Quote:
|
Originally Posted by SHtRO
Is there a good comprehensive (and current) document describing the RPM SPEC directives and maybe a tutorial for more intermediate or advanced developers?
|
http://www.gurulabs.com/GURULABS-RPM...GUIDE-v1.0.PDF
Quote:
|
Originally Posted by SHtRO
Why do we have scons and dc++ anyway? Seems to be counterproductive, but I don't know enough so my judgement here is not reliable.
|
because scons doesn't make people bleed from the eyes like autotools does