Change in simtrace2[master]: host/contrib/simtrace2.spec.in: update

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
Mon Dec 13 09:24:14 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/simtrace2/+/26501 )

Change subject: host/contrib/simtrace2.spec.in: update
......................................................................

host/contrib/simtrace2.spec.in: update

Apply various improvements from Martin Hauke, thanks!

* Put sover into a variable
* Sync BuildRequires with configure.ac
* Update libosmo-simtrace2 summary
* Use %make_build instead of make %{?_smp_mflags}

Change-Id: I35ce3865702f72365b38b0eaa8b28f332dabcd1f
---
M host/contrib/simtrace2.spec.in
1 file changed, 16 insertions(+), 14 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved



diff --git a/host/contrib/simtrace2.spec.in b/host/contrib/simtrace2.spec.in
index 1c47f5e..0bc5d2a 100644
--- a/host/contrib/simtrace2.spec.in
+++ b/host/contrib/simtrace2.spec.in
@@ -1,7 +1,8 @@
 #
 # spec file for package simtrace2
 #
-# Copyright (c) 2018, Martin Hauke <mardnh at gmx.de>
+# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2018-2021, Martin Hauke <mardnh at gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,6 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
+%define sover 1
 Name:           simtrace2
 Version:        @VERSION@
 Release:        0
@@ -24,12 +26,11 @@
 BuildRequires:  automake
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
-BuildRequires:  pkgconfig(libosmocore)
-BuildRequires:  pkgconfig(libosmosim)
+BuildRequires:  pkgconfig(libosmocore) >= 1.4.0
+BuildRequires:  pkgconfig(libosmosim) >= 1.4.0
+BuildRequires:  pkgconfig(libosmousb) >= 1.4.0
 BuildRequires:  pkgconfig(libpcsclite)
 BuildRequires:  pkgconfig(libusb-1.0)
-BuildRequires:  pkgconfig(libosmousb) >= 0.0.0
-BuildRequires:  pkgconfig(udev)
 
 %description
 Osmocom SIMtrace 2 is a software and hardware system for passively
@@ -38,11 +39,11 @@
 
 This package contains SIMtrace 2 host utility.
 
-%package -n libosmo-simtrace2-1
-Summary:        Shared Library part of libosmo-simtrace2
+%package -n libosmo-simtrace2-%{sover}
+Summary:        Driver functions for Osmocom SIMtrace2 and compatible firmware
 Group:          System/Libraries
 
-%description -n libosmo-simtrace2-1
+%description -n libosmo-simtrace2-%{sover}
 This library contains core "driver" functionality to interface with the
 Osmocom SIMtrace2 (and compatible) USB device firmware.  It enables
 applications to implement SIM card / smart card tracing as well as
@@ -51,7 +52,7 @@
 %package -n libosmo-simtrace2-devel
 Summary:        Development files for the Osmocom SIMtrace2 library
 Group:          Development/Libraries/C and C++
-Requires:       libosmo-simtrace2-1 = %{version}
+Requires:       libosmo-simtrace2-%{sover} = %{version}
 
 %description -n libosmo-simtrace2-devel
 Osmocom SIMtrace2 (and compatible) USB device firmware.  It enables
@@ -69,17 +70,18 @@
 echo "%{version}" >.tarball-version
 autoreconf -fiv
 %configure --disable-static
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install -C host
 install -Dm0644 host/contrib/99-simtrace2.rules %{buildroot}/%{_udevrulesdir}/99-simtrace2.rules
 find %{buildroot} -type f -name "*.la" -delete -print
 
-%post   -n libosmo-simtrace2-1 -p /sbin/ldconfig
-%postun -n libosmo-simtrace2-1 -p /sbin/ldconfig
+%post   -n libosmo-simtrace2-%{sover} -p /sbin/ldconfig
+%postun -n libosmo-simtrace2-%{sover} -p /sbin/ldconfig
 
 %files
+%license host/COPYING
 %doc README.md
 %{_bindir}/simtrace2-cardem-pcsc
 %{_bindir}/simtrace2-list
@@ -87,8 +89,8 @@
 %{_bindir}/simtrace2-tool
 %{_udevrulesdir}/99-simtrace2.rules
 
-%files -n libosmo-simtrace2-1
-%{_libdir}/libosmo-simtrace2.so.1*
+%files -n libosmo-simtrace2-%{sover}
+%{_libdir}/libosmo-simtrace2.so.%{sover}*
 
 %files -n libosmo-simtrace2-devel
 %dir %{_includedir}/osmocom/

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

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I35ce3865702f72365b38b0eaa8b28f332dabcd1f
Gerrit-Change-Number: 26501
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211213/6636a1eb/attachment.htm>


More information about the gerrit-log mailing list