summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-13 07:03:45 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-02-11 08:01:24 -0800
commitaef270ee6488bea9666e124c1be014dcd4ff539a (patch)
tree9b319672a434eef75c691dd15802adc3e5b7d487
parent183b5f20b59c83f57967b41d1e3a90c073e8df76 (diff)
downloadlibdrm-aef270ee6488bea9666e124c1be014dcd4ff539a.tar.gz
libdrm-aef270ee6488bea9666e124c1be014dcd4ff539a.tar.bz2
libdrm-aef270ee6488bea9666e124c1be014dcd4ff539a.zip
add packaging
-rw-r--r--packaging/libdrm.manifest5
-rw-r--r--packaging/libdrm.spec122
2 files changed, 127 insertions, 0 deletions
diff --git a/packaging/libdrm.manifest b/packaging/libdrm.manifest
new file mode 100644
index 00000000..017d22d3
--- /dev/null
+++ b/packaging/libdrm.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec
new file mode 100644
index 00000000..2db4f0e4
--- /dev/null
+++ b/packaging/libdrm.spec
@@ -0,0 +1,122 @@
+Name: libdrm
+Version: 2.4.39
+Release: 4
+License: MIT
+Summary: Userspace interface to kernel DRM services
+Group: System/Libraries
+Source0: %{name}-%{version}.tar.bz2
+Source1001: libdrm.manifest
+BuildRequires: kernel-headers
+BuildRequires: pkgconfig(pciaccess)
+BuildRequires: pkgconfig(pthread-stubs)
+BuildRequires: pkgconfig(xorg-macros)
+
+%description
+Description: %{summary}
+
+%package devel
+Summary: Userspace interface to kernel DRM services
+Group: Development/Libraries
+Requires: kernel-headers
+Requires: libdrm
+Requires: libdrm-intel
+%if 0%{?enable_slp}
+Requires: libdrm-slp
+%endif
+Requires: libkms
+
+%description devel
+Userspace interface to kernel DRM services
+%if 0%{?enable_slp}
+%package slp
+Summary: Userspace interface to slp-specific kernel DRM services
+Group: Development/Libraries
+
+%description slp
+Userspace interface to slp-specific kernel DRM services
+%endif
+
+%package -n libkms
+Summary: Userspace interface to kernel DRM buffer management
+Group: Development/Libraries
+
+%description -n libkms
+Userspace interface to kernel DRM buffer management
+
+%package intel
+Summary: Userspace interface to intel graphics kernel DRM buffer management
+Group: Development/Libraries
+
+%description intel
+Userspace interface to intel graphics kernel DRM buffer management
+
+%prep
+%setup -q
+
+
+%build
+cp %{SOURCE1001} .
+%reconfigure \
+ --enable-static=yes \
+ --enable-udev \
+ --enable-libkms \
+ --disable-nouveau-experimental-api \
+ --disable-radeon \
+ --disable-nouveau \
+ --enable-exynos-experimental-api
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%if 0%{?enable_slp}
+%post slp -p /sbin/ldconfig
+
+%postun slp -p /sbin/ldconfig
+%endif
+
+%post -n libkms -p /sbin/ldconfig
+
+%postun -n libkms -p /sbin/ldconfig
+
+%post intel -p /sbin/ldconfig
+
+%postun intel -p /sbin/ldconfig
+
+%files
+%manifest libdrm.manifest
+%{_libdir}/libdrm.so.*
+%{_libdir}/libdrm_exynos.so.*
+
+%files devel
+%manifest libdrm.manifest
+%{_includedir}/*
+%{_libdir}/libdrm.so
+%if 0%{?enable_slp}
+%{_libdir}/libdrm_slp.so
+%endif
+%{_libdir}/libdrm_intel.so
+%{_libdir}/libkms.so
+%{_libdir}/libdrm_exynos.so
+%{_libdir}/pkgconfig/*
+
+
+%if 0%{?enable_slp}
+%files slp
+%manifest libdrm.manifest
+%{_libdir}/libdrm_slp*.so.*
+%endif
+
+%files -n libkms
+%manifest libdrm.manifest
+%{_libdir}/libkms.so.*
+
+%files intel
+%manifest libdrm.manifest
+%{_libdir}/libdrm_intel.so.*