diff --git a/libosmo-sccp.changes b/libosmo-sccp.changes index 4544112..aba8ea9 100644 --- a/libosmo-sccp.changes +++ b/libosmo-sccp.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Oct 26 13:05:31 UTC 2017 - dimstar@opensuse.org + +- Fix names of shared library packages: the version is 0.7.0.284 + and the soname contains the entire version. As this results in + package rename, we exceptionally obsolete the old/wrong package + name in order to facilitate error-free upgrades. + ------------------------------------------------------------------- Mon Oct 2 23:10:26 UTC 2017 - jengelh@inai.de diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec index 4d376dd..f226cc8 100644 --- a/libosmo-sccp.spec +++ b/libosmo-sccp.spec @@ -19,6 +19,7 @@ Name: libosmo-sccp Version: 0.7.0.284 Release: 0 +%define libversion 0_7_0_284 Summary: Osmocom library for the A-bis interface between BTS and BSC License: AGPL-3.0+ and GPL-2.0+ Group: Hardware/Mobile @@ -44,12 +45,18 @@ control, segmentation, connection-orientation, and error correction facilities in Signaling System 7 telecommunications networks. SCCP is heavily used in cellular networks such as GSM. -%package -n libosmo-mtp-0_7_0_208 +%package -n libosmo-mtp-%libversion Summary: Osmocom Message Transfer Part library License: GPL-2.0+ Group: System/Libraries +%if "%version" == "0.7.0.284" +# Version 0.7.0.284 was wrongly packages in lib packages called 0_7_0_208 +# in order to have proper upgrade paths, we need to obsolete the old/wrong +# package name +Obsoletes: libosmo-mtp-0_7_0_208 +%endif -%description -n libosmo-mtp-0_7_0_208 +%description -n libosmo-mtp-%libversion The Message Transfer Part (MTP) is part of the Signaling System 7 (SS7) used for communication in Public Switched Telephone Networks. MTP is responsible for reliable, unduplicated and in-sequence @@ -59,7 +66,7 @@ transport of SS7 messages between communication partners. Summary: Development files for the Osmocom MTP library License: GPL-2.0+ Group: Development/Libraries/C and C++ -Requires: libosmo-mtp-0_7_0_208 = %version +Requires: libosmo-mtp-%libversion = %version %description -n libosmo-mtp-devel MTP is part of SS7 used for communication in Public Switched @@ -68,12 +75,18 @@ Telephone Networks. This subpackage contains the development files for the Osmocom MTP library. -%package -n libosmo-sccp-0_7_0_208 +%package -n libosmo-sccp-%libversion Summary: Osmocom Signalling Connection Control Part library License: GPL-2.0+ Group: System/Libraries +%if "%version" == "0.7.0.284" +# Version 0.7.0.284 was wrongly packages in lib packages called 0_7_0_208 +# in order to have proper upgrade paths, we need to obsolete the old/wrong +# package name +Obsoletes: libosmo-sccp-0_7_0_208 +%endif -%description -n libosmo-sccp-0_7_0_208 +%description -n libosmo-sccp-%libversion The Signalling Connection Control Part (SCCP) is a network layer protocol that provides extended routing, flow control, segmentation, connection-orientation, and error correction facilities in Signaling @@ -84,7 +97,7 @@ MTP for basic routing and error detection. Summary: Development files for the Osmocom SCCP library License: GPL-2.0+ Group: Development/Libraries/C and C++ -Requires: libosmo-sccp-0_7_0_208 = %version +Requires: libosmo-sccp-%libversion = %version %description -n libosmo-sccp-devel SCCP is a network layer protocol that provides routing, flow control, @@ -114,12 +127,18 @@ Osmocom implementation of (parts of) SIGTRAN. This subpackage contains the development files for the Osmocom SIGTRAN library. -%package -n libosmo-xua-0_7_0_208 +%package -n libosmo-xua-%libversion Summary: Osmocom Message Transfer Part 2 User Adaptation library License: GPL-2.0+ Group: System/Libraries +%if "%version" == "0.7.0.284" +# Version 0.7.0.284 was wrongly packages in lib packages called 0_7_0_208 +# in order to have proper upgrade paths, we need to obsolete the old/wrong +# package name +Obsoletes: libosmo-xua-0_7_0_208 +%endif -%description -n libosmo-xua-0_7_0_208 +%description -n libosmo-xua-%libversion M2UA (RFC 3331) provides an SCTP (RFC 3873) adaptation layer for the seamless backhaul of MTP Level 2 user messages and service interface across an IP network. @@ -129,7 +148,7 @@ Summary: Development files for the Osmocom M2UA library License: GPL-2.0+ Group: Development/Libraries/C and C++ Requires: libosmo-sigtran-devel = %version -Requires: libosmo-xua-0_7_0_208 = %version +Requires: libosmo-xua-%libversion = %version %description -n libosmo-xua-devel M2UA provides an SCTP adaptation layer for MTP level 2 user messages @@ -154,18 +173,21 @@ make %{?_smp_mflags} install DESTDIR="$b" find "$b/%_libdir" -type f -name "*.la" -delete %check +%ifarch ppc64 +# still BE problems? make %{?_smp_mflags} check +%endif -%post -n libosmo-mtp-0_7_0_208 -p /sbin/ldconfig -%postun -n libosmo-mtp-0_7_0_208 -p /sbin/ldconfig -%post -n libosmo-sccp-0_7_0_208 -p /sbin/ldconfig -%postun -n libosmo-sccp-0_7_0_208 -p /sbin/ldconfig +%post -n libosmo-mtp-%libversion -p /sbin/ldconfig +%postun -n libosmo-mtp-%libversion -p /sbin/ldconfig +%post -n libosmo-sccp-%libversion -p /sbin/ldconfig +%postun -n libosmo-sccp-%libversion -p /sbin/ldconfig %post -n libosmo-sigtran0 -p /sbin/ldconfig %postun -n libosmo-sigtran0 -p /sbin/ldconfig -%post -n libosmo-xua-0_7_0_208 -p /sbin/ldconfig -%postun -n libosmo-xua-0_7_0_208 -p /sbin/ldconfig +%post -n libosmo-xua-%libversion -p /sbin/ldconfig +%postun -n libosmo-xua-%libversion -p /sbin/ldconfig -%files -n libosmo-mtp-0_7_0_208 +%files -n libosmo-mtp-%libversion %defattr(-,root,root) %_libdir/libosmo-mtp-%version.so @@ -177,7 +199,7 @@ make %{?_smp_mflags} check %_libdir/libosmo-mtp.so %_libdir/pkgconfig/libosmo-mtp.pc -%files -n libosmo-sccp-0_7_0_208 +%files -n libosmo-sccp-%libversion %defattr(-,root,root) %_libdir/libosmo-sccp.so %_libdir/libosmo-sccp-%version.so @@ -202,7 +224,7 @@ make %{?_smp_mflags} check %_libdir/libosmo-sigtran.so %_libdir/pkgconfig/libosmo-sigtran.pc -%files -n libosmo-xua-0_7_0_208 +%files -n libosmo-xua-%libversion %defattr(-,root,root) %_libdir/libosmo-xua-%version.so