2010-12-06 16:27:07 +00:00
|
|
|
%global shortname srtp
|
|
|
|
|
2014-11-14 15:27:08 +00:00
|
|
|
Name: libsrtp
|
2016-02-11 20:18:02 +00:00
|
|
|
Version: 1.5.4
|
2016-02-12 14:39:35 +00:00
|
|
|
Release: 2%{?dist}
|
2010-12-06 16:27:07 +00:00
|
|
|
Summary: An implementation of the Secure Real-time Transport Protocol (SRTP)
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
2014-11-14 15:27:08 +00:00
|
|
|
URL: https://github.com/cisco/libsrtp
|
|
|
|
Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz
|
2010-12-06 16:27:07 +00:00
|
|
|
# Pkgconfig goodness
|
|
|
|
Source1: libsrtp.pc
|
2012-02-21 18:41:23 +00:00
|
|
|
# Universal config.h
|
|
|
|
Source2: config.h
|
2016-02-12 14:39:35 +00:00
|
|
|
# Fix shared lib so ldconfig doesn't complain
|
|
|
|
Patch0: libsrtp-1.5.4-shared-fix.patch
|
2014-11-14 15:27:08 +00:00
|
|
|
Patch1: libsrtp-srtp_aes_encrypt.patch
|
|
|
|
Patch2: libsrtp-sha1-name-fix.patch
|
2016-02-11 20:18:02 +00:00
|
|
|
Patch3: libsrtp-fix-name-collision-on-MIPS.patch
|
2010-12-06 16:27:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides an implementation of the Secure Real-time
|
|
|
|
Transport Protocol (SRTP), the Universal Security Transform (UST), and
|
2014-11-14 15:27:08 +00:00
|
|
|
a supporting cryptographic kernel.
|
2010-12-06 16:27:07 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
2016-02-11 20:18:02 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-12-06 16:27:07 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2014-11-14 15:27:08 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2016-02-12 14:39:35 +00:00
|
|
|
%patch0 -p1 -b .sharedfix
|
2014-11-14 15:27:08 +00:00
|
|
|
%patch1 -p1 -b .srtp_aes_encrypt
|
|
|
|
%patch2 -p1 -b .sha1-name-fix
|
2016-02-11 20:18:02 +00:00
|
|
|
%patch3 -p1 -b .mips-name-fix
|
2010-12-06 16:27:07 +00:00
|
|
|
|
2012-02-21 18:41:23 +00:00
|
|
|
%if 0%{?rhel} > 0
|
|
|
|
%ifarch ppc64
|
|
|
|
sed -i 's/-z noexecstack//' Makefile.in
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2010-12-06 16:27:07 +00:00
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -fPIC"
|
2014-11-14 15:27:08 +00:00
|
|
|
%configure
|
2016-02-11 20:18:02 +00:00
|
|
|
make %{?_smp_mflags} shared_library
|
2010-12-06 16:27:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
# Install the pkg-config file
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
# Fill in the variables
|
|
|
|
sed -i "s|@PREFIX@|%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
|
|
|
|
sed -i "s|@LIBDIR@|%{_libdir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
|
|
|
|
sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
|
|
|
|
|
2012-02-21 18:41:23 +00:00
|
|
|
# Handle multilib issues with config.h
|
|
|
|
mv %{buildroot}%{_includedir}/%{shortname}/config.h %{buildroot}%{_includedir}/%{shortname}/config-%{__isa_bits}.h
|
|
|
|
cp -a %{SOURCE2} %{buildroot}%{_includedir}/%{shortname}/config.h
|
|
|
|
|
2010-12-06 16:27:07 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2016-02-11 20:18:02 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README TODO VERSION doc/*.txt doc/*.pdf
|
2010-12-06 16:27:07 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{shortname}/
|
|
|
|
%{_libdir}/pkgconfig/libsrtp.pc
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|
2016-02-12 14:39:35 +00:00
|
|
|
* Fri Feb 12 2016 Tom Callaway <spot@fedoraproject.org> - 1.5.4-2
|
|
|
|
- fix shared lib generation to silence ldconfig
|
|
|
|
|
2016-02-11 20:18:02 +00:00
|
|
|
* Thu Feb 11 2016 Tom Callaway <spot@fedoraproject.org> - 1.5.4-1
|
|
|
|
- update to 1.5.4
|
|
|
|
- fix MIPS name collision (bz1305950 ) Thanks to Michal Toman
|
|
|
|
|
2016-02-04 03:57:53 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 17:21:26 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-11-14 16:35:36 +00:00
|
|
|
* Fri Nov 14 2014 Tom Callaway <spot@fedoraproject.org> - 1.5.0-2
|
|
|
|
- fix library linking typo
|
|
|
|
|
2014-11-14 15:27:08 +00:00
|
|
|
* Fri Nov 14 2014 Tom Callaway <spot@fedoraproject.org>
|
|
|
|
- api changes between 1.4.4 and 1.5.0, bump sover to 1.0.0
|
|
|
|
- fix linking issue to make proper libsrtp.so.1
|
|
|
|
|
|
|
|
* Fri Oct 31 2014 Leif Madsen <leif@leifmadsen.com> - 1.5.0-1
|
|
|
|
- Update for 1.5.0 release.
|
|
|
|
|
2014-08-17 06:08:29 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-13.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 05:33:39 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-12.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-16 04:48:24 +00:00
|
|
|
* Thu May 15 2014 Dennis Gilmore <dennis@ausil.us> - 1.4.4-11.20101004cvs
|
|
|
|
- update the config.h header aarch64 is a 64 bit arch though there is no multilib
|
|
|
|
|
2014-02-10 19:56:02 +00:00
|
|
|
* Mon Feb 10 2014 Tom Callaway <spot@fedoraproject.org> - 1.4.4-10.20101004cvs
|
|
|
|
- rename internal functions to avoid conflicts (bz 956340)
|
|
|
|
|
2013-12-30 16:53:27 +00:00
|
|
|
* Mon Dec 30 2013 Tom Callaway <spot@fedoraproject.org> - 1.4.4-9.20101004cvs
|
|
|
|
- apply fix for CVE-2013-2139 from https://github.com/cisco/libsrtp/pull/27
|
|
|
|
|
2013-08-03 07:06:15 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-8.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 05:17:16 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-7.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-25 11:37:15 +00:00
|
|
|
* Tue Sep 25 2012 Karsten Hopp <karsten@redhat.com> 1.4.4-6.20101004cvs
|
|
|
|
- use __PPC64__, not __ppc64__ which is undefined on PPC64 arch
|
|
|
|
|
2012-07-19 21:16:31 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-5.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-21 18:41:23 +00:00
|
|
|
* Tue Feb 21 2012 Tom Callaway <spot@fedoraproject.org> - 1.4.4-4.20101004cvs
|
|
|
|
- handle config.h multilib (bz787537)
|
|
|
|
|
2012-01-13 08:28:30 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-08 11:49:37 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-2.20101004cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2012-02-21 18:41:23 +00:00
|
|
|
* Tue Jan 25 2011 Jeffrey C. Ollie <jeff@ocjtech.us>
|
|
|
|
- Don't use '-z noexecstack' option for linker on PPC64 (EL6)
|
|
|
|
|
2010-12-06 16:27:07 +00:00
|
|
|
* Mon Oct 4 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4.4-1.20101004cvs
|
|
|
|
- initial package
|