source: projects/specs/branches/6/s/speex/speex-vl.spec @ 1900

Revision 1900, 4.8 KB checked in by Takemikaduchi, 14 years ago (diff)

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