summaryrefslogtreecommitdiff
path: root/packaging/pvr-bin-mdfld.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/pvr-bin-mdfld.spec')
-rw-r--r--packaging/pvr-bin-mdfld.spec86
1 files changed, 34 insertions, 52 deletions
diff --git a/packaging/pvr-bin-mdfld.spec b/packaging/pvr-bin-mdfld.spec
index 3f3f1ad..07f7014 100644
--- a/packaging/pvr-bin-mdfld.spec
+++ b/packaging/pvr-bin-mdfld.spec
@@ -1,84 +1,72 @@
%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
+%define binrelease 7
+
+Name: pvr-bin-mdfld
+Version: 1.7.17.296760.%{binrelease}
+Release: 1
+License: Intel Free Distribution Binary License
+Summary: Binary graphics driver and libraries from PowerVR
+Group: Development/Libraries
+Source0: %{name}-%{version}.tar.bz2
+Source10: license.txt
+Source100: pvr-bin-mdfld-rpmlintrc
+Requires: libwsbm
+Requires: pciutils
+Provides: libEGL.so.1
+Provides: libGLESv2.so.1
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
+Provides: libEGL.so
+Provides: libGLESv1_CM.so
+Provides: libGLESv2.so
%description
PowerVR graphics driver and runtime library.
%package tests
-Summary: Unit tests for pvr driver
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Summary: Unit tests for pvr driver
+Group: Development/Libraries
+Requires: %{name} = %{version}
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
+Summary: Development package for pvr driver
+Group: Development/Libraries
+Requires: %{name} = %{version}
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} .
+%setup -q -n %{name}-%{version}
+# HACK: need to move (linker) .so links from devel to the main package because
+# sonames are wrong in the libraries
+find devel/usr/lib/ -name '*.so' | xargs -I {} mv {} main/usr/lib/
%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}/
+cp -arv main/* %{buildroot}/
+cp -arv tests/* %{buildroot}/
+cp -arv devel/* %{buildroot}/
# create lists of files
-find %{name}-%{version} -type f -o -type l | \
+find main -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 | \
+find tests -type f -o -type l | \
sed s'![^/]*!!' > files-tests.list
-find %{name}-devel-%{version}-%{targetarch} -type f -o -type l | \
+find devel -type f -o -type l | \
sed s'![^/]*!!' > files-devel.list
@@ -88,15 +76,9 @@ find %{name}-devel-%{version}-%{targetarch} -type f -o -type l | \
%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}