gavl-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. %bcond_with system_libgdither
  2. Name: gavl
  3. Version: 1.4.0
  4. Release: 9%{?_dist_release}
  5. Summary: A library for handling uncompressed audio and video data
  6. Group: System Environment/Libraries
  7. License: GPLv3+
  8. URL: http://gmerlin.sourceforge.net/
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Source0: http://downloads.sourceforge.net/gmerlin/gavl-%{version}.tar.gz
  12. Patch1: gavl-1.1.1-system_libgdither.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: libtool
  15. BuildRequires: doxygen
  16. BuildRequires: libpng-devel >= 1.0.8
  17. %if %{with system_libgdither}
  18. BuildRequires: libgdither-devel
  19. %endif
  20. # Gavl use an internal tweaked libsamplerate version
  21. # ufortunately the libsamplerate doesn't want a patch
  22. # that will break ABI
  23. #BuildRequires: libsamplerate-devel
  24. %description
  25. Gavl is a library for handling and converting uncompressed audio and
  26. video data. It provides datatypes for audio/video formats and standardized
  27. structures to store the data. It supports converting between all formats.
  28. Some conversion functions are available in multiple versions (MMX...),
  29. which are selected by compile time configuration, CPU autodetection and
  30. user options.
  31. %package devel
  32. Summary: Development files for %{name}
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: pkgconfig
  36. %description devel
  37. The %{name}-devel package contains libraries and header files for
  38. developing applications that use %{name}.
  39. %prep
  40. %setup -q
  41. %if %{with system_libgdither}
  42. %patch1 -p1 -b .gdither
  43. %endif
  44. #Disable buildtime cpu detection
  45. sed -i -i 's/LQT_TRY_CFLAGS/dnl LQT_TRY_CFLAGS/g' configure.ac
  46. sed -i -i 's/LQT_OPT_CFLAGS/dnl LQT_OPT_CFLAGS/g' configure.ac
  47. #Regenerate build tool
  48. sh autogen.sh
  49. %build
  50. %configure \
  51. --disable-static \
  52. --disable-cpu-clip \
  53. --enable-libgdither
  54. make %{?_smp_mflags}
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  58. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  59. # Prevent timestamps build difference
  60. touch -r include/gavl/gavl.h $RPM_BUILD_ROOT%{_includedir}/gavl/gavl_version.h
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post
  64. /sbin/ldconfig
  65. %postun
  66. /sbin/ldconfig
  67. %files
  68. %defattr(-,root,root,-)
  69. %doc AUTHORS COPYING README TODO
  70. %exclude %{_docdir}/gavl/apiref
  71. %{_libdir}/*.so.*
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %doc %{_docdir}/gavl/apiref/
  75. %{_includedir}/gavl/
  76. %{_libdir}/*.so
  77. %{_libdir}/pkgconfig/gavl.pc
  78. %changelog
  79. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-9
  80. - initial build for Vine Linux.
  81. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-8
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  83. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-7
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  85. * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-6
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  87. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  89. * Mon Oct 07 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.4.0-4
  90. - Fix apiref bundled as %%doc in main - rhbz#1014820
  91. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  93. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  95. * Sat Sep 08 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.4.0-1
  96. - Update to 1.4.0
  97. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  99. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  101. * Sat Mar 26 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.2.0-1
  102. - update to 1.2.0
  103. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  105. * Sat May 01 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 1.1.2-1
  106. - Update to 1.1.2
  107. * Tue Oct 27 2009 kwizart < kwizart at gmail.com > - 1.1.1-1
  108. - Update to 1.1.1
  109. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
  110. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  111. * Tue Mar 24 2009 kwizart < kwizart at gmail.com > - 1.1.0-1
  112. - Update to 1.1.0
  113. - Disable buildtime CPU detection.
  114. * Tue Jul 29 2008 kwizart < kwizart at gmail.com > - 1.0.1-1
  115. - Update to 1.0.1
  116. * Tue Jul 22 2008 kwizart < kwizart at gmail.com > - 1.0.0-2
  117. - Add --enable-libgdither for system libgdither
  118. - Add --enable-debug to disable LQT_OPT_CFLAGS
  119. - Add -DHAVE_GAVLCONFIG_H to include gavlconfig.h when needed
  120. * Mon May 19 2008 kwizart < kwizart at gmail.com > - 1.0.0-1
  121. - Update to 1.0.0 api stable
  122. * Mon May 19 2008 kwizart < kwizart at gmail.com > - 0.2.7-4
  123. - Initial package for Fedora