libtheora-vl.spec 4.1 KB

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