diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-13 07:03:45 -0800 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-02-14 11:54:01 +0800 |
commit | 7636e624af711ca4544a2ecc0be8573c2e7061dd (patch) | |
tree | e95ba0118a99886b65532d9304f8a3cd8e269fdf | |
parent | 46d451c9a9514df9de01df647a3f397c5b5d7d1a (diff) | |
download | libdrm-7636e624af711ca4544a2ecc0be8573c2e7061dd.tar.gz libdrm-7636e624af711ca4544a2ecc0be8573c2e7061dd.tar.bz2 libdrm-7636e624af711ca4544a2ecc0be8573c2e7061dd.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.* |