Blame SPECS/libsrtp.spec

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