vbetool-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: Run real-mode video BIOS code to alter hardware state
  2. Name: vbetool
  3. Version: 1.2.2
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Base
  6. License: GPLv2
  7. URL: http://www.codon.org.uk/~mjg59/vbetool/
  8. Source0: http://www.codon.org.uk/~mjg59/vbetool/download/vbetool-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: zlib-devel, pciutils-devel, libx86-devel >= 1.1-2
  11. BuildRequires: libpciaccess-devel
  12. # does not build on ppc and ppc64, see #285361 (RedHat Bugzilla)
  13. # on ppc sys/io.h is missing, on ppc64 there are more complaints
  14. # build.logs are attached in the bug report
  15. ExcludeArch: ppc ppc64
  16. %description
  17. vbetool uses lrmi in order to run code from the video BIOS. Currently, it is
  18. able to alter DPMS states, save/restore video card state and attempt to
  19. initialize the video card from scratch.
  20. %prep
  21. %setup -q
  22. %build
  23. %configure --with-x86emu
  24. make %{?_smp_mflags}
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. make install DESTDIR=$RPM_BUILD_ROOT
  28. install -m 0644 -D udev-video-post-example.rules $RPM_BUILD_ROOT/etc/udev/rules.d/92-video-post.rules
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(-,root,root,-)
  33. %doc COPYING
  34. %{_sysconfdir}/udev/rules.d/92-video-post.rules
  35. %{_sbindir}/vbetool
  36. %{_mandir}/man1/vbetool.1.gz
  37. %changelog
  38. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-1
  39. - new upstream release
  40. - install udev rules
  41. - add BR: libpciaccess-devel
  42. * Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  43. - initial build for Vine Linux
  44. * Mon May 19 2008 Matthew Garrett <mjg@redhat.com> - 1.1-1
  45. - update to version 1.1
  46. * Tue Mar 25 2008 Till Maas <opensource till name> - 0.7-6
  47. - remove overriding of CFLAGS for x86emu
  48. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7-5
  49. - Autorebuild for GCC 4.3
  50. * Sun Dec 02 2007 Till Maas <opensource till name> - 0.7-4
  51. - libz.a is now in a -static subpackage, add to BR
  52. * Tue Nov 13 2007 Adam Jackson <ajax@redhat.com> 0.7-3
  53. - Build with x86emu everywhere for uniformity of bugs and consistency with X.
  54. * Fri Sep 07 2007 Till Maas <opensource till name> 0.7-2
  55. - ExcludeArch: ppc and ppc64 (does not build there)
  56. - add Conflicts with old pm-utils package
  57. * Fri Aug 31 2007 Till Maas <opensource till name> - 0.7-1
  58. - initial release for Fedora with patches from the pm-utils package