twolame-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. Name: twolame
  2. Version: 0.3.13
  3. Release: 1%{?_dist_release}
  4. Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
  5. Group: Applications/Multimedia
  6. License: LGPLv2+
  7. URL: http://www.twolame.org/
  8. Source: http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: libsndfile-devel
  11. %description
  12. TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
  13. which in turn is based heavily on
  14. - the ISO dist10 code
  15. - improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
  16. This package contains the command line frontend.
  17. %package devel
  18. Summary: Development tools for TwoLAME applications
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. Requires: pkgconfig
  22. %description devel
  23. This package contains the header files and documentation
  24. needed to develop applications with TwoLAME.
  25. %prep
  26. %setup -q
  27. # convert manpage to UTF8
  28. pushd doc
  29. iconv -f iso8859-1 -t utf8 %{name}.1 > \
  30. %{name}.1.utf && mv %{name}.1.utf %{name}.1
  31. # fix HTML docs line endings
  32. for file in html/*.html ; do
  33. tr -d '\r' <$file >$file.unix && mv $file.unix $file
  34. done
  35. popd
  36. %build
  37. #autoreconf -f -i
  38. %configure --disable-static
  39. # remove rpath from libtool
  40. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  41. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  42. %{__make} %{?_smp_mflags}
  43. %install
  44. %__rm -rf $RPM_BUILD_ROOT
  45. %{__make} DESTDIR=$RPM_BUILD_ROOT install
  46. # remove unpackaged files
  47. %__rm $RPM_BUILD_ROOT%{_libdir}/*.la
  48. %__rm -rf $RPM_BUILD_ROOT%{_docdir}
  49. %clean
  50. %__rm -rf $RPM_BUILD_ROOT
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %files
  54. %defattr(644,root,root,755)
  55. %doc AUTHORS COPYING ChangeLog README TODO
  56. %attr(755,root,root) %{_bindir}/%{name}
  57. %{_libdir}/lib%{name}.so.*
  58. %{_mandir}/man1/%{name}.1*
  59. %files devel
  60. %defattr(644,root,root,755)
  61. %doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt
  62. %{_libdir}/pkgconfig/%{name}.pc
  63. %{_libdir}/lib%{name}.so
  64. %{_includedir}/%{name}.h
  65. %changelog
  66. * Tue Jul 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.13-1
  67. - updated to 0.3.13
  68. * Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.12-1
  69. - initial build
  70. * Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3
  71. - Remove rpath with the "patch libtool" method instead of autoreconf
  72. * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3.12-2
  73. - rebuild
  74. * Sun Jan 13 2008 Dominik Mierzejewski <rpm@greysector.net> 0.3.12-1
  75. - updated to 0.3.12
  76. - updated source URL
  77. - split off libs to avoid multilib conflicts
  78. - move docs processing to prep to avoid problems with shortcut builds
  79. - update license tag
  80. * Thu May 03 2007 Dominik Mierzejewski <rpm@greysector.net> 0.3.10-1
  81. - updated to 0.3.10
  82. - removed redundant BRs
  83. * Wed Nov 01 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.8-1
  84. - updated to 0.3.8
  85. - rebuild autofiles to get rid of rpath
  86. - disable static library build
  87. - fix manpage encoding
  88. - fix HTML docs line endings
  89. * Sun Mar 12 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.6-1
  90. - updated to 0.3.6
  91. * Tue Jan 24 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.5-1
  92. - updated to 0.3.5
  93. - simplified package layout
  94. - FE/livna compliance
  95. * Sun Aug 21 2005 Dominik Mierzejewski <rpm@greysector.net>
  96. - initial package