directfb-vl.spec 4.3 KB

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