srtp/srtp.spec

88 lines
3.1 KiB
RPMSpec
Raw Normal View History

Name: srtp
Version: 1.4.4_20140620git
Release: 1mamba
Summary: An implementation of the Secure Real-time Transport Protocol (SRTP)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://srtp.sourceforge.net/srtp.html
#Source: http://downloads.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.gz
Source: https://github.com/cisco/libsrtp.git/master/libsrtp-%{version}.tar.bz2
Patch0: srtp-1.4.4_20140620git-soname.patch
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel. These mechanisms are documented in the Internet Drafts in the doc/ subdirectory. The SRTP API is documented in include/srtp.h, and the library is in libsrtp.a (after compilation).
%package -n lib%{name}
Group: System/Libraries
Summary: An implementation of the Secure Real-time Transport Protocol (SRTP)
%description -n lib%{name}
This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel. These mechanisms are documented in the Internet Drafts in the doc/ subdirectory. The SRTP API is documented in include/srtp.h, and the library is in libsrtp.a (after compilation).
This package contains shared library for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: An implementation of the Secure Real-time Transport Protocol (SRTP)
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n libsrtp-%{version}
%patch0 -p1
%build
%configure
%make all libsrtp.so
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
ln -s libsrtp.so.0.0.0 %{buildroot}%{_libdir}/libsrtp.so.0
ln -s libsrtp.so.0.0.0 %{buildroot}%{_libdir}/libsrtp.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libsrtp.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/srtp
%{_includedir}/srtp/*.h
%{_libdir}/libsrtp.a
%{_libdir}/libsrtp.so
%doc CHANGES README TODO
%changelog
* Fri Jun 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4_20140620git-1mamba
- update to 1.4.4_20140620git
* Fri Jun 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4_20140620cvs-1mamba
- update to 1.4.4_20140620cvs
* Fri Jun 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4-1mamba
- update to 1.4.4
* Fri Jun 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1mamba
- package created using the webbuild interface