libmpeg2-vl.spec 3.3 KB

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