[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | %define OCT_SITE_D %{_datadir}/octave/site/m |
---|
| 3 | |
---|
| 4 | Summary: A library to handle various audio file formats. |
---|
| 5 | Summary(ja): さまざまなフォーマットの音声ファイルを扱うライブラリ |
---|
| 6 | Name: libsndfile |
---|
[1870] | 7 | Version: 1.0.21 |
---|
[4446] | 8 | Release: 3%{?_dist_release} |
---|
[521] | 9 | Source: http://www.mega-nerd.com/libsndfile/%{name}-%{version}.tar.gz |
---|
| 10 | License: LGPL |
---|
| 11 | Group: System Environment/Libraries |
---|
| 12 | URL: http://www.mega-nerd.com/libsndfile/ |
---|
| 13 | |
---|
| 14 | # security fix |
---|
| 15 | # Patch100: libsndfile-1.0.16_CVE-2007-4974.patch |
---|
[1870] | 16 | # Patch110: libsndfile-1.0.20_fix-dev-by-zero.patch |
---|
[4446] | 17 | Patch100: libsndfile-1.0.21_CVE-2011-2696.patch |
---|
[521] | 18 | |
---|
| 19 | Requires: alsa-lib |
---|
| 20 | BuildRequires: alsa-lib-devel |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | libsndfile is a C library for reading and writing sound files such as |
---|
| 28 | AIFF, AU and WAV files through one standard interface. It can currently |
---|
| 29 | read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating |
---|
| 30 | point WAV files and a number of compressed formats. |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
| 33 | libsndfile is a C library for reading and writing sound files such as |
---|
| 34 | AIFF, AU and WAV files through one standard interface. It can currently |
---|
| 35 | read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating |
---|
| 36 | point WAV files and a number of compressed formats. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Libraries, includes, etc to develop libsndfile applications |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | Requires: %{name} = %{version}-%{release} |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | Libraries, include files, etc you can use to develop libsndfile applications. |
---|
| 46 | |
---|
| 47 | %description devel -l ja |
---|
| 48 | Libraries, include files, etc you can use to develop libsndfile applications. |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | # compat32 |
---|
| 52 | %package -n compat32-%{name} |
---|
| 53 | Summary: A library to handle various audio file formats. |
---|
| 54 | Summary(ja): さまざまなフォーマットの音声ファイルを扱うライブラリ |
---|
| 55 | Group: System Environment/Libraries |
---|
| 56 | |
---|
| 57 | %description -n compat32-%{name} |
---|
| 58 | libsndfile is a C library for reading and writing sound files such as |
---|
| 59 | AIFF, AU and WAV files through one standard interface. It can currently |
---|
| 60 | read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating |
---|
| 61 | point WAV files and a number of compressed formats. |
---|
| 62 | |
---|
| 63 | %description -n compat32-%{name} -l ja |
---|
| 64 | libsndfile is a C library for reading and writing sound files such as |
---|
| 65 | AIFF, AU and WAV files through one standard interface. It can currently |
---|
| 66 | read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating |
---|
| 67 | point WAV files and a number of compressed formats. |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %package -n compat32-%{name}-devel |
---|
| 71 | Summary: Libraries, includes, etc to develop libsndfile applications |
---|
| 72 | Group: Development/Libraries |
---|
| 73 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 74 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 75 | |
---|
| 76 | %description -n compat32-%{name}-devel |
---|
| 77 | Libraries, include files, etc you can use to develop libsndfile applications. |
---|
| 78 | |
---|
| 79 | %description -n compat32-%{name}-devel -l ja |
---|
| 80 | Libraries, include files, etc you can use to develop libsndfile applications. |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %prep |
---|
| 84 | %setup -q |
---|
| 85 | |
---|
| 86 | # security fix |
---|
| 87 | # %patch100 -p1 -b .CVE-2007-4974 |
---|
[1870] | 88 | # %patch110 -p0 -b .dev-by-zero |
---|
[4446] | 89 | %patch100 -p1 -b .CVE-2011-2696 |
---|
[521] | 90 | |
---|
| 91 | %build |
---|
| 92 | %configure --disable-sqlite --disable-external-libs --disable-octave |
---|
| 93 | %__make %{?_smp_mflags} |
---|
| 94 | |
---|
| 95 | %install |
---|
| 96 | rm -rf $RPM_BUILD_ROOT |
---|
| 97 | # htmldir=$RPM_BUILD_ROOT\$\(htmldocdir\) libsndfile1-dev |
---|
| 98 | %makeinstall \ |
---|
| 99 | htmldir=$RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev |
---|
| 100 | |
---|
| 101 | rm -rf html |
---|
| 102 | cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev html |
---|
| 103 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev |
---|
| 104 | |
---|
| 105 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la} |
---|
| 106 | |
---|
| 107 | %clean |
---|
| 108 | rm -rf $RPM_BUILD_ROOT |
---|
| 109 | |
---|
| 110 | %post -p /sbin/ldconfig |
---|
| 111 | |
---|
| 112 | %postun -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 115 | |
---|
| 116 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | %files |
---|
| 120 | %defattr(-,root,root) |
---|
| 121 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README html |
---|
| 122 | %{_libdir}/libsndfile.so.* |
---|
| 123 | %{_bindir}/* |
---|
| 124 | %{_mandir}/man1/* |
---|
| 125 | # %{_datadir}/octave/site/m/* |
---|
| 126 | |
---|
| 127 | %files devel |
---|
| 128 | %defattr(-,root,root) |
---|
| 129 | %{_libdir}/libsndfile.so |
---|
| 130 | %{_includedir}/* |
---|
| 131 | %{_libdir}/pkgconfig/sndfile.pc |
---|
| 132 | |
---|
| 133 | # compat32 |
---|
| 134 | %if %{build_compat32} |
---|
| 135 | %files -n compat32-%{name} |
---|
| 136 | %defattr(-,root,root) |
---|
| 137 | %{_libdir}/libsndfile.so.* |
---|
| 138 | |
---|
| 139 | %files -n compat32-%{name}-devel |
---|
| 140 | %defattr(-,root,root) |
---|
| 141 | %{_libdir}/libsndfile.so |
---|
| 142 | %{_libdir}/pkgconfig/sndfile.pc |
---|
| 143 | %endif |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | %changelog |
---|
[4446] | 147 | * Sun Jul 31 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.0.21-3 |
---|
| 148 | - change spec filename (-vl) |
---|
| 149 | |
---|
| 150 | * Sat Jul 30 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.0.21-2 |
---|
| 151 | - add patch100 for fix CVE-2011-2696 (IOF) from debian, thanks. |
---|
| 152 | |
---|
[1870] | 153 | * Wed Sep 22 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-1 |
---|
| 154 | - new upstream release |
---|
| 155 | - built with rpm-4.8.1-1 |
---|
| 156 | |
---|
[521] | 157 | * Mon Jun 1 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.20-1vl5 |
---|
| 158 | - new upstream release with security fix (CVE-2009-1788, 1791) |
---|
| 159 | - add patch110 to fix devide by 0 issues |
---|
| 160 | - drop patch100 (is included in new release) |
---|
| 161 | - change configure option to fix new release |
---|
| 162 | - revome "TODO" file from file list |
---|
| 163 | |
---|
| 164 | * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.17-3 |
---|
| 165 | - added compat32 package for x86_64 arch support |
---|
| 166 | |
---|
| 167 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.17-2 |
---|
| 168 | - spec in utf-8 |
---|
| 169 | - remove static lib |
---|
| 170 | |
---|
| 171 | * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.17-1vl5 |
---|
| 172 | - applied new versioning policy |
---|
| 173 | - removed lib*.la file from devel package |
---|
| 174 | |
---|
| 175 | * Mon Oct 22 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.17-0vl2 |
---|
| 176 | - rebuild for VineSeed |
---|
| 177 | |
---|
| 178 | * Mon Oct 22 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.17-0vl1 |
---|
| 179 | - new upstream release |
---|
| 180 | |
---|
| 181 | * Mon Oct 22 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.16-0vl3.1 |
---|
| 182 | - add patch100 for fix CVE-2007-4974 (PCM Data Handling Buffer Overflow) |
---|
| 183 | - built for VinePlus 4.x |
---|
| 184 | |
---|
| 185 | * Fri Nov 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.16-0vl3 |
---|
| 186 | - add BuildRequires: alsa-lib-devel |
---|
| 187 | - add '--disable-sqlite --disable-flac' options to %%configure |
---|
| 188 | |
---|
| 189 | * Mon May 01 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.16-0vl2 |
---|
| 190 | - rebuilt for VineSeed Plus |
---|
| 191 | |
---|
| 192 | * Mon May 01 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.16-0vl1 |
---|
| 193 | - new upstream release |
---|
| 194 | - fixed Japanese summary |
---|
| 195 | |
---|
| 196 | * Wed Feb 08 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 1.0.13-1vl1 |
---|
| 197 | - initial build for VinePlus/3.0 |
---|
| 198 | - modified spec file |
---|
| 199 | |
---|
| 200 | * Sun May 15 2005 Erik de Castro Lopo <erikd@mega-nerd.com> |
---|
| 201 | - Add html files to the files section. |
---|
| 202 | |
---|
| 203 | * Tue Sep 16 2003 Erik de Castro Lopo <erikd@mega-nerd.com> |
---|
| 204 | - Apply corrections from Andrew Schultz. |
---|
| 205 | |
---|
| 206 | * Mon Oct 21 2002 Erik de Castro Lopo <erikd@mega-nerd.com> |
---|
| 207 | - Force installation of sndfile.pc file. |
---|
| 208 | |
---|
| 209 | * Thu Jul 6 2000 Josh Green <jgreen@users.sourceforge.net> |
---|
| 210 | - Created libsndfile.spec.in |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | # end of file |
---|