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: I3e135e5e7807688366598a24e121550d6292906c
This commit is contained in:
Oliver Smith 2020-05-14 11:30:01 +02:00
parent 39dffb6c29
commit 85887b2eee
3 changed files with 5 additions and 10 deletions

2
.gitignore vendored
View File

@ -44,3 +44,5 @@ tests/ipa_recv/ipa_recv_test
# vi/vim files
*.sw?
contrib/libosmo-abis.spec

View File

@ -167,4 +167,5 @@ AC_OUTPUT(
include/Makefile
src/Makefile
tests/Makefile
Makefile)
Makefile
contrib/libosmo-abis.spec)

View File

@ -12,14 +12,8 @@
# 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 version_unconverted 0.8.0.26
Name: libosmo-abis
Version: 0.8.0.26
Version: @VERSION@
Release: 0
Summary: Osmocom library for A-bis interface between BTS and BSC
License: AGPL-3.0-or-later AND GPL-2.0-or-later
@ -27,7 +21,6 @@ Group: Productivity/Telephony/Utilities
Url: https://osmocom.org/projects/libosmo-abis/wiki/Libosmo-abis
Source: %name-%version.tar.xz
Patch1: osmo-talloc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake >= 1.6
#BuildRequires: dahdi-linux-devel
@ -103,7 +96,6 @@ applications that want to make use of libosmotrau.
%prep
%setup -q
%patch -P 1 -p1 -F2
%build
echo "%version" >.tarball-version