Change in libusrp[master]: contrib/libusrp.spec.in: fix shared lib name error

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Wed May 20 07:59:10 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/libusrp/+/18375 )


Change subject: contrib/libusrp.spec.in: fix shared lib name error
......................................................................

contrib/libusrp.spec.in: fix shared lib name error

Fix the following build error:

[  135s] libusrp.i586: E: shlib-policy-name-error (Badness: 10000) libusrp-3_4_4_4_c46f0
[  135s] Your package contains a single shared library but is not named after its
[  135s] SONAME.

Related: OS#4550
Change-Id: I73b222ea7e2fd0117827f9d6f28b23671068533b
---
M contrib/libusrp.spec.in
1 file changed, 3 insertions(+), 10 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libusrp refs/changes/75/18375/1

diff --git a/contrib/libusrp.spec.in b/contrib/libusrp.spec.in
index 65fa92b..c664f64 100644
--- a/contrib/libusrp.spec.in
+++ b/contrib/libusrp.spec.in
@@ -13,8 +13,6 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-%define sover   -3_4_4+git_20190808-0
-%define libname libusrp%{sover}
 Name:           libusrp
 Version:        @VERSION@
 Release:        0
@@ -49,17 +47,12 @@
 %description
 Stand-alone libusrp for USRP1 from old gnuradio.git.
 
-%package -n %{libname}
 Summary:        Stand-alone libusrp for USRP1 from old gnuradio.git
 Group:          System/Libraries
 
-%description -n %{libname}
-Stand-alone libusrp for USRP1 from old gnuradio.git.
-
 %package devel
 Summary:        Development files for libusrp
 Group:          Development/Libraries/C and C++
-Requires:       %{libname} = %{version}
 
 %description devel
 Stand-alone libusrp for USRP1 from old gnuradio.git.
@@ -101,14 +94,14 @@
 rm -rf %{buildroot}%{_includedir}/gnuradio/
 %fdupes %{buildroot}%{_datadir}/usrp
 
-%post   -n %{libname} -p /sbin/ldconfig
-%postun -n %{libname} -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files -n usrp-tools
 %{_bindir}/usrp_cal_dc_offset
 %{_bindir}/usrper
 
-%files -n %{libname}
+%files
 %{_libdir}/libusrp*.so.*
 
 %files -n usrp-firmware

-- 
To view, visit https://gerrit.osmocom.org/c/libusrp/+/18375
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libusrp
Gerrit-Branch: master
Gerrit-Change-Id: I73b222ea7e2fd0117827f9d6f28b23671068533b
Gerrit-Change-Number: 18375
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200520/ebdd6858/attachment.htm>


More information about the gerrit-log mailing list