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