libtheora-vl.spec 4.3 KB

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