LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-11-2010, 09:23 AM   #1
freaks_s
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
pb creating a RPM


hello
i try to create an updated RPM of the lib geos
i have downloaded the SRPM then i made a rpm -ivh srpmfile.rpm
so i obtained the SPEC file
when i launch this command
Code:
rpmbuild -bi --short-circuit  geos.spec
i have this response


Code:
ERROR   0001: file '/usr/lib64/libgeos_c.so.1.6.2' contains a standard rpath '/usr/lib64' in [/usr/lib64]
so i try with this one
Code:
 QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -bi --short-circuit  geos.spec
and it's ok
after this one
Code:
QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba  geos.spec
and i have my RPM's
the final problem
Code:
rpm -ivh geos-3.2.2-3.x86_64.rpm
give me this reponse

Code:
libgeos-3.2.2.so()(64bit) is necessary for geos-3.2.2-3.x86_64
thks for your help
 
Old 10-11-2010, 11:32 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sometimes a .src.rpm will build several packages automagically and sometimes you'll need to pass some argument at 'rpmbuild -b' time. Look at the .spec file contents for clues?
 
Old 10-12-2010, 03:29 AM   #3
freaks_s
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
this is my spec file

Quote:
%prep
%setup -q

%build
%configure --disable-static --disable-dependency-tracking --disable-rpath --disable-xmltest
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}

# Make doxygen documentation files
cd doc
make doxygen-html

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README TODO
%{_libdir}/libgeos*.so.*



%files devel
%defattr(-,root,root,-)
%doc doc/doxygen_docs
%{_bindir}/geos-config
%{_includedir}/*
%{_libdir}/*.so
#%exclude %{_bindir}/XMLTester
%exclude %{_libdir}/*.la
 
Old 10-12-2010, 10:43 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If that is the original and "official" .spec file that came with the tarball it's incomplete and it doesn't show any build flags.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
possibly creating an RPM dsollen Linux - Software 16 10-04-2009 07:53 PM
Creating an RPM that installs in a directory made by another RPM erinfin Linux - Software 4 11-15-2007 05:10 PM
Creating RPM Debugger Programming 2 11-14-2006 02:53 AM
Creating an installable RPM smart_sagittari Linux - General 5 09-08-2005 11:28 AM
Creating RPM. jayakrishnan Linux - General 1 04-10-2002 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:23 PM.

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