diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-13 07:03:45 -0800 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-10-15 11:59:21 +0800 |
commit | 0e39a91704b29f15b102b039cefda0fec4122406 (patch) | |
tree | c6145284d6f3dba75fe7803a4de7e303be13da6b | |
parent | 7068d987f4dc1260a948f2b4782c66d3d80e9978 (diff) | |
download | libdrm-0e39a91704b29f15b102b039cefda0fec4122406.tar.gz libdrm-0e39a91704b29f15b102b039cefda0fec4122406.tar.bz2 libdrm-0e39a91704b29f15b102b039cefda0fec4122406.zip |
add packaging
-rw-r--r-- | packaging/libdrm.manifest | 5 | ||||
-rw-r--r-- | packaging/libdrm.spec | 122 |
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.* |