source: projects/specs/trunk/s/speex/speex-vl.spec @ 11512

Revision 11512, 5.0 KB checked in by tomop, 6 years ago (diff)

speex-1.2.0-1

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