Blame SPECS/libsrtp.spec

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