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: Idfe04c2e2609763387d1309f059c390b8e7ae938
This commit is contained in:
parent
d0156fd6a8
commit
c10cb81593
|
@ -64,3 +64,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-pcu.spec
|
||||||
|
|
|
@ -256,4 +256,5 @@ AC_OUTPUT(
|
||||||
doc/manuals/Makefile
|
doc/manuals/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/systemd/Makefile
|
contrib/systemd/Makefile
|
||||||
|
contrib/osmo-pcu.spec
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -12,24 +12,22 @@
|
||||||
# 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/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
Name: osmo-pcu
|
Name: osmo-pcu
|
||||||
Version: 0.8.0.126
|
Version: @VERSION@
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Osmocom GPRS Packet Control Unit (PCU)
|
Summary: Osmocom GPRS Packet Control Unit (PCU)
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: Productivity/Telephony/Servers
|
Group: Productivity/Telephony/Servers
|
||||||
URL: https://osmocom.org/projects/osmopcu/wiki/OsmoPCU
|
URL: https://osmocom.org/projects/osmopcu
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig >= 0.20
|
BuildRequires: pkgconfig >= 0.20
|
||||||
|
%if 0%{?suse_version}
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
|
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
|
||||||
BuildRequires: pkgconfig(libosmogb) >= 1.1.0
|
BuildRequires: pkgconfig(libosmogb) >= 1.1.0
|
||||||
BuildRequires: pkgconfig(libosmogsm) >= 1.1.0
|
BuildRequires: pkgconfig(libosmogsm) >= 1.1.0
|
||||||
|
@ -55,6 +53,7 @@ make %{?_smp_mflags}
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
|
|
||||||
|
@ -66,6 +65,7 @@ make %{?_smp_mflags}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
Loading…
Reference in New Issue