diff options
author | Ronan Le Martret <ronan@fridu.net> | 2014-10-09 10:53:15 +0200 |
---|---|---|
committer | ronan(Eurogiciel) Le Martret <ronan.lemartret@open.eurogiciel.org> | 2014-12-03 07:11:39 -0800 |
commit | 9a7c9774e50e9e8073f145a1063f4eb12c561313 (patch) | |
tree | 17f18d99c9617c0125ff2da0eb8d4e736b57335c | |
parent | d858fe8bf6d901c6b563c0b8e3f510abf3430493 (diff) | |
download | libdrm-9a7c9774e50e9e8073f145a1063f4eb12c561313.tar.gz libdrm-9a7c9774e50e9e8073f145a1063f4eb12c561313.tar.bz2 libdrm-9a7c9774e50e9e8073f145a1063f4eb12c561313.zip |
clean spec file
- allow build for yocto
- improve rpmlint score
Change-Id: I1d563567b30914925e67fd3aebf3a6cc5e65026a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
-rw-r--r-- | packaging/libdrm.spec | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec index 416afb67..5dc3dbd4 100644 --- a/packaging/libdrm.spec +++ b/packaging/libdrm.spec @@ -7,6 +7,7 @@ Summary: Userspace interface to kernel DRM services Group: Graphics & UI Framework/Libraries Source0: %{name}-%{version}.tar.bz2 Source1001: libdrm.manifest + BuildRequires: kernel-headers BuildRequires: pkgconfig(pciaccess) BuildRequires: pkgconfig(pthread-stubs) @@ -15,7 +16,7 @@ BuildRequires: pkgconfig(pthread-stubs) Direct Rendering Manager headers and kernel modules. %package tools -Summary: Diagnostic utilities for DRI and DRM +Summary: Diagnostic utilities for DRI and DRM Group: Graphics & UI Framework/Utilities Obsoletes: libdrm < %version-%release Provides: libdrm = %version-%release @@ -48,20 +49,19 @@ Development related files. Summary: Userspace interface to kernel DRM buffer management %description -n libkms -Userspace interface to kernel DRM buffer management +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 +Userspace interface to intel graphics kernel DRM buffer management files %prep %setup -q - +cp %{SOURCE1001} . %build -cp %{SOURCE1001} . %reconfigure \ --enable-static=yes \ --enable-udev \ @@ -72,17 +72,21 @@ cp %{SOURCE1001} . --disable-radeon \ --disable-nouveau \ --enable-exynos-experimental-api \ - --enable-install-test-programs + --enable-install-test-programs \ + --disable-cairo-tests -make %{?_smp_mflags} -make %{?_smp_mflags} -C tests dristat drmstat +%__make %{?_smp_mflags} +%__make %{?_smp_mflags} -C tests dristat drmstat %install %make_install -%{__mkdir} -p $RPM_BUILD_ROOT/usr/bin +%{__mkdir} -p %{buildroot}%{_bindir} %{__install} \ - tests/.libs/dristat \ - tests/.libs/drmstat $RPM_BUILD_ROOT/usr/bin + tests/.libs/dristat \ + tests/.libs/drmstat \ + %{buildroot}%{_bindir} + +rm -f %{buildroot}%{_bindir}/kmstest %post -p /sbin/ldconfig @@ -104,11 +108,10 @@ make %{?_smp_mflags} -C tests dristat drmstat %files tools %manifest %{name}.manifest -%_bindir/dristat -%_bindir/drmstat -%_bindir/kmstest -%_bindir/modeprint -%_bindir/modetest +%{_bindir}/dristat +%{_bindir}/drmstat +%{_bindir}/modeprint +%{_bindir}/modetest %files tools-exynos %manifest %{name}.manifest @@ -134,7 +137,6 @@ make %{?_smp_mflags} -C tests dristat drmstat %{_libdir}/libdrm_vigs.so %{_libdir}/pkgconfig/* - %files -n libkms %manifest %{name}.manifest %{_libdir}/libkms.so.* |