[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: A voice compression format/codec |
---|
| 4 | Summary(ja): 音声圧縮フォーマット/コーデック |
---|
| 5 | Name: speex |
---|
[11512] | 6 | Version: 1.2.0 |
---|
[12380] | 7 | Release: 2%{?_dist_release} |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[521] | 12 | License: BSD |
---|
| 13 | URL: http://www.speex.org/ |
---|
[11512] | 14 | Source0: http://www.speex.org/download/%{name}-%{version}.tar.gz |
---|
[521] | 15 | |
---|
| 16 | # Security fix |
---|
| 17 | Patch100: speex-1.2-CVE-2008-1686.diff |
---|
| 18 | |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | BuildRequires: libogg-devel |
---|
| 21 | |
---|
[11512] | 22 | |
---|
[521] | 23 | %description |
---|
| 24 | Speex is a patent-free compression format designed especially for |
---|
| 25 | speech. It is specialized for voice communications at low bit-rates in |
---|
| 26 | the 2-45 kbps range. Possible applications include Voice over IP |
---|
| 27 | (VoIP), Internet audio streaming, audio books, and archiving of speech |
---|
| 28 | data (e.g. voice mail). |
---|
| 29 | |
---|
| 30 | %package devel |
---|
| 31 | Summary: Development package for %{name} |
---|
| 32 | Summary(ja): %{name} 用開発ファイル |
---|
| 33 | Group: Development/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | Speex is a patent-free compression format designed especially for |
---|
| 38 | speech. This package contains development files for %{name} |
---|
| 39 | |
---|
| 40 | # compat32 |
---|
| 41 | %package -n compat32-%{name} |
---|
| 42 | Summary: A voice compression format/codec |
---|
| 43 | Summary(ja): 音声圧縮フォーマット/コーデック |
---|
| 44 | Group: System Environment/Libraries |
---|
| 45 | |
---|
| 46 | %description -n compat32-%{name} |
---|
| 47 | Speex is a patent-free compression format designed especially for |
---|
| 48 | speech. It is specialized for voice communications at low bit-rates in |
---|
| 49 | the 2-45 kbps range. Possible applications include Voice over IP |
---|
| 50 | (VoIP), Internet audio streaming, audio books, and archiving of speech |
---|
| 51 | data (e.g. voice mail). |
---|
| 52 | |
---|
| 53 | %package -n compat32-%{name}-devel |
---|
| 54 | Summary: Development package for %{name} |
---|
| 55 | Summary(ja): %{name} 用開発ファイル |
---|
| 56 | Group: Development/Libraries |
---|
| 57 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 58 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 59 | |
---|
| 60 | %description -n compat32-%{name}-devel |
---|
| 61 | Speex is a patent-free compression format designed especially for |
---|
| 62 | speech. This package contains development files for %{name} |
---|
| 63 | |
---|
| 64 | %prep |
---|
[11512] | 65 | %setup -q |
---|
[521] | 66 | %patch100 -p1 -b .CVE-2008-1686 |
---|
| 67 | chmod a-x README |
---|
| 68 | |
---|
| 69 | %build |
---|
| 70 | %configure --enable-static --with-ogg-libraries=%{_libdir} |
---|
| 71 | # Remove rpath from speexenc and speexdec |
---|
| 72 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 73 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 74 | make %{?_smp_mflags} |
---|
| 75 | |
---|
| 76 | %install |
---|
| 77 | rm -rf $RPM_BUILD_ROOT |
---|
| 78 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 79 | rm -f $RPM_BUILD_ROOT%{_docdir}/speex/manual.pdf |
---|
| 80 | |
---|
| 81 | %clean |
---|
| 82 | rm -rf $RPM_BUILD_ROOT |
---|
| 83 | |
---|
| 84 | %post -p /sbin/ldconfig |
---|
| 85 | %postun -p /sbin/ldconfig |
---|
| 86 | |
---|
| 87 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 88 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %files |
---|
| 91 | %defattr(-,root,root,-) |
---|
[12380] | 92 | %license COPYING |
---|
| 93 | %doc AUTHORS TODO ChangeLog README NEWS doc/manual.pdf |
---|
[521] | 94 | %{_bindir}/speexenc |
---|
| 95 | %{_bindir}/speexdec |
---|
| 96 | %{_mandir}/man1/speexenc.1* |
---|
| 97 | %{_mandir}/man1/speexdec.1* |
---|
| 98 | %{_libdir}/lib*.so.* |
---|
| 99 | |
---|
| 100 | %files devel |
---|
| 101 | %defattr(-,root,root,-) |
---|
| 102 | %exclude %{_libdir}/lib*.a |
---|
| 103 | %exclude %{_libdir}/lib*.la |
---|
| 104 | %{_includedir}/* |
---|
| 105 | %{_libdir}/lib*.so |
---|
| 106 | %{_libdir}/pkgconfig/*.pc |
---|
| 107 | %{_datadir}/aclocal/*.m4 |
---|
| 108 | |
---|
| 109 | # compat32 |
---|
| 110 | %if %{build_compat32} |
---|
| 111 | %files -n compat32-%{name} |
---|
| 112 | %defattr(-,root,root,-) |
---|
| 113 | %{_libdir}/lib*.so.* |
---|
| 114 | |
---|
| 115 | %files -n compat32-%{name}-devel |
---|
| 116 | %defattr(-,root,root,-) |
---|
| 117 | %exclude %{_libdir}/lib*.a |
---|
| 118 | %exclude %{_libdir}/lib*.la |
---|
| 119 | %{_libdir}/lib*.so |
---|
| 120 | %endif |
---|
| 121 | |
---|
| 122 | %changelog |
---|
[12380] | 123 | * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-2 |
---|
| 124 | - rebuilt with current environment. |
---|
| 125 | |
---|
| 126 | * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1 |
---|
[11512] | 127 | - new upstream release. |
---|
| 128 | |
---|
[8758] | 129 | * Sat Jul 05 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-0.rc1.4 |
---|
| 130 | - rebuild with VineSeed environment |
---|
| 131 | |
---|
[1900] | 132 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-0.rc1.3 |
---|
| 133 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 134 | |
---|
[521] | 135 | * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.0-0.rc1.2 |
---|
| 136 | - added compat32 package for x86_64 arch support |
---|
| 137 | - removed lib*.a from devel package |
---|
| 138 | |
---|
| 139 | * Mon Sep 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.rc1.1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
| 142 | * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.beta3.1 |
---|
| 143 | - new upstream release |
---|
| 144 | - added Patch100 for security fix |
---|
| 145 | * Tue Apr 15 2008 Tomas Hoger <thoger@redhat.com> - 1.2-0.7.beta3 |
---|
| 146 | - Security update: Add mode checks to speex_packet_to_header() to protect |
---|
| 147 | applications using speex library and not having proper checks |
---|
| 148 | (CVE-2008-1686, #441239, https://trac.xiph.org/changeset/14701) |
---|
| 149 | |
---|
| 150 | * Sun Jun 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
| 153 | * Mon Mar 1 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-2vl1 |
---|
| 154 | - initial build for Vine Linux |
---|
| 155 | |
---|
| 156 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 157 | - rebuilt |
---|
| 158 | |
---|
| 159 | * Fri Dec 12 2003 Bill Nottingham <notting@redhat.com> 1.0.3-1 |
---|
| 160 | - build 1.0.3, adapt specfile from linva.org |
---|
| 161 | |
---|
| 162 | * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.0.3-0.fdr.1 |
---|
| 163 | - Updated to 1.0.3 |
---|
| 164 | |
---|
| 165 | * Tue Sep 30 2003 Dams <anvil[AT]livna.org> 0:1.0.2-0.fdr.1 |
---|
| 166 | - Updated to 1.0.2 |
---|
| 167 | |
---|
| 168 | * Mon Sep 15 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.3 |
---|
| 169 | - README doc file is no more +x |
---|
| 170 | |
---|
| 171 | * Tue Sep 9 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.2 |
---|
| 172 | - Added missing scriplets (ldconfig) |
---|
| 173 | |
---|
| 174 | * Sat Aug 16 2003 Dams <anvil[AT]livna.org> |
---|
| 175 | - Initial build. |
---|