LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-12-2005, 11:11 AM   #1
SpEcIeS
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu 9.04 AMD64
Posts: 229

Rep: Reputation: 30
kbear 2.1.1-48


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.
 
Old 04-26-2005, 09:35 PM   #2
SpEcIeS
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu 9.04 AMD64
Posts: 229

Original Poster
Rep: Reputation: 30
Nothing yet ... eh?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kbear login apffal Linux - Software 5 10-13-2005 04:44 PM
KBear problems xTheLostx Linux - Software 2 05-27-2005 07:02 PM
Uninstalling kbear woosting Linux - Software 4 01-31-2005 04:11 AM
Kbear error help Archer36 Fedora 0 08-27-2004 11:46 AM
KBear And NAT ? mintedice Linux - Software 1 11-14-2003 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration