File: Device3Dfx.spec

package info (click to toggle)
device3dfx 2001.07.28
  • links: PTS
  • area: main
  • in suites: woody
  • size: 132 kB
  • ctags: 188
  • sloc: ansic: 1,147; makefile: 187; sh: 89
file content (160 lines) | stat: -rw-r--r-- 4,342 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
Summary: Device driver for 3Dfx boards for 2.x kernels
Name: Device3Dfx
Version: 2.3
Release: 5
Icon: 3dfx.gif
Source: Device3Dfx.tar.gz
License: GPL
Group: Drivers

%changelog

* Sat Apr 08 2000 Joseph Kain <joseph@3dfx.com>
  Release 2.3-5
- Check both the kernel and the processor for MTRR support before enabling.

* Wed Jan 04 2000 Joseph Kain <joseph@3dfx.com>
  Release 2.3-4

- Forgot to include kinfo.h in 3dfx_driver.c in the last release.   This 
  fixes some build problems for SMP kernels.

* Wed Dec 22 1999 Joseph Kain <joseph@3dfx.com>
  Release 2.3-3

- Fixes to the Makefile to stop grepping the header files.  Changes to 
  mtrr.c and 3dfx_driver.c to support these Makefile changes.
- 3dfx_driver.c now supports 2.3.14+ kernels.

* Mon Dec 13 1999 Joseph Kain <joseph@3dfx.com>
  Release 2.3-2
  
- Removed depmod -a from the Makefile.  This elliminates errors in the
  build on systems with modules with broken depedancies (Happens on Madrake)
- Changed depmod -a to depmod -a > /dev/null in the post and postun to
  elliminate any warnings/errors with modules that don't have anything
  to do with Device3Dfx.  Warnings scare people.

* Tue Nov 09 1999 Joseph Kain <joseph@3dfx.com>
  Release 2.3:

- Made cards static to remove conflict with hisax ISDN driver.
- Removed 3dfx.o from the source distribution

* Fri Jun 25 1999 Daryll Strauss <daryll@harlot.rb.ca.us>

  Release 2.2:

- Set MTRR for VB/V3 boards
- Allow build without kernel sources installed
- Code cleanup
- Improvements in /etc/conf.modules setup

* Sun May 16 1999 Daryll Strauss <daryll@harlot.rb.ca.us>

  Release 2.1:

- Added support for multiple board mappings
- Enlarged size of mappings
- Changes to support VB/V3 boards

* Sun Apr 4 1999 Daryll Strauss <daryll@harlot.rb.ca.us>

  Release 2.0-1:

- This is just a rename of Michael's version to return it to my original 
  naming scheme.
- Added the License field to the spec file.

* Thu Mar 11 1999 Michael Vance <mkv102@psu.edu>

  Release 2.5-2:

- Fixed for 2.2.3 kernels because of an mmap() update

* Fri Oct 30 1998 Carlo Wood <carlo@runaway.xs4all.nl>

  Release 2.5-1:

- Upped source to Dev3Dfx-2.5.tar.gz
- Boosted version number of rpm to the version of the tar.gz.
  Moved everything to the Makefile, so Dev3Dfx-2.5.tar.gz is
  self containing and will work without rpm too.
  
* Wed Oct 21 1998 Carlo Wood <carlo@runaway.xs4all.nl>

  Release 1.2-5:

- Upped source to Dev3Dfx-2.4.tar.gz
- Removed dangerous and confusing use of /lib/modules/preferred
- Removed the use of `uname': It now will compile for the kernel
  version in /usr/src/linux and not be bothered by the running
  kernel version.

* Wed Oct 21 1998 Carlo Wood <carlo@runaway.xs4all.nl>

  Release 1.2-4:

- Upped source to Dev3Dfx-2.3.tar.gz

* Mon Oct 19 1998 Carlo Wood <carlo@runaway.xs4all.nl>
 
  Release 1.2-3:

- Corrected Summary and Description to refer to 2.x rather
  then 2.1 kernels.
- Removed script lines that write an `option' line to /etc/conf.modules.
- Upped source to Dev3Dfx-2.2.tar.gz

* Sun Oct 18 1998 Carlo Wood <carlo@runaway.xs4all.nl>

  Release 1.2-2:

- Added OPT_CFLAGS stuff.
  
* Sun Oct 18 1998 Carlo Wood <carlo@runaway.xs4all.nl>

  Release 1.2-1:

- Packaged version 1.2 with support for 2.1 kernels by John Taylor and
  MTRR settings added by Jens Axboe.
 
%description
This package installs the 3Dfx device driver to allow access to 3Dfx
boards without the user having root privledges.  It should work on both
2.0 and 2.1/2.2 kernels and set the MTRR settings correctly.  It should
also work with SMP kernels (2.1/2.2).

%prep
%setup -c

%build
make OPT_CFLAGS="$RPM_OPT_FLAGS"

%install
make RPM_INSTALL="1" install | grep '^/lib/modules/' > modules-file-list

%post
if [ "$1" = 1 ]; then
	grep -v 3dfx /etc/conf.modules > /etc/conf.modules.tmp
	echo alias char-major-107 3dfx >> /etc/conf.modules.tmp
	mv /etc/conf.modules.tmp /etc/conf.modules
fi
/sbin/depmod -a > /dev/null

%postun
if [ "$1" = 0 ]; then
	grep -v 3dfx /etc/conf.modules > /etc/conf.modules.tmp
	mv /etc/conf.modules.tmp /etc/conf.modules
fi
/sbin/depmod -a > /dev/null

%verifyscript
inconf=`grep 'alias char-major-107 3dfx' /etc/conf.modules`
if [ "x$inconf" = "x" ]; then
	echo "3dfx entry not included in /etc/conf.modules"
fi

%files -f modules-file-list
%verify(not mode user group) /dev/3dfx