svgalib-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. Summary: A low-level fullscreen SVGA graphics library.
  2. Name: svgalib
  3. Version: 1.9.25
  4. Release: 1%{?_dist_release}
  5. Exclusivearch: %{ix86} x86_64
  6. License: distributable
  7. Group: System Environment/Libraries
  8. Source: http://www.arava.co.il/matan/svgalib/svgalib-%{version}.tar.gz
  9. Source1: svgalib-todo
  10. Patch0: svgalib-1.9.21-makefiles.patch
  11. Patch1: svgalib-1.4.3-fhs.patch
  12. Patch2: svgalib-1.9.21-demos.patch
  13. Patch3: svgalib-1.9.21-cfg.patch
  14. Patch4: svgalib-1.9.25-kernel-2.6.26.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. %description
  17. The svgalib package provides the SVGAlib low-level graphics library
  18. for Linux. SVGAlib is a library which allows applications to use full
  19. screen graphics on a variety of hardware platforms. Many games and
  20. utilities use SVGAlib for their graphics.
  21. You'll need to have the svgalib package installed if you use any of
  22. the programs which rely on SVGAlib for their graphics support.
  23. #'
  24. %package devel
  25. Summary: Development tools for programs using the SVGAlib graphics library.
  26. Group: Development/Libraries
  27. Requires: svgalib = %{version}-%{release}
  28. Provides: libvga-devel = %{version}-%{release}
  29. %description devel
  30. The svgalib-devel package contains the libraries and header files
  31. needed to build programs which will use the SVGAlib low-level graphics
  32. library.
  33. Install the svgalib-devel package if you want to develop applications
  34. which will use the SVGAlib library.
  35. %prep
  36. %setup -q
  37. %patch0 -p1 -b .makefiles
  38. %patch1 -p1 -b .fhs
  39. %patch2 -p1
  40. %patch3 -p1 -b .defaultcfg
  41. %patch4 -p1
  42. #the testlinear demo needs svgalib's internal libvga header, so copy it to the
  43. #demo dir
  44. %__cp src/libvga.h demos
  45. %build
  46. #%{?_smp_mflags} doesn't work on x86_64 chances are it will fail on
  47. #some i386 machines too.
  48. %__make OPTIMIZE="$RPM_OPT_FLAGS -Wno-pointer-sign" LDFLAGS= \
  49. prefix=%{_prefix} \
  50. NO_HELPER=y \
  51. INCLUDE_ET4000_DRIVER=y \
  52. INCLUDE_OAK_DRIVER=y \
  53. INCLUDE_MACH32_DRIVER=y \
  54. INCLUDE_ET3000_DRIVER=y \
  55. INCLUDE_GVGA6400_DRIVER=y \
  56. INCLUDE_ATI_DRIVER=y \
  57. INCLUDE_G450C2_DRIVER=y \
  58. INCLUDE_ET4000_DRIVER_TEST=y \
  59. INCLUDE_FBDEV_DRIVER_TEST=y \
  60. INCLUDE_VESA_DRIVER_TEST=y \
  61. shared
  62. %__make -C utils \
  63. OPTIMIZE="$RPM_OPT_FLAGS -Wno-pointer-sign" LDFLAGS= \
  64. prefix=%{_prefix}
  65. %__make -C threeDKit \
  66. OPTIMIZE="$RPM_OPT_FLAGS -Wno-pointer-sign -I../gl" LDFLAGS= \
  67. prefix=%{_prefix} lib3dkit.so.%{version}
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. mkdir -p $RPM_BUILD_ROOT/etc/vga
  71. mkdir -p $RPM_BUILD_ROOT/%{_libdir}
  72. make \
  73. TOPDIR=$RPM_BUILD_ROOT \
  74. prefix=$RPM_BUILD_ROOT/%{_prefix} \
  75. mandir=$RPM_BUILD_ROOT/%{_mandir} \
  76. sharedlibdir=$RPM_BUILD_ROOT/%{_libdir} \
  77. NO_HELPER=y \
  78. MANFORMAT=compressed \
  79. "INSTALL_PROGRAM=install -p -m 755" \
  80. "INSTALL_SCRIPT=install -p -m 755" \
  81. "INSTALL_SHLIB=install -p -m 755" \
  82. "INSTALL_DATA=install -p -m 644" \
  83. install
  84. ln -s libvga.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libvga.so.1
  85. ln -s libvgagl.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libvgagl.so.1
  86. ln -s lib3dkit.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/lib3dkit.so.1
  87. #for %ghost
  88. touch $RPM_BUILD_ROOT/etc/vga/fontdata
  89. touch $RPM_BUILD_ROOT/etc/vga/textregs
  90. %clean
  91. %__rm -fr $RPM_BUILD_ROOT
  92. %post -p /sbin/ldconfig
  93. %postun -p /sbin/ldconfig
  94. %files
  95. %defattr(-,root,root,-)
  96. %doc doc/CHANGES doc/README.joystick doc/README.keymap lrmi-0.6m/README
  97. %doc doc/README.multi-monitor doc/README.vesa doc/TODO doc/dual-head-howto
  98. %dir %{_sysconfdir}/vga/
  99. %config(noreplace) %{_sysconfdir}/vga/dvorak-us.keymap
  100. %config(noreplace) %{_sysconfdir}/vga/libvga.config
  101. %config(noreplace) %{_sysconfdir}/vga/libvga.et4000
  102. %config(noreplace) %{_sysconfdir}/vga/null.keymap
  103. %ghost %{_sysconfdir}/vga/fontdata
  104. %ghost %{_sysconfdir}/vga/textregs
  105. %{_bindir}/*
  106. %{_libdir}/*.so.*
  107. %{_mandir}/man[^3]/*
  108. %files devel
  109. %defattr(-,root,root,-)
  110. %doc demos doc/DESIGN doc/Driver-programming-HOWTO doc/README.patching
  111. %{_includedir}/*
  112. %{_libdir}/*.so
  113. %{_mandir}/man3/*
  114. %changelog
  115. * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.9.25-1
  116. - new upstream release
  117. - dropped/updated all old patches based on Fedora development package
  118. - added Provides: libvga-devel in devel subpackage
  119. * Tue Oct 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-0vl1
  120. - updated Patch0, Patch2, Patch4
  121. - Patch3 and Patch5 were merged into upstream, dropped
  122. - added Patch7 to build vga.c correctly
  123. - s/Copyright/License/
  124. * Sat Aug 18 2001 Toru Sagami <sagami@vinelinux.org>
  125. - 1.4.1-13vl1: was ported to Vine
  126. * Thu Oct 26 2000 Than Ngo <than@redhat.com>
  127. - rebuilt for 7.1
  128. * Thu Oct 26 2000 Than Ngo <than@redhat.com>
  129. - fixed makefile to link vgalib in sharelib instead /usr/lib (Bug #19732)
  130. - fixed undefined reference to `cli' and 'sti'
  131. * Mon Aug 21 2000 Than Ngo <than@redhat.com>
  132. - fix for building the utils correct
  133. * Sun Aug 20 2000 Than Ngo <than@redhat.com>
  134. - fix 800x600 mode messed up on matrox millenium I (Bug #16641)
  135. * Fri Aug 11 2000 Tim Powers <timp@redhat.com>
  136. - rebuilt
  137. * Mon Jul 24 2000 Prospector <prospector@redhat.com>
  138. - rebuilt
  139. * Mon Jul 24 2000 Than Ngo <than@redhat.de>
  140. - fix unclean code to built against gcc-2.96-34
  141. - set chipset Vesa as default
  142. * Wed Jul 12 2000 Than Ngo <than@redhat.de>
  143. - clean up specfile
  144. * Mon Jun 4 2000 Bill Nottingham <notting@redhat.com>
  145. - move to powertools
  146. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  147. - handle compressed man pages
  148. * Tue Jan 18 2000 Bill Nottingham <notting@redhat.com>
  149. - update to 1.4.1 final
  150. * Wed Dec 08 1999 Michael Maher <mike@lastfoot.com>
  151. - built pre release of 1.4.1
  152. * Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
  153. - strip binaries
  154. * Fri Aug 27 1999 Bill Nottingham <notting@redhat.com>
  155. - update to 1.4.0, sort out patches
  156. * Sun May 16 1999 Jeff Johnson <jbj@redhat.com>
  157. - don't remove old binaries (not from BUILD_ROOT!) during install (#2735).
  158. * Wed Mar 31 1999 Preston Brown <pbrown@redhat.com>
  159. - moved temporary svgalib files to /var/lib/svgalib
  160. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  161. - auto rebuild in the new build environment (release 2)
  162. * Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
  163. - verify dumpreg is not setuid (problem #760)
  164. - specfile fiddles
  165. * Thu Jul 30 1998 Cristian Gafton <gafton@redhat.com>
  166. - upgraded to 1.3.0
  167. - security patch
  168. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  169. - translations modified for de, fr, tr
  170. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  171. - devel package moved to Development/Libraries
  172. * Mon Apr 06 1998 Erik Troan <ewt@redhat.com>
  173. - updated to svgalib 1.2.13
  174. - uses a build root
  175. * Mon Nov 3 1997 Michael Fulbright <msf@redhat.com>
  176. - removed Mach64 from configuration, as the driver does not work
  177. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  178. - spec file cleanups