summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunil <hyunil46.park@samsung.com>2020-04-09 14:54:46 +0900
committerHyunil <hyunil46.park@samsung.com>2020-04-09 15:00:33 +0900
commit0dab280808ee678cf54364f9aabe3b9b70504540 (patch)
treedd2552a48cb910565cda79b823c356cccdc5717d
parent14bb6c8aaf0d59ecc3588e547cc6ed66335943be (diff)
downloadlibsrtp-0dab280808ee678cf54364f9aabe3b9b70504540.tar.gz
libsrtp-0dab280808ee678cf54364f9aabe3b9b70504540.tar.bz2
libsrtp-0dab280808ee678cf54364f9aabe3b9b70504540.zip
Apply tizen patchessubmit/tizen/20200410.030609
- Install crypto_types.h to devel package for gstwebrtc-demo app Change-Id: Ie0e36aab7117f64f7d00081b489e7d2b61e93fae Signed-off-by: Hyunil <hyunil46.park@samsung.com>
-rw-r--r--CMakeLists.txt20
-rw-r--r--packaging/libsrtp.manifest5
-rw-r--r--packaging/libsrtp.spec53
3 files changed, 78 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ce9f56..6a3505a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -188,6 +188,7 @@ install(TARGETS srtp2 DESTINATION lib)
install(FILES include/srtp.h crypto/include/auth.h
crypto/include/cipher.h
crypto/include/cipher_types.h
+ crypto/include/crypto_types.h
DESTINATION include/srtp2)
if(TEST_APPS)
@@ -204,3 +205,22 @@ endif()
target_link_libraries(srtp_driver srtp2)
add_test(srtp_driver srtp_driver -v)
endif()
+
+# PC
+set(fw_name "libsrtp2")
+set(prefix /usr)
+set(exec_prefix /usr)
+set(libdir ${LIB_INSTALL_DIR})
+set(includedir /usr/include)
+set(PC_NAME ${fw_name})
+set(VERSION ${FULLVER})
+set(PC_LDFLAGS -l${fw_name})
+set(PC_CFLAGS -I${includedir})
+
+configure_file(
+ libsrtp2.pc.in
+ ${CMAKE_CURRENT_SOURCE_DIR}/libsrtp2.pc
+ @ONLY
+)
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libsrtp2.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+
diff --git a/packaging/libsrtp.manifest b/packaging/libsrtp.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/libsrtp.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libsrtp.spec b/packaging/libsrtp.spec
new file mode 100644
index 0000000..5c84a90
--- /dev/null
+++ b/packaging/libsrtp.spec
@@ -0,0 +1,53 @@
+Name: libsrtp
+Summary: This package provides an implementation of the Secure Real-time Transport Protocol (SRTP)
+Version: 2.3.0
+Release: 1
+Group: Multimedia/Libraries
+License: BSD-3-Clause
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires: cmake
+BuildRequires: pkgconfig(glib-2.0)
+
+%description
+This package provides an implementation of the Secure Real-time Transport Protocol
+
+%package devel
+Summary: libsrtp headers and libraries for development.
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+libsrtp headers and libraries for development.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%cmake . -DFULLVER=%{version}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_bindir}
+
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%{_libdir}/*.so
+%exclude %{_libdir}/debug
+
+%files devel
+%manifest %{name}.manifest
+%{_includedir}/srtp2/*
+%{_libdir}/pkgconfig/*.pc
+