twolame-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. Name: twolame
  2. Version: 0.3.12
  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. * Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.12-1
  67. - initial build
  68. * Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3
  69. - Remove rpath with the "patch libtool" method instead of autoreconf
  70. * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3.12-2
  71. - rebuild
  72. * Sun Jan 13 2008 Dominik Mierzejewski <rpm@greysector.net> 0.3.12-1
  73. - updated to 0.3.12
  74. - updated source URL
  75. - split off libs to avoid multilib conflicts
  76. - move docs processing to prep to avoid problems with shortcut builds
  77. - update license tag
  78. * Thu May 03 2007 Dominik Mierzejewski <rpm@greysector.net> 0.3.10-1
  79. - updated to 0.3.10
  80. - removed redundant BRs
  81. * Wed Nov 01 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.8-1
  82. - updated to 0.3.8
  83. - rebuild autofiles to get rid of rpath
  84. - disable static library build
  85. - fix manpage encoding
  86. - fix HTML docs line endings
  87. * Sun Mar 12 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.6-1
  88. - updated to 0.3.6
  89. * Tue Jan 24 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.5-1
  90. - updated to 0.3.5
  91. - simplified package layout
  92. - FE/livna compliance
  93. * Sun Aug 21 2005 Dominik Mierzejewski <rpm@greysector.net>
  94. - initial package