On Wed, 2005-09-21 at 03:08 -0400, Jakub Jelinek wrote:
On Tue, Sep 20, 2005 at 03:20:44PM -0700, Toshio Kuratomi wrote:
> MAJOR=`echo '%{version}' | sed 's/\([0-9]\+\)\..*/\1/'`
> %{__cc} $RPM_OPT_FLAGS -shared -Wl,-soname -Wl,libungif.so.$MAJOR \
> -Llib/.libs -lgif -o libungif.so.%{version}
You can use -Wl,-soname,libungif.so.$MAJOR to save a few chars... ;)
Will be changed in -5.
> Plus three lines to install and symlink the library.
This is the way to go IMNSHO.
> Warren's 64bit Provides conditional is pretty snazzy as well:
> %if %{_lib} == lib64
> Provides: libungif.so.4()(64bit)
> %else
> Provides: libungif.so.4
> %endif
This is wrong on ia64, which although it uses %{_lib} == lib,
it has the (64bit) suffixes in provides/requires.
Thanks for the clarifications, Jakub.
So it looks like the empty library is the way to go.
New Questions:
Should I take this opportunity to rename the -progs subpackage to
-utils? On my box I have 4 -progs subpackages compared to 31 -utils.
I'm adding an Obsoletes to the -progs subpackage as well unless someone
can think of a reason not too.
-Toshio