libmpeg2-vl.spec 3.6 KB

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