directfb-vl.spec 4.1 KB

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