-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan Engelhardt wrote:
I noticed that some -lang packages contain noarch data and hence should be produced as such, to reduce number of packages in the rpm metadata, as well as the space on DVD. For example:
-rw-r--r-- 1 455 5200 597700 Sep 23 01:07 /lnk/103/i586/mc-lang-4.6.1-140.i586.rpm -rw-r--r-- 1 455 5200 597820 Sep 26 02:39 /lnk/103/ppc/mc-lang-4.6.1-141.ppc.rpm -rw-r--r-- 1 455 5200 597691 Sep 23 01:15 /lnk/103/x86_64/mc-lang-4.6.1-140.x86_64.rpm
making the -lang package be built as noarch is an exercise left to the implementor. Running `lbuild-10.3 --target=noarch mc.spec` is a workaround, but of course it would be nicer if BuildArch: noarch in a subpackage in a specfile would only cause the subpackage to be noarch.
Just that it doesn't work, you can only specify one arch for all
packages in one spec file. But I'm sure you already knew that ;)
What would be needed is to have two separate spec files: one for the
files without lang, and one just for the lang.
Well, maybe a single spec but with a flag passed to the build.
%if 0%{?_with_lang:1}
%define lang 1
%define suffix -lang
%endif
Name: mc%{suffix}
%if 0%lang
BuildArch: noarch
%fi
...
%install
...
%if 0%lang
%__rm -rf "%{buildroot}"/{%{_bindir},%{_libdir},%{_datadir}}
%else
%__rm -rf "%{buildroot}%{_datadir}/locale"
%fi
%if 0%lang
%files -f mc.lang
%else
%files
%doc ...
%{_bindir}/mc
...
%endif
Not sure that's better though.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\