On Wed, Jan 26, 2011 at 11:04 AM, JohnS <[email protected]> wrote:
>
> On Wed, 2011-01-26 at 11:02 -0500, JohnS wrote:
>> The problem is RPM is trying to install into the main file system
>> whereas el5 rpm does not need an incantation like so.
>
> I mean el6 sorry..
>
> John
Yep, that make sense.
For completeness, there is another mod to the spec file that is
required in the %install scriptlet.
patch file fc13-el5 attached.
So final process was:
$ rpm -ivh libsrtp-1.4.4-1.20101004cvs.fc13.src.rpm
patch libsrtp.spec < libsrtp.spec.fc13-el5.patch
$ rpmbuild -ba libstrp.spec
$ rpmbuild --rebuild --target i686
~/redhat/SRPMS/libsrtp-1.4.4-1.20101004cvs.el5.src.rpm
Now I have rpms for i686 and i386 for el5. :-D
--
-Bob
--- libsrtp.spec 2010-12-06 11:13:59.000000000 -0500
+++ libsrtp.spec.el5 2011-01-26 11:22:42.000000000 -0500
@@ -18,6 +18,8 @@ Source1: libsrtp.pc
# And how does Chromium always manage to find these projects and use them?
Patch0: libsrtp-1.4.4-shared.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
%description
This package provides an implementation of the Secure Real-time
Transport Protocol (SRTP), the Universal Security Transform (UST), and
@@ -46,6 +48,7 @@ export CFLAGS="%{optflags} -fPIC"
make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
pushd %{buildroot}%{_libdir}
_______________________________________________
CentOS mailing list
[email protected]
http://lists.centos.org/mailman/listinfo/centos