summaryrefslogtreecommitdiff
path: root/packaging/libdrm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libdrm.spec')
-rw-r--r--packaging/libdrm.spec122
1 files changed, 122 insertions, 0 deletions
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.*