svgalib-vl.spec 6.8 KB

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