Squashed 'third_party/rawrtc/usrsctp/' content from commit bd1a92db3
Change-Id: If227cd6edd3243ac26044056b7427ae5bca71ef8
git-subtree-dir: third_party/rawrtc/usrsctp
git-subtree-split: bd1a92db338ba1e57453637959a127032bb566ff
diff --git a/rpm/libusrsctp.spec b/rpm/libusrsctp.spec
new file mode 100644
index 0000000..ceefea3
--- /dev/null
+++ b/rpm/libusrsctp.spec
@@ -0,0 +1,79 @@
+Name: libusrsctp
+Version: 1.0.0~td113
+Release: 1
+Summary: Portable SCTP Userland Stack
+License: BSD
+Group: Applications/Internet
+URL: https://github.com/sctplib/usrsctp
+Source: %{name}-%{version}.tar.gz
+
+AutoReqProv: on
+BuildRequires: cmake
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+
+
+%package devel
+Summary: Portable SCTP Userland Stack (Development Files)
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+ This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+ This package contains the shared library for the Portable SCTP Userland Stack.
+
+
+%package examples
+Summary: Portable SCTP Userland Stack (Examples)
+Group: Applications/Internet
+Requires: %{name} = %{version}-%{release}
+
+%description examples
+ This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+ This package contains the examples for the Portable SCTP Userland Stack.
+
+
+%prep
+%setup -q
+
+%build
+%cmake -DCMAKE_INSTALL_PREFIX=/usr .
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+#%clean
+#rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root,-)
+/usr/lib/libusrsctp.so*
+
+%files devel
+/usr/include/usrsctp.h
+/usr/lib//libusrsctp*.a
+/usr/lib/libusrsctp*.so
+
+%files examples
+/usr/lib/libusrsctp/client
+/usr/lib/libusrsctp/datachan_serv
+/usr/lib/libusrsctp/daytime_server
+/usr/lib/libusrsctp/discard_server
+/usr/lib/libusrsctp/echo_server
+/usr/lib/libusrsctp/ekr_client
+/usr/lib/libusrsctp/ekr_loop
+/usr/lib/libusrsctp/ekr_peer
+/usr/lib/libusrsctp/ekr_server
+/usr/lib/libusrsctp/http_client
+/usr/lib/libusrsctp/rtcweb
+/usr/lib/libusrsctp/test_libmgmt
+/usr/lib/libusrsctp/test_timer
+/usr/lib/libusrsctp/tsctp
+/usr/lib/libusrsctp/http_client_upcall
+
+%changelog
+* Fri Dec 02 2016 Thomas Dreibholz <dreibh@simula.no> 1.0.0
+- Initial RPM release