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: Iba04d5c7b9beee80baca83063f9cb2cd533a0003
This commit is contained in:
parent
91d9410157
commit
569e46cbf9
|
@ -79,3 +79,5 @@ doc/manuals/generated/
|
||||||
doc/manuals/osmomsc-usermanual.xml
|
doc/manuals/osmomsc-usermanual.xml
|
||||||
doc/manuals/common
|
doc/manuals/common
|
||||||
doc/manuals/build
|
doc/manuals/build
|
||||||
|
|
||||||
|
contrib/osmo-ggsn.spec
|
||||||
|
|
|
@ -259,6 +259,7 @@ AC_CONFIG_FILES([Makefile
|
||||||
doc/manuals/Makefile
|
doc/manuals/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/systemd/Makefile
|
contrib/systemd/Makefile
|
||||||
|
contrib/osmo-ggsn.spec
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
tests/lib/Makefile
|
tests/lib/Makefile
|
||||||
tests/gtp/Makefile
|
tests/gtp/Makefile
|
||||||
|
|
|
@ -12,25 +12,23 @@
|
||||||
# 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/
|
|
||||||
#
|
|
||||||
|
|
||||||
## Disable LTO for now since it breaks compilation of the tests
|
## Disable LTO for now since it breaks compilation of the tests
|
||||||
## https://osmocom.org/issues/4114
|
## https://osmocom.org/issues/4114
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
|
|
||||||
Name: osmo-ggsn
|
Name: osmo-ggsn
|
||||||
Version: 1.5.0.31
|
Version: @VERSION@
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GPRS Support Node
|
Summary: GPRS Support Node
|
||||||
License: GPL-2.0-only AND LGPL-2.1-or-later
|
License: GPL-2.0-only AND LGPL-2.1-or-later
|
||||||
Group: Productivity/Telephony/Servers
|
Group: Productivity/Telephony/Servers
|
||||||
URL: https://osmocom.org/projects/openggsn/wiki/OsmoGGSN
|
URL: https://osmocom.org/projects/openggsn
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: pkgconfig >= 0.20
|
BuildRequires: pkgconfig >= 0.20
|
||||||
|
%if 0%{?suse_version}
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libgtpnl) >= 1.0.0
|
BuildRequires: pkgconfig(libgtpnl) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
||||||
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
|
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
|
||||||
|
@ -84,6 +82,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
|
@ -95,6 +94,7 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n libgtp6 -p /sbin/ldconfig
|
%post -n libgtp6 -p /sbin/ldconfig
|
||||||
%postun -n libgtp6 -p /sbin/ldconfig
|
%postun -n libgtp6 -p /sbin/ldconfig
|
Loading…
Reference in New Issue