libmpeg2-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Name: libmpeg2
  2. Version: 0.5.1
  3. Release: 5%{?_dist_release}
  4. Summary: MPEG-2 decoder libraries
  5. Group: System Environment/Libraries
  6. License: GPLv2+
  7. URL: http://libmpeg2.sourceforge.net/
  8. Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: SDL-devel
  11. BuildRequires: libXt-devel
  12. BuildRequires: libXv-devel
  13. %description
  14. libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
  15. streams. It is released under the terms of the GPL license.
  16. %package -n mpeg2dec
  17. Summary: MPEG-2 decoder program
  18. Group: Applications/Multimedia
  19. Requires: %{name} = %{version}-%{release}
  20. %description -n mpeg2dec
  21. The %{name}-devel package contains libraries and header files for
  22. developing applications that use %{name}.
  23. %package devel
  24. Summary: Development files for %{name}
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: pkgconfig
  28. Provides: mpeg2dec-devel = %{version}-%{release}
  29. %description devel
  30. The %{name}-devel package contains libraries and header files for
  31. developing applications that use %{name}.
  32. %prep
  33. %setup -q
  34. iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
  35. touch -r AUTHORS AUTHORS.tmp
  36. %__cp -p -f AUTHORS.tmp AUTHORS
  37. %__rm AUTHORS.tmp
  38. %build
  39. %configure --disable-static
  40. # mpeg2dec have rpath
  41. # remove rpath from libtool
  42. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  43. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  44. %__make %{?_smp_mflags}
  45. %install
  46. %__rm -rf $RPM_BUILD_ROOT
  47. %__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%__install -p"
  48. # remove unpackaged files
  49. find $RPM_BUILD_ROOT -name '*.la' -exec %__rm -f {} ';'
  50. %clean
  51. %__rm -rf $RPM_BUILD_ROOT
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  57. %{_libdir}/*.so.*
  58. %files -n mpeg2dec
  59. %defattr(-,root,root,-)
  60. %{_bindir}/corrupt_mpeg2
  61. %{_bindir}/extract_mpeg2
  62. %{_bindir}/mpeg2dec
  63. %{_mandir}/man1/*.1*
  64. %files devel
  65. %defattr(-,root,root,-)
  66. %doc CodingStyle doc/libmpeg2.txt doc/sample*.c
  67. %{_includedir}/mpeg2dec/
  68. %{_libdir}/*.so
  69. %{_libdir}/pkgconfig/libmpeg2.pc
  70. %{_libdir}/pkgconfig/libmpeg2convert.pc
  71. %changelog
  72. * Thu Sep 1 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-5
  73. - do not support vl4
  74. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-4
  75. - change release to sync with self-build-libmpeg2
  76. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-3
  77. - change release to sync with self-build-libmpeg2
  78. * Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-2
  79. - added BuildRequires: XOrg-devel for vl4
  80. * Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-1
  81. - initial build
  82. * Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3
  83. - Fix CFLAGS on x86 producing selinux denials.
  84. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2
  85. - rebuild for buildsys cflags issue
  86. * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1
  87. - Update to 0.5.1
  88. * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1
  89. - Initial package (based on mpeg2dec)