source: projects/specs/trunk/s/soundtouch/soundtouch-vl.spec @ 6812

Revision 6812, 5.6 KB checked in by kudoh, 12 years ago (diff)
Line 
1Name:           soundtouch
2Version:        1.7.0
3Release:        1%{?_dist_release}
4Summary:        Audio Processing library for changing Tempo, Pitch and Playback Rates
5Summary(ja):    テンポ/ピッチ/再生レートを変更するためのオーディオプロセッシングライブラリー
6License:        LGPLv2+
7Group:          System Environment/Libraries
8URL:            http://www.surina.net/soundtouch/
9Source0:        http://www.surina.net/soundtouch/%{name}-%{version}.tar.gz
10#Patch0:         soundtouch-1.4.0-x86_64-asm-broken.patch
11
12BuildRoot:      %{_tmppath}/%{name}-%{version}-root
13
14BuildRequires:  gcc-c++
15
16%description
17SoundTouch is a LGPL-licensed open-source audio processing library for
18changing the Tempo, Pitch and Playback Rates of audio streams or
19files. The SoundTouch library is suited for application developers
20writing sound processing tools that require tempo/pitch control
21functionality, or just for playing around with the sound effects.
22
23The SoundTouch library source kit includes an example utility
24SoundStretch which allows processing .wav audio files from a
25command-line interface.
26
27
28%package devel
29Summary: Libraries, headers and etc to develop soundtouch applications
30Summary(ja): soundtouch アプリケーションを開発するためのライブラリー/ヘッダー等
31Group:    Development/Libraries
32Requires: %{name} = %{version}-%{release}
33Requires: pkgconfig
34
35%description devel
36Libraries, include files, etc you can use to develop soundtouch applications.
37
38
39%prep
40%setup -q -n %{name}
41#%patch0 -p1
42
43sed -i 's|-O3||' source/SoundStretch/Makefile.*
44sed -i 's|\r||g' README.html source/SoundTouch/RateTransposer.cpp
45
46
47%build
48./bootstrap
49%configure --disable-dependency-tracking --disable-static --enable-shared
50
51# Don't use rpath!   
52sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
53sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
54
55make %{?_smp_mflags}
56
57
58%install
59rm -rf $RPM_BUILD_ROOT
60make install DESTDIR=$RPM_BUILD_ROOT
61rm $RPM_BUILD_ROOT%{_libdir}/*.la
62
63# remove redundant installed docs
64rm -rf $RPM_BUILD_ROOT%{_prefix}/doc/%{name}
65
66# pkgconfig compat links for compat with older (API compatible) releases
67# dunno why upstream keeps changing the pkgconfig name
68#ln -s soundtouch-1.4.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libSoundTouch.pc
69#ln -s soundtouch-1.4.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/soundtouch-1.0.pc
70
71# soundtouch installs an autoheader generated header file which could very
72# well conflict with other autoheader generated header files, so we override
73# this with our own version which contains only the bare minimum:
74
75echo '#define FLOAT_SAMPLES 1' \
76  > $RPM_BUILD_ROOT%{_includedir}/soundtouch/soundtouch_config.h
77
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82
83%post -p /sbin/ldconfig
84
85%postun -p /sbin/ldconfig
86
87
88%files
89%defattr(-,root,root,-)
90%doc COPYING.TXT README.html
91%{_bindir}/soundstretch
92%{_libdir}/lib*.so.*
93
94%files devel
95%defattr(-,root,root,-)
96%{_libdir}/lib*.so
97%{_libdir}/pkgconfig/*.pc
98%{_includedir}/%{name}
99%{_datadir}/aclocal/%{name}.m4
100
101
102%changelog
103* Fri Sep 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-1
104- new upstream release
105- deleted Patch0
106
107* Fri Jun 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.0-1
108- initial build for VineSeed
109
110* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
111- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
112
113* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
114- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
115
116* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
117- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
118
119* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
120- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
121
122* Sat Feb 14 2009 Hans de Goede <hdegoede@redhat.com> 1.4.0-1
123- New upstream release 1.4.0
124
125* Sat Dec 20 2008 Hans de Goede <hdegoede@redhat.com> 1.3.1-11
126- Fix compilation with libtool 2.x
127
128* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-10
129- Autorebuild for GCC 4.3
130
131* Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-9
132- Fix compilation with gcc 4.3
133
134* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-8
135- Rebuild for buildId
136- Update license tag for new license guidelines compliance
137
138* Mon Feb 19 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-7
139- Fix building with automake-1.10
140
141* Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-6
142- FE6 Rebuild
143
144* Wed Aug  2 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-5
145- Patch makefiles so that our RPM_OPT_FLAGS get used instead of the custom
146  upstream CFLAGS.
147
148* Mon Jul 31 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-4
149- Add Requires: pkgconfig to -devel subpackage
150- Replace installed autoheader generated header file with our own version
151  which contains only the nescesarry soundtouch specific defines, thus avoiding
152  possible conflicts with other autoheader generated headers.
153
154* Mon Jul 31 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.3.1-3
155- Add BR libtool
156
157* Mon Jul 31 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-2
158- Add BR: automake, because upstream uses symlinks to instead of copies of some
159  needed automake files.
160
161* Sat Jul 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-1
162- New upstream version 1.3.1
163- Minor specfile cleanups for livna submission.
164- Give the .so a proper version instead of 0.0.0
165- Don't use rpath in soundstretch binary
166
167* Thu Aug 26 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.2.1-1
168- initial build.
Note: See TracBrowser for help on using the repository browser.