source: projects/specs/trunk/s/svgalib/svgalib-vl.spec @ 3961

Revision 3961, 6.8 KB checked in by Takemikaduchi, 13 years ago (diff)

add Patch & rebuild package

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