谷村@長崎です。
フォローありがとうございました。
> > spec を編集し、AutoReq: no を追加してみましたが、
> >
> どこに書きましたか?
>
> %package gl section に書かないと効かないと思います。
おぉ、これは考え違いをしていました。当たりかも知れません。
----------- wxGTK.spec のパッケージ定義部抜粋 -----------
%define pref /usr
%define ver 2.4.1
%define ver2 2.4
Summary: The GTK+ 1.2 port of the wxWindows library
Name: wxGTK
Version: %{ver}
Release: 0vl1
Copyright: wxWindows Licence
Group: X11/Libraries
Source: wxGTK-%{ver}.tar.bz2
URL: http://www.wxwindows.org
Packager: Vadim Zeitlin <vadim@xxxxxxxxxxxxx>
Prefix: %{pref}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# AutoReq: no <- こことか
AutoReqProv: no <- ここに書いていました。
# all packages providing an implementation of wxWindows library (regardless of
# the toolkit used) should provide the (virtual) wxwin package, this makes it
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
Provides: wxwin
# in addition, we should provide libwx_gtk as automatic generator only notices
# libwx_gtk-%{ver}-%{rel}
Provides: libwx_gtk.so
Provides: libwx_gtk-%{ver2}.so
%description
wxWindows is a free C++ library for cross-platform GUI development.
With wxWindows, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.
%package devel
Summary: The GTK+ 1.2 port of the wxWindows library
Group: X11/Libraries
Requires: wxGTK = %{ver}
%description devel
Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
%package gl
Summary: The GTK+ 1.2 port of the wxWindows library, OpenGL add-on.
Group: X11/Libraries
Requires: wxGTK = %{ver}
<- ここに書くべきだったのですね。
%description gl
OpenGL add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
%package static
Summary: wxGTK static libraries
Group: Development/Libraries
%description static
Static libraries for wxGTK. You need them if you want to link statically against wxGTK.
%prep
%setup -n wxGTK-%{ver}
------------------ 抜粋ここまで ----------------
> rpm -qRp wxGTK-gl-2.4.1-0vl1.i386.rpm
> rpm -qRp wxGTK-2.4.1-0vl1.i386.rpm
>
> とやるとどうなります?
> wxGTK 本体は hogehoge.so への Require: が消えてて、wxGTK-gl のほうは
> 残ったままだったりしません?
仰るとおりでした。
$ for i in rpm/RPMS/i386/wxGTK-*; do echo $i; rpm -qRp $i;done
rpm/RPMS/i386/wxGTK-2.4.1-0vl1.i386.rpm
/bin/sh
rpm/RPMS/i386/wxGTK-devel-2.4.1-0vl1.i386.rpm
wxGTK = 2.4.1
/bin/sh
/bin/sh
rpm/RPMS/i386/wxGTK-gl-2.4.1-0vl1.i386.rpm
wxGTK = 2.4.1
/bin/sh
ld-linux.so.2
libGL.so.1
libGLU.so.1
libGLcore.so.1 <- ありました
libX11.so.6
libXext.so.6
libXi.so.6
libc.so.6
libdl.so.2
libgdk-1.2.so.0
libglib-1.2.so.0
libgmodule-1.2.so.0
libgthread-1.2.so.0
libgtk-1.2.so.0
libjpeg.so.62
libm.so.6
libpng.so.2
libpthread.so.0
libstdc++-libc6.2-2.so.3
libtiff.so.3
libz.so.1
大変助かりました。ありがとうございました。
AutoReq を%package gl section に書いて再度挑戦します。