directfb-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. %define oname DirectFB
  2. %define libver 1.4-5
  3. Summary: Hardware graphics acceleration library
  4. Name: directfb
  5. Version: 1.4.11
  6. Release: 2%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Libraries
  9. Source0: http://www.directfb.org/downloads/Core/%{name}-1.4/%{oname}-%{version}.tar.gz
  10. ##Patch0: %{oname}-%{version}_ppc.patch
  11. Patch0: %{oname}-1.1.1_ppc.patch
  12. URL: http://www.directfb.org/
  13. BuildRequires: libpng-devel >= 1.2.0
  14. BuildRequires: zlib-devel >= 1.1.3
  15. BuildRequires: libjpeg-turbo-devel
  16. BuildRequires: freetype2-devel >= 2.0.2
  17. BuildRequires: libX11-devel
  18. BuildRequires: libvncserver-devel
  19. BuildRequires: sysfsutils-devel
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. DirectFB hardware graphics acceleration - libraries.
  25. %package -n lib%{name}
  26. Summary: Shared library part of %oname
  27. Group: System Environment/Libraries
  28. %description -n lib%{name}
  29. DirectFB hardware graphics acceleration - libraries.
  30. This package contains the %oname shared library and interface modules.
  31. It's required for running apps based on %oname.
  32. #'
  33. %package -n lib%{name}-devel
  34. Group: Development/Libraries
  35. Summary: Header files for compiling DirectFB applications
  36. Requires: lib%{name} = %{version}-%{release}
  37. Provides: %{oname}-devel = %{version}-%{release}
  38. %description -n lib%{name}-devel
  39. DirectFB header files for building applications based on %oname.
  40. %package doc
  41. Summary: DirectFB - documentation
  42. Group: Applications/Documentation
  43. %description doc
  44. DirectFB documentation and examples.
  45. %prep
  46. %setup -q -n %{oname}-%{version}
  47. %patch0 -p1
  48. %build
  49. %configure \
  50. --enable-multi \
  51. --enable-shared \
  52. --with-gfxdrivers=ati128,i810,i830,mach64,nvidia,radeon,savage,sis315,vmware
  53. make
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  58. # we don't ship dfbg ATM
  59. rm -f $RPM_BUILD_ROOT%{_bindir}/dfbg
  60. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dfbg.1
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post -n lib%{name} -p /sbin/ldconfig
  64. %postun -n lib%{name} -p /sbin/ldconfig
  65. %files -n lib%{name}
  66. %defattr(-,root,root,-)
  67. %doc README* AUTHORS ChangeLog NEWS TODO
  68. %{_bindir}/dfbdump
  69. %{_bindir}/dfbfx
  70. %{_bindir}/dfbinfo
  71. %{_bindir}/dfbinput
  72. %{_bindir}/dfbinspector
  73. %{_bindir}/dfbmaster
  74. %{_bindir}/dfblayer
  75. %{_bindir}/dfbscreen
  76. %{_bindir}/dfbpenmount
  77. %{_bindir}/mkdfiff
  78. %{_bindir}/mkdgiff
  79. %{_bindir}/mkdgifft
  80. %{_libdir}/lib*.so.*
  81. %dir %{_libdir}/directfb-%{libver}
  82. %dir %{_libdir}/directfb-%{libver}/gfxdrivers
  83. %dir %{_libdir}/directfb-%{libver}/inputdrivers
  84. %dir %{_libdir}/directfb-%{libver}/interfaces
  85. %dir %{_libdir}/directfb-%{libver}/systems
  86. %dir %{_libdir}/directfb-%{libver}/wm
  87. %{_libdir}/directfb-%{libver}/gfxdrivers/*.so
  88. %{_libdir}/directfb-%{libver}/inputdrivers/*.so
  89. %{_libdir}/directfb-%{libver}/interfaces/*/*.so
  90. %{_libdir}/directfb-%{libver}/systems/*.so
  91. %{_libdir}/directfb-%{libver}/wm/*.so
  92. #{_libdir}/directfb-%{libver}/*.so
  93. %{_datadir}/directfb-%{version}
  94. %{_mandir}/man5/directfbrc.5*
  95. %files -n lib%{name}-devel
  96. %defattr(-,root,root,-)
  97. %{_bindir}/directfb-config
  98. %{_bindir}/directfb-csource
  99. %{_includedir}/*
  100. %{_libdir}/pkgconfig/*.pc
  101. #{_libdir}/*.la
  102. %{_libdir}/*.so
  103. %{_mandir}/man1/directfb-csource.1*
  104. %files doc
  105. %defattr(-,root,root,-)
  106. %doc docs/html/*
  107. %changelog
  108. * Sun May 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.11-2
  109. - fix permission
  110. * Tue Dec 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.11-1
  111. - new upstream release
  112. - change Source URL
  113. - add BuildRequires: libX11-devel, libvncserver-devel, sysfsutils-devel
  114. - change BuildRequires: libjpeg-turbo-devel instead libjpeg-devel >= 6g
  115. - fix %%files
  116. * Mon Oct 11 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.5-1
  117. - updated DirectFB to 1.2.5
  118. - rebuilt with rpm-4.8.1 for pkg-config
  119. * Sun May 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.1-2
  120. - add Patch0 to fix ppc build problem (with newer kernels)
  121. * Fri May 2 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-1
  122. - new upstream release
  123. * Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.16-2vl2
  124. - changed doc Group to Applications/Documentation
  125. * Fri Nov 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.16-2vl1
  126. - changed packages Group:
  127. - cleaned spec file (a little bit!)
  128. * Fri Feb 28 2003 Kazuhisa TAKEI <takei@vinelinux.org> 0.9.16-2vl0
  129. - new upstream version
  130. - convert to Vine Linux
  131. * Fri Dec 27 2002 Gz Waschk <waschk@linux-mandrake.com> 0.9.15-2mdk
  132. - rebuild
  133. * Wed Nov 13 2002 Gz Waschk <waschk@linux-mandrake.com> 0.9.15-1mdk
  134. - new version
  135. * Tue Oct 29 2002 Gz Waschk <waschk@linux-mandrake.com> 0.9.14-1mdk
  136. - fix group of doc package
  137. - new version
  138. * Fri Aug 23 2002 Gz Waschk <waschk@linux-mandrake.com> 0.9.13-1mdk
  139. - add directfb-csource and man page
  140. - 0.9.13
  141. * Thu Jul 11 2002 Gz Waschk <waschk@linux-mandrake.com> 0.9.12-1mdk
  142. - initial package based on PLD effort