LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   pb creating a RPM (https://www.linuxquestions.org/questions/red-hat-31/pb-creating-a-rpm-837409/)

freaks_s 10-11-2010 09:23 AM

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

unSpawn 10-11-2010 11:32 AM

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?

freaks_s 10-12-2010 03:29 AM

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

unSpawn 10-12-2010 10:43 AM

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.


All times are GMT -5. The time now is 11:50 AM.