Blame SPECS/libsrtp.spec

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