]>
Commit | Line | Data |
---|---|---|
9e9fc455 ER |
1 | # TODO |
2 | # - fix initscript description | |
6c1aab0d | 3 | Summary: Change the resolution of an available vbios mode for the 855/865/915 Intel graphic chipset |
58c805dc PG |
4 | Name: 855resolution |
5 | Version: 0.4 | |
90c7a91f | 6 | Release: 0.8 |
58c805dc PG |
7 | License: Public Domain |
8 | Group: Applications/System | |
9 | Source0: http://perso.wanadoo.fr/apoirier/%{name}-%{version}.tgz | |
10 | # Source0-md5: 12237e534def7dd3579a3e8b0a4b9351 | |
90c7a91f PG |
11 | Source1: %{name}.sysconfig |
12 | Source2: %{name}.init | |
58c805dc PG |
13 | URL: http://perso.wanadoo.fr/apoirier/ |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
6c1aab0d | 17 | 855resolution is a software to change the resolution of an available |
18 | vbios mode for the 855/865/915 Intel graphic chipset. I coded it to | |
19 | get the 1400x1050 resolution on my Dell 510. | |
58c805dc PG |
20 | |
21 | Later it was tested with succes on the following laptops: | |
6c1aab0d | 22 | - Acer Travelmate 291lmi |
23 | - Acer TravelMate 661LCi | |
24 | - Acer Travelmate 662 | |
25 | - Asus M3N | |
26 | - Dell Inspiron 500m | |
27 | - Dell Inspiron 510m | |
28 | - Dell Inspiron 700m | |
29 | - Fujitsu LifeBook P5010D | |
30 | - Fujitsu E4010 | |
31 | ||
32 | It patches only the RAM version of the video bios so the new | |
33 | resolution is loose each time you reboot. If you want to set the | |
34 | resolution each time you reboot and before to launch X, use your | |
35 | rc.local, local.start ... file of your Linux version. | |
58c805dc PG |
36 | |
37 | %prep | |
38 | %setup -q -n %{name} | |
39 | ||
40 | %build | |
41 | %{__make} \ | |
42 | CC="%{__cc}" \ | |
43 | CPPFLAGS="%{rpmcflags}" | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
90c7a91f | 47 | install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{rc.d/init.d,sysconfig}} |
58c805dc PG |
48 | |
49 | install 855resolution $RPM_BUILD_ROOT%{_sbindir} | |
90c7a91f PG |
50 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
51 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
58c805dc PG |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
90c7a91f PG |
56 | %post |
57 | /sbin/chkconfig --add 855resolution | |
58 | ||
59 | %preun | |
60 | if [ "$1" = "0" ]; then | |
61 | /sbin/chkconfig --del 855resolution | |
62 | fi | |
63 | ||
58c805dc PG |
64 | %files |
65 | %defattr(644,root,root,755) | |
66 | %doc CHANGES.txt README.txt | |
90c7a91f PG |
67 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
68 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
58c805dc | 69 | %attr(755,root,root) %{_sbindir}/* |