From c9191bfd4900820984dd6e7cfca2aacb6e5a714f Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 22:13:59 +0100 Subject: [PATCH] automatic rebuild by autodist [release 2.1-3mamba;Mon Jul 29 2013] --- README.md | 4 +++ fbset-2.1-fixmode.patch | 20 +++++++++++++++ fbset-2.1-makefile.patch | 44 ++++++++++++++++++++++++++++++++ fbset.spec | 55 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 123 insertions(+) create mode 100644 fbset-2.1-fixmode.patch create mode 100644 fbset-2.1-makefile.patch create mode 100644 fbset.spec diff --git a/README.md b/README.md index db83e47..3f9c2d1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # fbset +Fbset is a utility for maintaining frame buffer resolutions. Fbset can change the video mode properties of a frame buffer device, and is usually used to change the current video mode. + +Install fbset if you need to manage frame buffer resolutions. + diff --git a/fbset-2.1-fixmode.patch b/fbset-2.1-fixmode.patch new file mode 100644 index 0000000..95378ef --- /dev/null +++ b/fbset-2.1-fixmode.patch @@ -0,0 +1,20 @@ +--- fbset-2.1/etc/fb.modes.ATI Fri Feb 23 11:20:29 2001 ++++ fbset-2.1/etc/fb.modes.ATI Fri Feb 23 11:20:38 2001 +@@ -430,7 +430,7 @@ + # 1024x768, 72 Hz, Non-Interlaced (75.00 MHz dotclock) + # + # Horizontal Vertical +-# Resolution 10224 768 ++# Resolution 1024 768 + # Scan Frequency 58.230 kHz 72.245 Hz + # Sync Width 1.813 us 0.103 ms + # 17 chars 6 lines +@@ -447,7 +447,7 @@ + + mode "1024x768-72" + # D: 75.00 MHz, H: 58.230 kHz, V: 72.245 Hz +- geometry 10224 768 10224 768 8 ++ geometry 1024 768 1024 768 8 + timings 13334 104 24 29 3 136 6 + endmode + diff --git a/fbset-2.1-makefile.patch b/fbset-2.1-makefile.patch new file mode 100644 index 0000000..bfab78f --- /dev/null +++ b/fbset-2.1-makefile.patch @@ -0,0 +1,44 @@ +--- fbset-2.1/Makefile Sun Jan 17 14:15:46 1999 ++++ fbset-2.1/Makefile Thu Jun 15 11:10:30 2000 +@@ -7,6 +7,12 @@ + FLEX = flex + INSTALL = install + RM = rm -f ++PREFIX = ++ ++prefix = /usr ++sbindir = $(prefix)/sbin ++mandir = $(prefix)/man ++sysconfdir = /etc + + All: fbset + +@@ -24,18 +30,16 @@ + $(BISON) modes.y + + install: fbset +- if [ -f /sbin/fbset ]; then rm /sbin/fbset; fi +- $(INSTALL) fbset /usr/sbin +- $(INSTALL) fbset.8 /usr/man/man8 +- $(INSTALL) fb.modes.5 /usr/man/man5 +- if [ ! -c /dev/fb0 ]; then mknod /dev/fb0 c 29 0; fi +- if [ ! -c /dev/fb1 ]; then mknod /dev/fb1 c 29 32; fi +- if [ ! -c /dev/fb2 ]; then mknod /dev/fb2 c 29 64; fi +- if [ ! -c /dev/fb3 ]; then mknod /dev/fb3 c 29 96; fi +- if [ ! -c /dev/fb4 ]; then mknod /dev/fb4 c 29 128; fi +- if [ ! -c /dev/fb5 ]; then mknod /dev/fb5 c 29 160; fi +- if [ ! -c /dev/fb6 ]; then mknod /dev/fb6 c 29 192; fi +- if [ ! -c /dev/fb7 ]; then mknod /dev/fb7 c 29 224; fi ++ if [ -f $(PREFIX)/sbin/fbset ]; then rm $(PREFIX)/sbin/fbset; fi ++ mkdir -p $(PREFIX)$(sbindir) ++ $(INSTALL) -m 755 fbset $(PREFIX)$(sbindir)/ ++ $(INSTALL) -m 755 modeline2fb $(PREFIX)$(sbindir)/ ++ mkdir -p $(PREFIX)$(mandir)/man8 ++ $(INSTALL) -m 644 fbset.8 $(PREFIX)$(mandir)/man8/ ++ mkdir -p $(PREFIX)$(sysconfdir) ++ $(INSTALL) -m 644 etc/fb.modes.ATI $(PREFIX)$(sysconfdir)/fb.modes ++ mkdir -p $(PREFIX)$(mandir)/man5 ++ $(INSTALL) -m 644 fb.modes.5 $(PREFIX)$(mandir)/man5/ + + clean: + $(RM) *.o fbset lex.yy.c modes.tab.c modes.tab.h diff --git a/fbset.spec b/fbset.spec new file mode 100644 index 0000000..f2f568c --- /dev/null +++ b/fbset.spec @@ -0,0 +1,55 @@ +Name: fbset +Version: 2.1 +Release: 3mamba +Summary: Tools for managing a frame buffer's video mode properties +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://users.telenet.be/geertu/Linux/fbdev/ +Source: http://users.telenet.be/geertu/Linux/fbdev//%{name}-%{version}.tar.gz +Patch0: fbset-2.1-makefile.patch +Patch1: fbset-2.1-fixmode.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Fbset is a utility for maintaining frame buffer resolutions. Fbset can change the video mode properties of a frame buffer device, and is usually used to change the current video mode. + +Install fbset if you need to manage frame buffer resolutions. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%make -j1 CC=%{_target_platform}-gcc + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeoldinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_sbindir}/fbset +%{_sbindir}/modeline2fb +%{_sysconfdir}/fb.modes +%{_mandir}/man5/fb.modes.5.gz +%{_mandir}/man8/fbset.8.gz + +%changelog +* Mon Jul 29 2013 Automatic Build System 2.1-3mamba +- automatic rebuild by autodist + +* Mon Jun 29 2009 Silvan Calarco 2.1-2mamba +- specfile updated and rebuilt + +* Wed Oct 19 2005 Stefano Cotta Ramusino 2.1-1qilnx +- package created by autospec