/
x11-driver-video-openchrome.spec
109 lines (90 loc) · 3.03 KB
/
x11-driver-video-openchrome.spec
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
%global optflags %{optflags} -fcommon
# keeping it here just in case someone wants to use the SVN version
# svn co http://svn.openchrome.org/svn/trunk openchrome
# (anssi) The unversioned symlink of XvMC library must be present in
# %{_libdir} during normal use, as libXvMC uses that name for dlopening.
# Our devel requires finder catches that, hence this exception:
%global __requires_exclude devel\\(
%define major 1
%define libxvmc %mklibname chromeXvMC %{major}
%define libpro %mklibname chromeXvMCPro %{major}
%define devname %mklibname %{name} -d
Summary: X.org driver for Unichrome cards from the OpenChrome project
Name: x11-driver-video-openchrome
Version: 0.6.0
Release: 5
Group: System/X11
License: MIT
Url: http://www.openchrome.org
Source0: http://xorg.freedesktop.org/archive/individual/driver/xf86-video-openchrome-%{version}.tar.bz2
# Mandriva patches
# http://billionmonkeys.net/openchrome - broken 2008/07
Patch100: xf86-video-openchrome-0.2.901-billionmokeys.net_modelines.patch
Patch101: 0003-IDs-enable-LCD-on-Guillemot-NA01.patch
Patch102: openchrome_mips_arm_xvmc.patch
Patch104: xf86-video-openchrome-0.3.2-link-against-X11.patch
Patch105: xf86-video-openchrome-0.6.0-linking.patch
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xorg-macros)
BuildRequires: pkgconfig(xorg-server)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xvmc)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(xv)
Requires: x11-server-common %(xserver-sdk-abi-requires videodrv)
Requires: udev
ExclusiveArch: %{ix86} %{x86_64}
%description
A free and Open Source video driver for the VIA/S3G
UniChrome and UniChrome Pro graphics chipsets. (CLE266,
KN400, KM400, K8M800, PM800, CN400, VN800)
%package -n %{libxvmc}
Summary: X Library
Group: System/Libraries
Conflicts: %{name} < 0.3.1-3
%description -n %{libxvmc}
This package contains a shared library for %{name}.
%package -n %{libpro}
Summary: X Library
Group: System/Libraries
Conflicts: %{name} < 0.3.1-3
%description -n %{libpro}
This package contains a shared library for %{name}.
%package -n %{devname}
Summary: Development files for %{name}
Group: Development/X11
Requires: %{libxvmc} = %{version}-%{release}
Requires: %{libpro} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Conflicts: %{name} < 0.3.1-3
%description -n %{devname}
This package contains the development files for %{name}.
%prep
%setup -qn xf86-video-openchrome-%{version}
%patch100 -p1 -b .billionmonkeys~
%patch102 -p1 -b .xvmc~
%patch104 -p1 -b .link
%patch105 -p1
%build
autoreconf -fiv
%configure \
--disable-static \
--enable-viaregtool \
--enable-dri
%make_build
%install
%make_install
%files
%{_libdir}/xorg/modules/drivers/openchrome_drv.so
%{_mandir}/man4/openchrome.*
%{_sbindir}/via_regs_dump
%files -n %{libxvmc}
%{_libdir}/libchromeXvMC.so.%{major}*
%files -n %{libpro}
%{_libdir}/libchromeXvMCPro.so.%{major}*
%files -n %{devname}
%{_libdir}/libchromeXvMC.so
%{_libdir}/libchromeXvMCPro.so