From 85948b0154336c52858dbb8ddeeee366bc401745 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Tue, 12 Jun 2012 15:41:31 -0700 Subject: [PATCH] Add packaging files for Tizen --- packaging/libdrm.changes | 5 +++ packaging/libdrm.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 packaging/libdrm.changes create mode 100644 packaging/libdrm.spec diff --git a/packaging/libdrm.changes b/packaging/libdrm.changes new file mode 100644 index 0000000..830ba3f --- /dev/null +++ b/packaging/libdrm.changes @@ -0,0 +1,5 @@ +* Tue Jun 12 2012 Rusty Lynch - 2.4.34-3-gc563db0 +- Updating to new git master snapshot + +* Fri May 04 2012 Lin Yang +- test release infrastructure diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec new file mode 100644 index 0000000..44c7017 --- /dev/null +++ b/packaging/libdrm.spec @@ -0,0 +1,96 @@ +Name: libdrm +Summary: Userspace interface to kernel DRM services -- runtime +Version: 2.4.34+3+gc563db0 +Release: 1 +Group: libs +License: MIT +Source0: libdrm-%{version}.tar.bz2 +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(pthread-stubs) +BuildRequires: pkgconfig(pciaccess) +BuildRequires: automake +BuildRequires: libtool + + +%description +Userspace interface to kernel DRM services -- runtime + This library implements the userspace interface to the kernel DRM + services. DRM stands for "Direct Rendering Manager", which is the + kernelspace portion of the "Direct Rendering Infrastructure" (DRI). + The DRI is currently used on Linux to provide hardware-accelerated + OpenGL drivers. + . + This package provides the runtime environment for libdrm.. + + + +%package devel +Summary: Userspace interface to kernel DRM services -- development files +Group: libdevel +Requires: libdrm = %{version}-%{release} +Obsoletes: linux-libc-dev >= 2.6.29 + +%description devel +Userspace interface to kernel DRM services -- development files + This library implements the userspace interface to the kernel DRM + services. DRM stands for "Direct Rendering Manager", which is the + kernelspace portion of the "Direct Rendering Infrastructure" (DRI). + The DRI is currently used on Linux to provide hardware-accelerated + OpenGL drivers. + . + This package provides the development environment for libdrm.. + + +%package -n libkms +Summary: Userspace interface to kernel DRM buffer management +Group: libs +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description -n libkms +Userspace interface to kernel DRM buffer management + This library implements a unified userspace interface to the different buffer + management interfaces of the kernel DRM hardware drivers.. + +%prep +%setup -q -n %{name}-%{version} + +%build +%autogen --disable-static --enable-nouveau-experimental-api +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n libkms -p /sbin/ldconfig + +%postun -n libkms -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/libdrm.so.* +%{_libdir}/libdrm_intel.so.* +%{_libdir}/libdrm_radeon.so.* +%{_libdir}/libdrm_nouveau.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/libdrm/* +%{_includedir}/xf86drmMode.h +%{_includedir}/xf86drm.h +%{_includedir}/libkms/* + +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/* + +%files -n libkms +%defattr(-,root,root,-) +%{_libdir}/libkms.so.* + -- 2.7.4