lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/41389?usp=email )


Change subject: add RPM spec file
......................................................................

add RPM spec file

Based on libosmo-netif
Untested.

Change-Id: I579e5809de88ac41f199056a2369e50c27496ac7
---
M .gitignore
M Makefile.am
M configure.ac
A contrib/libosmo-asn1-tcap.spec.in
4 files changed, 84 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-asn1-tcap 
refs/changes/89/41389/1

diff --git a/.gitignore b/.gitignore
index 50e7d67..c8818e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@
 .libs
 .version
 include/osmocom/tcap/version.h
+contrib/libosmo-asn1-tcap.spec
diff --git a/Makefile.am b/Makefile.am
index 9e311a6..1844f2d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,4 +17,5 @@
             .version \
             debian \
             git-version-gen \
+            contrib/libosmo-asn1-tcap.spec.in \
             $(NULL)
diff --git a/configure.ac b/configure.ac
index 8e18a0f..7b145d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,4 +69,5 @@
         include/Makefile
         include/osmocom/Makefile
         include/osmocom/tcap/Makefile
+        contrib/libosmo-netif.spec
         Makefile)
diff --git a/contrib/libosmo-asn1-tcap.spec.in 
b/contrib/libosmo-asn1-tcap.spec.in
new file mode 100644
index 0000000..51f6603
--- /dev/null
+++ b/contrib/libosmo-asn1-tcap.spec.in
@@ -0,0 +1,81 @@
+#
+# spec file for package libosmo-asn1-tcap
+#
+# Copyright (c) 2025 sysmocom s.f.m.c. GmbH <[email protected]>
+# Author: Alexander Couzens <[email protected]>
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+Name:           libosmo-asn1-tcap
+Version:        @VERSION@
+Release:        0
+Summary:        Osmocom library for ASN.1 of TCAP (SS7)
+License:        GPL-2.0-or-later
+Group:          Productivity/Telephony/Utilities
+URL:            https://osmocom.org/projects/libosmo-sccp
+Source:         %{name}-%{version}.tar.xz
+BuildRequires:  automake
+BuildRequires:  libtool >= 2
+BuildRequires:  pkgconfig >= 0.20
+
+%description
+Utility library for ASN.1 of TCAP (SS7)
+
+%package -n libosmo-asn1-tcap0
+Summary:        Osmocom library for muxed audio
+License:        AGPL-3.0-or-later
+Group:          System/Libraries
+
+%description -n libosmo-asn1-tcap0
+Utility library for ASN.1 of TCAP (SS7)
+
+%package -n libosmo-asn1-tcap-devel
+Summary:        Development files for the Osmocom muxed audio library
+License:        AGPL-3.0-or-later
+Group:          Development/Libraries/C and C++
+Requires:       libosmo-asn1-tcap0 = %{version}
+
+%description -n libosmo-asn1-tcap-devel
+Utility library for ASN.1 of TCAP (SS7)
+
+This subpackage contains libraries and header files for developing
+applications that want to make use of libosmo-asn1-tcap
+
+%prep
+%setup -q
+
+%build
+echo "%{version}" >.tarball-version
+autoreconf -fiv
+%configure --enable-shared --disable-static 
--includedir="%{_includedir}/%{name}"
+make %{?_smp_mflags}
+
+%install
+%make_install
+find %{buildroot} -type f -name "*.la" -delete -print
+
+%check
+make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
+
+%post   -n libosmo-asn1-tcap0 -p /sbin/ldconfig
+%postun -n libosmo-asn1-tcap0 -p /sbin/ldconfig
+
+%files -n libosmo-asn1-tcap0
+%{_libdir}/libosmo-asn1-tcap.so.0*
+
+%files -n libosmo-asn1-tcap-devel
+%license COPYING
+%dir %{_includedir}/%{name}
+%dir %{_includedir}/%{name}/osmocom
+%{_includedir}/%{name}/osmocom/tcap/
+%{_libdir}/libosmo-asn1-tcap.so
+%{_libdir}/pkgconfig/libosmo-asn1-tcap.pc
+
+%changelog

--
To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/41389?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-asn1-tcap
Gerrit-Branch: master
Gerrit-Change-Id: I579e5809de88ac41f199056a2369e50c27496ac7
Gerrit-Change-Number: 41389
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>

Reply via email to