Re: rpmbuild FAIL while packaging symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Andy & Michael for lot of info.
I have tried ldcofig stuff as well but no luck yet.

pls. find my .spec file...

-----------------------------------------------------------
Summary:    New Shared  (mylib) Library

Name:       mylib
Version:    3.0
Release:    5
Group:      Development (Shared) Libraries
Vendor:     
Distribution: 
URL:        
License:    
Source:     %{name}.tgz
AutoReqProv: no
Buildroot:  %{_tmppath}/%{BUILDsubdir}
%define __strip /bin/true
%define BUILDsubdir      %{name}-%{version}-%{release}
%define destdir /opt/lib_dir/sdl/

%description
The mylib package contains (mylib) development Libraries

%package -n mylib-devel
Summary: New Shared - mylib development libraries and related header files
Group: 
AutoReqProv: no

%ifarch ppc
Requires: libmylib.so
Requires: %{name} = %{version}
%else
Requires: %{name} = %{version}
#Requires: %{name}-devel = %{version}.ppc
%endif

%description -n mylib-devel
New Shared - mylib development libraries and related header files
%prep
%setup -q -c -n %{BUILDsubdir}

%build

%ifarch ppc
export TOP=/opt/lib_dir/sdl
make
%else
export TOP=/opt/lib_dir/sdl
make mylib_ppc64=1
%endif

%install

%ifarch ppc

rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include

cp lib/ppc/libmylib.so $RPM_BUILD_ROOT/usr/lib
cp include/ppc/mylib.h $RPM_BUILD_ROOT/usr/include
# Create Symbolic Link
cd $RPM_BUILD_ROOT/usr/lib
mv ./libmylib.so ./libmylib.so.1
ln -s ./libmylib.so.1 libmylib.so

%else

rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib64
mkdir -p $RPM_BUILD_ROOT/usr/include
cp lib/ppc/libmylib.so $RPM_BUILD_ROOT/usr/lib64

# Create Symbolic Link
cd $RPM_BUILD_ROOT/usr/lib64
mv ./libmylib.so ./libmylib.so.1
ln -s ./libmylib.so.1 libmylib.so

%endif

%clean
rm -rf $RPM_BUILD_ROOT

# mylib library  ppc and ppc64 rpms
%files
%defattr(-,root,root)
%ifarch ppc
/usr/lib/*so.1
%else # ppc64
/usr/lib64/*so.1
%endif

# mylib-devel library  ppc and ppc64 rpms
%files -n mylib-devel
%ifarch ppc
%defattr(-,root,root)
/usr/lib/*.so
/usr/include/*.h
%else
%defattr(-,root,root)
/usr/lib64/*.so
%endif
-----------------------------------------------------

The buildroot points to /var/tmp/mylib.3.0-x

The RPM build error (segmentation fail) is same as what i described earlier.
It does creates the symlink during %install. No problem at all. But fails during processing %file.

Processing files: mylib-3.0-5
Provides: libmylib.so
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) 

-- 
This is an email sent via The Fedora Community Portal https://fcp.surfsite.org
https://fcp.surfsite.org/modules/newbb/viewtopic.php?post_id=195602&topic_id=42857&forum=31#forumpost195602
If you think, this is spam, please report this to webmaster@xxxxxxxxxxxxxxxx and/or blame jyotisankar@xxxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux