libsndfile-vl.spec 6.1 KB

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