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: I59255889740195ec811a947a7130ae0918ea4b4d
This commit is contained in:
Oliver Smith 2020-05-14 11:27:08 +02:00 committed by laforge
parent 12f93be607
commit 6370f5dd6f
3 changed files with 7 additions and 10 deletions

2
.gitignore vendored
View File

@ -99,3 +99,5 @@ tests/conv/gsm0503_test_vectors.c
# code coverage reports # code coverage reports
libosmocore-*-coverage* libosmocore-*-coverage*
coverage-cobertura.xml coverage-cobertura.xml
contrib/libosmocore.spec

View File

@ -441,4 +441,5 @@ AC_OUTPUT(
Doxyfile.coding Doxyfile.coding
Doxyfile.gb Doxyfile.gb
Doxyfile.ctrl Doxyfile.ctrl
Makefile) Makefile
contrib/libosmocore.spec)

View File

@ -12,14 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define version_unconverted 1.3.0.94
Name: libosmocore Name: libosmocore
Version: 1.3.0.94 Version: @VERSION@
Release: 0 Release: 0
Summary: The Open Source Mobile Communications Core Library Summary: The Open Source Mobile Communications Core Library
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later
@ -30,7 +24,7 @@ BuildRequires: automake >= 1.6
BuildRequires: libtool >= 2 BuildRequires: libtool >= 2
BuildRequires: lksctp-tools-devel BuildRequires: lksctp-tools-devel
BuildRequires: pkg-config >= 0.20 BuildRequires: pkg-config >= 0.20
BuildRequires: python2 BuildRequires: python3
BuildRequires: xz BuildRequires: xz
BuildRequires: pkgconfig(gnutls) >= 2.12.0 BuildRequires: pkgconfig(gnutls) >= 2.12.0
BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(libpcsclite)
@ -294,7 +288,7 @@ License: GPL-2.0-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version Requires: libosmocore-devel = %version
Requires: libosmousb0 = %version Requires: libosmousb0 = %version
Requires: libusb-1_0-devel Requires: pkgconfig(libusb-1.0)
%description -n libosmousb-devel %description -n libosmousb-devel
The libosmosub library in particular contains routines for USB device The libosmosub library in particular contains routines for USB device