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