summaryrefslogtreecommitdiff
path: root/packaging/pvr-bin-mdfld.spec
blob: 3f3f1ad2c2f1e9bd16fd9d391e32f2dfafffbe7c (plain)
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
%define debug_package %{nil}
#%define targetarch %{_target_cpu}
%define targetarch i386
%define binrelease 4

Name:    pvr-bin-mdfld
Version: 1.7.17.296760.%{binrelease}
Release: 1
Summary: Binary graphics driver and libraries from PowerVR
Group:   Development/Libraries
License: Intel Proprietary
ExclusiveArch: %{ix86} x86_64
Source0: %{name}-%{version}-%{targetarch}.tar.bz2
Source1: %{name}-tests-%{version}-%{targetarch}.tar.bz2
Source2: %{name}-devel-%{version}-%{targetarch}.tar.bz2
Source10: license.txt
Source100: pvr-bin-mdfld-rpmlintrc
Requires: mesa-libGL
Requires: pciutils
Requires: libwsbm
AutoReqProv: no
Provides: libEGL.so.1
Provides: libGLES_CM.so
Provides: libGLES_CM.so.1
Provides: libGLESv2.so.2
Provides: libOpenVG.so.1

%description
PowerVR graphics driver and runtime library.

%package tests
Summary: Unit tests for pvr driver
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
AutoReqProv: no

%description tests
Unit tests for pvr-video libraries.

%package devel
Summary:    Development package for pvr driver
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Provides:   libEGL.so
Provides:   libGLESv1_CM.so
Provides:   libGLESv2.so
Provides:   libOpenVG.so
Conflicts:  mesa-libEGL-devel mesa-libGLESv1-devel mesa-libGLESv2-devel mesa-libOpenVG-devel

%description devel
pvr-bin development package


%prep
%setup -c
%setup -T -D -a 1
%setup -T -D -a 2
cp %{SOURCE10} .


%build


%install
rm -rf %{buildroot}
install -d %{buildroot}
cp -arv  %{name}-%{version}/* %{buildroot}/
cp -arv  %{name}-tests-%{version}-%{targetarch}/* %{buildroot}/
cp -arv  %{name}-devel-%{version}-%{targetarch}/* %{buildroot}/

# create lists of files
find %{name}-%{version} -type f -o -type l | \
    sed s'![^/]*!!' > files.list
# add config macro in front of config files
sed -i s'!^\(/etc*\)!%config \1!' files.list
sed -i s'!^\(/opt/etc*\)!%config \1!' files.list

find %{name}-tests-%{version}-%{targetarch} -type f -o -type l | \
    sed s'![^/]*!!' > files-tests.list

find %{name}-devel-%{version}-%{targetarch} -type f -o -type l | \
    sed s'![^/]*!!' > files-devel.list


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files -f files.list
%defattr(-,root,root,-)

%files tests -f files-tests.list
%defattr(-,root,root,-)

%files devel -f files-devel.list
%defattr(-,root,root,-)


%clean
rm -rf %{buildroot}