cogl-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. %define cogl_version 1.20.0
  2. %define cogl_release 2%{?_dist_release}
  3. Name: cogl
  4. Version: %{cogl_version}
  5. Release: %{cogl_release}
  6. Summary: A small open source library for using 3D graphics hardware to draw pretty pictures
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.clutter-project.org/
  10. Source0: http://www.clutter-project.org/sources/%{name}/1.20/%{name}-%{version}.tar.xz
  11. Patch0: cogl-1.20.0-git20150508.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gobject-introspection-devel
  14. BuildRequires: libXcomposite-devel
  15. BuildRequires: libXrandr-devel
  16. BuildRequires: mesa-libGL-devel
  17. BuildRequires: mesa-libEGL-devel
  18. BuildRequires: mesa-libgbm-devel
  19. BuildRequires: pango-devel
  20. BuildRequires: gdk-pixbuf2-devel
  21. BuildRequires: gstreamer1-plugins-base-devel
  22. BuildRequires: gtk-doc
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: Takemikaduchi
  26. %description
  27. Cogl is a small open source library for using 3D graphics hardware to draw
  28. pretty pictures. The API departs from the flat state machine style of
  29. OpenGL and is designed to make it easy to write orthogonal components that
  30. can render without stepping on each others toes.
  31. %package devel
  32. Summary: Development tools for cogl
  33. Summary(ja): cogl の開発環境
  34. Group: Development/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. Requires: pkgconfig
  37. %description devel
  38. Header files and libraries for building a extension library for the
  39. cogl.
  40. %package gstreamer
  41. Summary: Cogl GStreamer library
  42. Summary(ja): cogl gstreamer ライブラリ
  43. Group: System Environment/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. %description gstreamer
  46. %{summary}
  47. %package docs
  48. Summary: Documentation for cogl
  49. Summary(ja): cogl 用のドキュメント
  50. Group: Documentation
  51. Provides: %{name}-doc = %{version}-%{release}
  52. BuildArch: noarch
  53. %description docs
  54. This package contains documentation for cogl.
  55. %prep
  56. %setup -q
  57. %patch0 -p1
  58. for i in `grep -rl "<note>" ./`;
  59. do
  60. sed -i 's/<note>//' $i
  61. done
  62. for i in `grep -rl "<\/note>" ./`;
  63. do
  64. sed -i 's/<\/note>//' $i
  65. done
  66. %build
  67. %configure \
  68. --enable-gtk-doc \
  69. --disable-static \
  70. --enable-cairo=yes \
  71. --enable-gdk-pixbuf=yes \
  72. --enable-cogl-gst=yes \
  73. --enable-cogl-pango=yes \
  74. --enable-glx=yes \
  75. --enable-introspection=yes \
  76. --enable-kms-egl-platform=yes \
  77. --enable-xlib-egl-platform=yes
  78. make V=1
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. #make DESTDIR=$RPM_BUILD_ROOT install
  82. make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
  83. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  84. %find_lang %{name}
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT
  87. %post -p /sbin/ldconfig
  88. %postun -p /sbin/ldconfig
  89. %files -f %{name}.lang
  90. %defattr(-,root,root,-)
  91. %doc ChangeLog AUTHORS COPYING NEWS README
  92. %{_libdir}/*.so.*
  93. %{_libdir}/girepository-1.0/*.typelib
  94. %{_datadir}/%{name}/examples-data/crate.jpg
  95. %files devel
  96. %defattr(-,root,root,-)
  97. %{_includedir}/cogl
  98. %{_libdir}/*.so
  99. %{_libdir}/pkgconfig/*.pc
  100. %{_datadir}/gir-1.0/*.gir
  101. %files gstreamer
  102. %defattr(-,root,root,-)
  103. %{_libdir}/gstreamer-1.0/libgstcogl.so
  104. %files docs
  105. %defattr(-,root,root,-)
  106. %{_datadir}/gtk-doc/html/cogl
  107. %{_datadir}/gtk-doc/html/cogl-gst
  108. %{_datadir}/gtk-doc/html/cogl-2.0-experimental
  109. %changelog
  110. * Wed May 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.20.0-2
  111. - add Patch0 (cogl-1.20.0-git20150508.patch)
  112. - add BuildRequires: mesa-libgbm-devel
  113. * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.20.0-1
  114. - new upstream release
  115. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.18.2-1
  116. - new upstream release
  117. - add BuildRequires: mesa-libEGL-devel
  118. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.18.0-1
  119. - new upstream release
  120. * Sat Jan 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.2-1
  121. - new upstream release
  122. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.0-2
  123. - rebuild with VineSeed environment
  124. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.0-1
  125. - new upstream release
  126. - add BuildRequire: gstreamer1-plugins-base-devel
  127. * Thu Apr 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  128. - new upstream release
  129. - add BuildRequires: libXrandr-devel
  130. * Sun Jan 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.2-1
  131. - new upstream release
  132. * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  133. - new upstream release
  134. - remove Patch0 (04_fix_crash_on_free.patch)
  135. * Sun Jul 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.4-1
  136. - new upstream release
  137. * Mon Jul 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-2
  138. - add Patch0 (04_fix_crash_on_free.patch)
  139. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  140. - new upstream release
  141. * Fri Oct 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.2-1
  142. - new upstream release
  143. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  144. - new upstream release
  145. * Tue Sep 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.8-1
  146. - new upstream release
  147. - remove Patch0
  148. * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.6-1
  149. - new upstream release
  150. - add Patch0 (cogl-1.7.6-configure.patch)
  151. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.4-1
  152. - initial build for Vine Linux