Change in osmo-remsim[master]: contrib: integrate RPM spec

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat May 23 11:49:16 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/18307 )

Change subject: contrib: integrate RPM spec
......................................................................

contrib: integrate RPM spec

Remove OpenSUSE bug report link, set version to @VERSION@, make it build
with CentOS 8 etc.

Related: OS#4550
Change-Id: Ib2da03980d99f12ab36ca5d5fdde92ddbefb040b
---
M .gitignore
M configure.ac
R contrib/osmo-remsim.spec.in
3 files changed, 17 insertions(+), 13 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/.gitignore b/.gitignore
index e2546a0..a1cec37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,3 +49,5 @@
 debian/.debhelper
 debian/debhelper*
 debian/files
+
+contrib/osmo-remsim.spec
diff --git a/configure.ac b/configure.ac
index b65340f..5833d0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,6 +196,7 @@
 	contrib/Makefile
 	contrib/etc_default/Makefile
 	contrib/systemd/Makefile
+	contrib/osmo-remsim.spec
 	doc/Makefile
 	doc/manuals/Makefile
 	src/Makefile
diff --git a/contrib/osmo-remsim.spec b/contrib/osmo-remsim.spec.in
similarity index 92%
rename from contrib/osmo-remsim.spec
rename to contrib/osmo-remsim.spec.in
index 84874bc..4ff26bc 100644
--- a/contrib/osmo-remsim.spec
+++ b/contrib/osmo-remsim.spec.in
@@ -12,24 +12,23 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
 %define sover 1
 Name:           osmo-remsim
-Version:        0.2.2.86
+Version:        @VERSION@
 Release:        0
 Summary:        Osmocom remote SIM software suite
 License:        GPL-2.0-or-later
 Group:          Productivity/Telephony/Servers
-URL:            https://projects.osmocom.org/projects/osmo-remsim
+URL:            https://osmocom.org/projects/osmo-remsim
 Source:         %{name}-%{version}.tar.xz
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libcsv-devel
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
+%if 0%{?suse_version}
 BuildRequires:  systemd-rpm-macros
+%endif
 BuildRequires:  pkgconfig(libasn1c) >= 0.9.30
 BuildRequires:  pkgconfig(libosmoabis)
 BuildRequires:  pkgconfig(libosmocore) >= 0.11.0
@@ -40,7 +39,7 @@
 BuildRequires:  pkgconfig(libusb-1.0)
 BuildRequires:  pkgconfig(libosmousb)
 BuildRequires:  pkgconfig(libosmo-simtrace2)
-%{?systemd_ordering}
+%{?systemd_requires}
 
 %description
 osmo-remsim is a suite of software programs enabling physical/geographic
@@ -159,6 +158,7 @@
 %post   -n libosmo-rspro%{sover} -p /sbin/ldconfig
 %postun -n libosmo-rspro%{sover} -p /sbin/ldconfig
 
+%if 0%{?suse_version}
 %pre    -n osmo-remsim-bankd %service_add_pre     osmo-remsim-bankd.service
 %post   -n osmo-remsim-bankd %service_add_post    osmo-remsim-bankd.service
 %preun  -n osmo-remsim-bankd %service_del_preun   osmo-remsim-bankd.service
@@ -173,6 +173,7 @@
 %post   -n osmo-remsim-server %service_add_post   osmo-remsim-server.service
 %preun  -n osmo-remsim-server %service_del_preun  osmo-remsim-server.service
 %postun -n osmo-remsim-server %service_del_postun osmo-remsim-server.service
+%endif
 
 %files -n libosmo-rspro%{sover}
 %license COPYING
@@ -180,9 +181,8 @@
 %{_libdir}/libosmo-rspro.so.%{sover}*
 
 %files -n libosmo-rspro-devel
-%{_includedir}/osmocom
 %dir %{_includedir}/osmocom/rspro
-%{_includedir}/osmocom/rspro/rspro_client.h
+%{_includedir}/osmocom/rspro/*
 %{_libdir}/libosmo-rspro.so
 %{_libdir}/pkgconfig/libosmo-rspro.pc
 
@@ -204,12 +204,13 @@
 %config %{_sysconfdir}/default/osmo-remsim-client*
 
 %files -n libifd-osmo-remsim-client0
-%dir %{_libdir}/readers/
+%if 0%{?centos_ver}
+%dir %{_libdir}/pcsc/drivers/libifd-osmo-remsim-client.bundle
+%{_libdir}/pcsc/drivers/libifd-osmo-remsim-client.bundle/*
+%else
 %dir %{_libdir}/readers/libifd-osmo-remsim-client.bundle
-%dir %{_libdir}/readers/libifd-osmo-remsim-client.bundle/Contents
-%{_libdir}/readers/libifd-osmo-remsim-client.bundle/Contents/PkgInfo
-%dir %{_libdir}/readers/libifd-osmo-remsim-client.bundle/Contents/Linux
-%{_libdir}/readers/libifd-osmo-remsim-client.bundle/Contents/Linux/libifd_remsim_client.so*
+%{_libdir}/readers/libifd-osmo-remsim-client.bundle/*
+%endif
 %config %{_sysconfdir}/reader.conf.d/osmo-remsim-client-reader_conf
 
 %changelog

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

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: Ib2da03980d99f12ab36ca5d5fdde92ddbefb040b
Gerrit-Change-Number: 18307
Gerrit-PatchSet: 5
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: roox <mardnh at gmx.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200523/c91e68df/attachment.htm>


More information about the gerrit-log mailing list