libtheora-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Theora video compression codec
  3. Summary(ja): Theora 映像圧縮コーデック
  4. Name: libtheora
  5. Version: 1.1.1
  6. Release: 3%{?_dist_release}
  7. License: BSD
  8. URL: http://www.theora.org/
  9. Source: http://www.theora.org/files/libtheora-%{version}.tar.bz2
  10. Group: System Environment/Libraries
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libogg-devel >= 1.1
  13. BuildRequires: libvorbis-devel >= 1.0.1
  14. BuildRequires: SDL-devel
  15. # Seems like a devel package forgot to include this one (ogg? vorbis? SDL?)
  16. #BuildRequires: alsa-lib-devel
  17. %description
  18. Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
  19. general-purpose compressed video format.
  20. %package devel
  21. Summary: Headers for developing programs that will use libtheora
  22. Summary(ja): libtheora の開発用ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: libogg-devel >= 1.1
  26. %description devel
  27. This package contains the headers that programmers will need to develop
  28. applications which will use %{name}.
  29. # compat32
  30. %package -n compat32-%{name}
  31. Summary: Theora video compression codec
  32. Summary(ja): Theora 映像圧縮コーデック
  33. Group: System Environment/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description -n compat32-%{name}
  36. Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
  37. general-purpose compressed video format.
  38. %package -n compat32-%{name}-devel
  39. Summary: Headers for developing programs that will use libtheora
  40. Summary(ja): libtheora の開発用ファイル
  41. Group: Development/Libraries
  42. Requires: compat32-%{name} = %{version}-%{release}
  43. Requires: %{name}-devel = %{version}-%{release}
  44. Requires: compat32-libogg-devel >= 1.1
  45. %description -n compat32-%{name}-devel
  46. This package contains the headers that programmers will need to develop
  47. applications which will use %{name}.
  48. %prep
  49. %setup -q -n %{name}-%{version}
  50. %build
  51. %configure --disable-static
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf %{buildroot} installed-docs
  55. %makeinstall
  56. mv %{buildroot}%{_datadir}/doc/libtheora* installed-docs
  57. # Fix the location of the include file
  58. #mkdir -p %{buildroot}%{_includedir}/theora
  59. #mv %{buildroot}%{_includedir}/theora.h %{buildroot}%{_includedir}/theora/
  60. # remove unpackage files
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/libtheora*.la
  62. %clean
  63. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %post -n compat32-%{name} -p /sbin/ldconfig
  67. %postun -n compat32-%{name} -p /sbin/ldconfig
  68. %files
  69. %defattr(-, root, root, 0755)
  70. %doc README COPYING
  71. %{_libdir}/libtheora*.so.*
  72. %files devel
  73. %defattr(-, root, root, 0755)
  74. %doc installed-docs/*
  75. %{_includedir}/theora
  76. #{_libdir}/libtheora*.a
  77. %{_libdir}/libtheora*.so
  78. %{_libdir}/pkgconfig/*.pc
  79. # compat32
  80. %if %{build_compat32}
  81. %files -n compat32-%{name}
  82. %defattr(-, root, root)
  83. %{_libdir}/*.so.*
  84. %files -n compat32-%{name}-devel
  85. %defattr(-, root, root)
  86. %{_libdir}/*.so
  87. %endif
  88. %changelog
  89. * Wed Jan 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-3
  90. - create compat32 sub packages
  91. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.1.1-2
  92. - build with rpm-4.8.1-1 for pkg-config file
  93. * Sun Nov 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-1
  94. - new upstream relase
  95. * Thu Nov 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1
  96. - new upstream release
  97. * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.beta2.1vl5
  98. - new upstream relase
  99. * Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha7vl1
  100. - new upstream relase
  101. * Sat Sep 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha5vl1
  102. - new upstream relase
  103. * Thu Mar 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha4vl1
  104. - new upstream relase
  105. - added Japanese summary
  106. * Sun Sep 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha3vl1
  107. - Build for Vine
  108. * Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.alpha3.1
  109. - Initial RPM release, only devel as there is only a static lib for now.