Yesterday, after downloading the newest 3.4 source RPM's, notices that kbear was patched again, so I decided to build my own package. That worked good, however the size was huge compared to the version build for 3.4. The kbear package that comes with 3.4 is in the neighborhood of 2.3MB's, but mine was 14.4MB!! What a difference.
Taking what I learned of the strip command, it was applied to the bin/*, lib/*so, and lib/*. This reduced the package down to 9.1MB's, which is still too big considering the size of the 3.4 package.
Now, what is not being done when this package is built. Here is the terminal command that is being applied and the SPEC:
rpmbuild -ba --target i686 kbear.spec
and the SPEC...
kbear.spec:
Code:
Name: kbear
License: GPL
Group: Productivity/Networking/Ftp/Clients
Summary: A comfortable FTP Program
Version: 2.1.1
Release: 48
Source0: %name-%version-1.src.tar.bz2
Patch0: %name.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KBear is an FTP client with more features than the Konqueror FTP
client.
Authors:
--------
Björn Sahlström <bjorn@kbear.org>
%prep
%setup -q -n %name-2.1
%patch
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
( strip --strip-unneeded $RPM_BUILD_ROOT/opt/kde3/bin/* \
strip --strip-unneeded $RPM_BUILD_ROOT/opt/kde3/lib/*.so \
strip --strip-unneeded $RPM_BUILD_ROOT/opt/kde3/lib/*)
%suse_update_desktop_file kbear Network FileTransfer
%find_lang %name
%post
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
%doc NEWS TODO README AUTHORS INSTALL ChangeLog COPYING
/opt/kde3/bin/*
/opt/kde3/include/kbear
/opt/kde3/%_lib/lib*
/opt/kde3/%_lib/kde3/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/kbear*
/opt/kde3/share/servicetypes/kbearimportfilter.desktop
/opt/kde3/share/icons/??color
/opt/kde3/share/services/*
Any input would be greatly appreciated.