Accepting request 105613 from devel:libraries:c_c++
- Remove redundant tags/sections - Fix dangling symlink /usr/lib/libunwind.so (which was pointing at "libunwind.so.8.*", verbatim asterisk) - Throw out .la file (forwarded request 105594 from jengelh) OBS-URL: https://build.opensuse.org/request/show/105613 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunwind?expand=0&rev=19
This commit is contained in:
parent
8176ac3266
commit
df92b33a37
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 9 15:53:49 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant tags/sections
|
||||||
|
- Fix dangling symlink /usr/lib/libunwind.so (which was
|
||||||
|
pointing at "libunwind.so.8.*", verbatim asterisk)
|
||||||
|
- Throw out .la file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 23 09:24:25 UTC 2011 - coolo@suse.com
|
Wed Nov 23 09:24:25 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -15,9 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: libunwind
|
Name: libunwind
|
||||||
BuildRequires: gcc-c++ libtool
|
BuildRequires: gcc-c++ libtool
|
||||||
Url: http://savannah.nongnu.org/projects/libunwind/
|
Url: http://savannah.nongnu.org/projects/libunwind/
|
||||||
@ -44,7 +41,6 @@ Authors:
|
|||||||
David Mosberger <David.Mosberger@acm.org>
|
David Mosberger <David.Mosberger@acm.org>
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: MIT
|
|
||||||
Summary: Unwind library
|
Summary: Unwind library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libunwind = %{version}-%{release}
|
Requires: libunwind = %{version}-%{release}
|
||||||
@ -69,9 +65,8 @@ Authors:
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
|
export CFLAGS="%optflags -U_FORTIFY_SOURCE"
|
||||||
./configure "CFLAGS=$RPM_OPT_FLAGS" --prefix=/usr --mandir=%{_mandir} \
|
%configure
|
||||||
--libdir=%{_libdir} --build=%{_target_cpu}-suse-linux
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -82,17 +77,17 @@ make -k check || :
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
rm -f "%buildroot/%_libdir"/*.la
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/libunwind.so.8* $RPM_BUILD_ROOT/%{_lib}
|
mv $RPM_BUILD_ROOT%{_libdir}/libunwind.so.8* $RPM_BUILD_ROOT/%{_lib}
|
||||||
ln -sf ../../%{_lib}/libunwind.so.8.* $RPM_BUILD_ROOT%{_libdir}/libunwind.so
|
ln -sf /%{_lib}/libunwind.so.8 $RPM_BUILD_ROOT%{_libdir}/libunwind.so
|
||||||
|
# Check that ln did not create a dangling link
|
||||||
|
stat "%buildroot"/$(readlink -f "%buildroot/%_libdir/libunwind.so");
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
/%_lib/lib*
|
/%_lib/lib*
|
||||||
@ -103,7 +98,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_prefix}/include/*
|
%{_prefix}/include/*
|
||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
%{_libdir}/lib*.la
|
|
||||||
%{_libdir}/libunwind-*.so
|
%{_libdir}/libunwind-*.so
|
||||||
%doc %{_mandir}/man?/*
|
%doc %{_mandir}/man?/*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user