Dnia sobota, 19 stycznia 2013 21:52:02 doiggl@velocitynet.com.au pisze:
On Tue, 08 Jan 2013 19:07:19 +0100, Krzysztof Żelechowski
<giecrilj@stegny.2a.pl> wrote:
Dnia środa, 9 stycznia 2013 00:10:39 doiggl@velocitynet.com.au pisze:
Hello
Question: How can I remove the %suse_update_config part without
breaking
the entire %build section, What should the new line(s) look like.
The old %build section of the .spec reads as
%build %{?suse_update_config:%{suse_update_config -f}} aclocal --force libtoolize --force autoconf --force autoheader --force automake -afc
AFAIK, all this stuff should be handled by { autoreconf -fi; }
HTH, Chris
Hello Will this %build syntax work ?. I commented out the entie line "#%{?suse_update_config:%{suse_update_config -f}}" And added in the 6 linesbelow it ? %build now reads as [1]
Sourced from # http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto #see section "Building on Older Distros"
Thanks Glenn
[1]
%build
#%{?suse_update_config:%{suse_update_config -f}}
Do not comment out lines containing macro invocations. These constructs can only be disabled using %if.
%if 0%{?suse_version} > 1010 autoreconf -fi %else autoheader autoconf %endif
I would rather say autoreconf anyway and tell OBS to use a recent version of autotools instead of the distro version.
CFLAGS="$RPM_OPT_FLAGS -Wall -Wno-unused" \ ./configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --bindir=%{_bindir} \ --includedir=%{_includedir} \ --sysconfdir=%{_sysconfdir} \ --mandir=%{_mandir}
You have %configure for that.
make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS -Wall -Wno-unused"
All in all, the syntax per se has nothing that would inhibit the work of the script, so perhaps it will probably work. Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org