File libsmpp34.spec of Package libsmpp34 (Revision 7cad6814d8d21b3b16edb39d3e1d12cc)

Currently displaying revision 7cad6814d8d21b3b16edb39d3e1d12cc , Show latest

91
 
1
#
2
# spec file for package libsmpp34
3
#
4
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
6
#
7
# All modifications and additions to the file contributed by third parties
8
# remain the property of their copyright owners, unless otherwise agreed
9
# upon. The license for this file, and modifications and additions to the
10
# file, is the same license as for the pristine package itself (unless the
11
# license for the pristine package is not an Open Source License, in which
12
# case the license is the MIT License). An "Open Source License" is a
13
# license that conforms to the Open Source Definition (Version 1.9)
14
# published by the Open Source Initiative.
15
16
%define sover 1
17
Name:           libsmpp34
18
Requires: osmocom-nightly = 202405072026
19
Version: 1.14.3.2.4b6d.202405072026
20
Release:        0
21
Summary:        PDU SMPP packaging and unpackaging tool
22
License:        GPL-2.0-or-later AND LGPL-2.1-or-later
23
Group:          Development/Libraries/C and C++
24
URL:            https://osmocom.org/projects/libsmpp34
25
Source: libsmpp34_1.14.3.2.4b6d.202405072026.tar.xz
26
Source1: rpmlintrc
27
BuildRequires:  autoconf >= 2.57
28
BuildRequires:  libtool
29
BuildRequires:  pkgconfig >= 0.20
30
BuildRequires:  pkgconfig(libxml-2.0)
31
32
%description
33
The library provides the PDU handling of the SMPP-3.4 protocol.
34
35
%package -n libsmpp34-%{sover}
36
Requires: osmocom-nightly = 202405072026
37
Summary:        SMPP-3.4 protocol library
38
License:        LGPL-2.1-or-later
39
Group:          System/Libraries
40
41
%description -n libsmpp34-%{sover}
42
This library provides the Protocol Data Unit (PDU) handling of the
43
SMPP-3.4 protocol. SMPP (Short Message Peer-to-Peer) is a protocol
44
providing a data communication interface for the transfer of short
45
message data between External Short Messaging Entities, Routing
46
Entitites and Message Centres.
47
48
%package -n libsmpp34-%{sover}-devel
49
Requires: osmocom-nightly = 202405072026
50
Summary:        Development files for the SMPP-3.4 protocol library
51
License:        GPL-2.0-or-later
52
Group:          Development/Libraries/C and C++
53
Requires:       libsmpp34-%{sover} = %{version}
54
55
%description -n libsmpp34-%{sover}-devel
56
The library provides the PDU handling of the SMPP-3.4 protocol.
57
58
This subpackage contains libraries and header files for developing
59
applications that want to make use of libsmpp34.
60
61
%prep
62
%setup -n libsmpp34 -q
63
64
%build
65
echo "%{version}" >.tarball-version
66
autoreconf -fi
67
%configure --disable-static --includedir="%{_includedir}/%{name}"
68
make %{?_smp_mflags}
69
70
%install
71
%make_install
72
find %{buildroot} -type f -name "*.la" -delete -print
73
74
%check
75
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
76
77
%post   -n libsmpp34-%{sover} -p /sbin/ldconfig
78
%postun -n libsmpp34-%{sover} -p /sbin/ldconfig
79
80
%files -n libsmpp34-%{sover}
81
%{_libdir}/libsmpp34.so.%{sover}*
82
83
%files -n libsmpp34-%{sover}-devel
84
%license COPYING
85
%doc ChangeLog
86
%{_includedir}/%{name}/
87
%{_libdir}/libsmpp34.so
88
%{_libdir}/pkgconfig/*.pc
89
90
%changelog
91