add packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 13 Nov 2012 15:03:45 +0000 (07:03 -0800)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 7 Dec 2022 09:02:02 +0000 (18:02 +0900)
do not install libdrm_intel on ARM

added baselibs for multi lib supporta for intel drm

Fixed package groups

Fixed groups, dependencies and rpmlint warnings

resetting manifest requested domain to floor

Remove dependency on xorg-macros

libdrm didn't use any macros from xorg-macros, so remove it.

Change-Id: I37cda1f7bc48a2d0f98c9a319c78f8dca6b0f90c
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
packaging: build using upstream tags

Change-Id: I1587634bfdd59172b7032cd968d0005261f1ad77
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
fixed arch check for libdrm-intel requires.
Currently we have invalid requires for libdrm-intel for non-arm and non-intel arches.

Change-Id: I19c90a272da284f63c6d862a2e67e94f110a2807
Signed-off-by: Andriy Prystupa <andriy.prystupa@globallogic.com>
packaging: add libdrm-tools

This patch adds libdrm-tools package which includes test utilities such
as modetest/modeprint.

Change-Id: Icc10b1c56625af7954823664156cfec8b7b57c3e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
clean spec file

 - allow build for yocto
 - improve rpmlint score

Change-Id: I1d563567b30914925e67fd3aebf3a6cc5e65026a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging: depend on the same release

Change-Id: I02c7ff42eb688c6a6b03532966f2a16daad8910f
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging: add tools-exynos for testing exynos_drm

This patch adds tools-exynos package to test exynos.

Change-Id: I8dbd821f056ac3f7e2a043a97d0c39bec7f75b40
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
remove manifest for security domain policy

Change-Id: I556117f4dca6c11e3477b3404244f5a8c17b1ede
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
Add manifest for security domain policy

Change-Id: I18f14262475041b2f1e919923907f998a8f12d87

packaging: Clean up kmstest

There is no reason to remove kmstest from package.

Change-Id: I772c21ca005f7edb23bb832a2ae3f8b3259d7a08
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Update to 2.4.75

Change-Id: I54ef37f9be4c03a7502b2e0cc8b93e46efe87a8a
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
packaging: notice license of libdrm package

This patch copies license file to /usr/share/licenses/libdrm/.
The licenses of all packages should be noticed when released.

Change-Id: I0224046d19ff73b44ec825c2b2327836e55b44c2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Update to 2.4.90 / Update to 2.4.97 / Update to 2.4.98 / Update to 2.4.100

Add drmdevice tool packaging.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
add COPYING file

Add COPYING file with MIT license.

Change-Id: I5ce242bea2bdd74f8c58d30da82e987eeb9a5c55
Signed-off-by: Boram Park <boram1288.park@samsung.com>
[sw0312.kim: replaces xf86free license as proper MIT license copying]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
packaging: spec: Fix to meson build system

Change-Id: Ib1b454a96750600cdcd7c76dbb87f7bde48f54c6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
package: Fix to enable intel api

Change-Id: I475f56afe71073174f867dc8d13d1d7121672481
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
[sw0312.kim: bump up to v2.4.109]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
.gbs.conf [new file with mode: 0644]
COPYING [new file with mode: 0644]
packaging/baselibs.conf [new file with mode: 0644]
packaging/libdrm.changes [new file with mode: 0644]
packaging/libdrm.manifest [new file with mode: 0644]
packaging/libdrm.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..1f2711a
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,4 @@
+[general]
+upstream_branch = upstream
+upstream_tag = libdrm-${upstreamversion}
+squash_patches_until = HEAD~5
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..a357eb0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,19 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is fur-
+nished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..e55015a
--- /dev/null
@@ -0,0 +1,2 @@
+libdrm
+libdrm-intel
diff --git a/packaging/libdrm.changes b/packaging/libdrm.changes
new file mode 100644 (file)
index 0000000..724d2a9
--- /dev/null
@@ -0,0 +1,15 @@
+* Wed Jun 26 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.181023@2f4c082
+- Fixed groups, dependencies and rpmlint warnings
+
+* Sun Mar 24 2013 Anas Nashif <anas.nashif@intel.com> libdrm-2.4.42@d72da55
+- Do not build slp module
+
+* Mon Mar 18 2013 Anas Nashif <anas.nashif@intel.com> submit/trunk/20130211.161736@3627b63
+- Fixed package groups
+
+* Mon Feb 11 2013 Anas Nashif <anas.nashif@intel.com> submit/trunk/20130211.160627@4aa3f86
+- readd baselibs.conf
+
+* Mon Feb 11 2013 Anas Nashif <anas.nashif@intel.com> libdrm-2.4.42@ade64c1
+- Update to 2.4.42
+
diff --git a/packaging/libdrm.manifest b/packaging/libdrm.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec
new file mode 100644 (file)
index 0000000..f2d7013
--- /dev/null
@@ -0,0 +1,155 @@
+Name:           libdrm
+Version:        2.4.109
+Release:        0
+License:        MIT
+Url:            http://cgit.freedesktop.org/mesa/drm
+Summary:        Userspace interface to kernel DRM services
+Group:          Graphics & UI Framework/Libraries
+Source0:        %{name}-%{version}.tar.bz2
+Source1001:            %name.manifest
+
+BuildRequires:  kernel-headers
+BuildRequires:  pkgconfig(pciaccess)
+BuildRequires:  meson
+BuildRequires:  python3
+
+%description
+Direct Rendering Manager headers and kernel modules.
+
+%package tools
+Summary:        Diagnostic utilities for DRI and DRM
+Group:          Graphics & UI Framework/Utilities
+Obsoletes:      libdrm < %version-%release
+Provides:       libdrm = %version-%release
+
+%description tools
+Diagnoistic tools to run a test for DRI and DRM
+
+%package tools-exynos
+Summary:       Diagnostic utilities for exynos
+Group:          Graphics & UI Framework/Utilities
+
+%description tools-exynos
+Diagnoistic tools to run a test for exynos
+
+%package devel
+Summary:        Userspace interface to kernel DRM services
+Requires:       kernel-headers
+Requires:       libdrm = %{version}-%{release}
+%ifarch i586 i686 %ix86 x86_64
+Requires:       libdrm-intel = %{version}-%{release}
+%endif
+Requires:       libkms = %{version}-%{release}
+
+%description devel
+Direct Rendering Manager headers and kernel modules.
+
+Development related files.
+
+%package -n libkms
+Summary:        Userspace interface to kernel DRM buffer management
+
+%description -n libkms
+Userspace interface to kernel DRM buffer management files
+
+%package intel
+Summary:        Userspace interface to intel graphics kernel DRM buffer management
+
+%description intel
+Userspace interface to intel graphics kernel DRM buffer management files
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS+=" -fPIE -Wno-format-truncation"
+meson setup --prefix /usr --libdir %{_libdir} \
+       -Dudev=true \
+       -Dlibkms=true \
+       -Dradeon=false \
+       -Damdgpu=false \
+       -Dnouveau=false \
+       -Dfreedreno=false \
+%ifarch i586 i686 %ix86 x86_64
+       -Dintel=true \
+%endif
+       -Dexynos=true \
+       -Dinstall-test-programs=true \
+       -Dcairo-tests=false \
+       -Db_pie=true \
+       builddir
+
+ninja -C builddir all
+
+%install
+export DESTDIR=%{buildroot}
+ninja -C builddir install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post -n libkms -p /sbin/ldconfig
+
+%postun -n libkms -p /sbin/ldconfig
+
+%post intel -p /sbin/ldconfig
+
+%postun intel -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{_libdir}/libdrm.so.*
+%{_libdir}/libdrm_exynos.so.*
+
+%files tools
+%manifest %{name}.manifest
+%{_bindir}/drmdevice
+%{_bindir}/kms-steal-crtc
+%{_bindir}/kms-universal-planes
+%{_bindir}/kmstest
+%{_bindir}/modeprint
+%{_bindir}/modetest
+%{_bindir}/proptest
+%{_bindir}/vbltest
+
+%files tools-exynos
+%manifest %{name}.manifest
+%{_bindir}/exynos_fimg2d_event
+%{_bindir}/exynos_fimg2d_perf
+%{_bindir}/exynos_fimg2d_test
+
+%files devel
+%manifest %{name}.manifest
+%dir %{_includedir}/libdrm
+%{_includedir}/libdrm/*.h
+%dir %{_includedir}/libkms
+%{_includedir}/libkms/*.h
+%dir %{_includedir}/exynos
+%{_includedir}/exynos/*.h
+%{_includedir}/*.h
+%{_libdir}/libdrm.so
+%{_libdir}/pkgconfig/libdrm.pc
+%ifarch i586 i686 %ix86 x86_64
+%{_libdir}/libdrm_intel.so
+%{_libdir}/pkgconfig/libdrm_intel.pc
+%endif
+%{_libdir}/libkms.so
+%{_libdir}/pkgconfig/libkms.pc
+%ifarch %{arm} aarch64
+%{_libdir}/pkgconfig/libdrm_vc4.pc
+%endif
+%{_libdir}/libdrm_exynos.so
+%{_libdir}/pkgconfig/libdrm_exynos.pc
+
+%files -n libkms
+%manifest %{name}.manifest
+%{_libdir}/libkms.so.*
+
+%ifarch i586 i686 %ix86 x86_64
+%files intel
+%manifest %{name}.manifest
+%{_libdir}/libdrm_intel.so.*
+%endif