]>
Commit | Line | Data |
---|---|---|
84a9c458 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without libunwind # libunwind support in tests | |
4 | # | |
b7023ad3 | 5 | %ifnarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh |
84a9c458 JB |
6 | %undefine with_libunwind |
7 | %endif | |
abff7bf2 | 8 | Summary: Tools for Intel DRM driver |
0ab01dd9 | 9 | Summary(pl.UTF-8): Narzędzia do sterownika Intel DRM |
abff7bf2 | 10 | Name: xorg-app-intel-gpu-tools |
c149d7e0 | 11 | Version: 1.20 |
a3bc999c | 12 | Release: 1 |
abff7bf2 AM |
13 | License: MIT |
14 | Group: X11/Applications | |
93f67908 | 15 | Source0: https://xorg.freedesktop.org/archive/individual/app/intel-gpu-tools-%{version}.tar.bz2 |
c149d7e0 | 16 | # Source0-md5: 3b77a6a23274afe363bd5c942fe42562 |
b7023ad3 | 17 | Patch1: %{name}-update.patch |
abff7bf2 | 18 | URL: http://intellinuxgraphics.org/ |
c149d7e0 | 19 | BuildRequires: alsa-lib-devel |
1e03682a | 20 | BuildRequires: autoconf >= 2.63 |
5d93ad57 | 21 | BuildRequires: automake >= 1:1.12 |
14df415a JB |
22 | BuildRequires: bison |
23 | BuildRequires: cairo-devel >= 1.12.0 | |
746ff741 JB |
24 | # rst2man |
25 | BuildRequires: docutils | |
dc2b5b9f | 26 | BuildRequires: flex |
1e03682a | 27 | BuildRequires: glib2-devel >= 2.0 |
b7023ad3 | 28 | %if %(locale -a | grep -q '^C\.UTF-8$'; echo $?) |
d5f454b6 JB |
29 | BuildRequires: glibc-localedb-all |
30 | %endif | |
c149d7e0 | 31 | BuildRequires: gsl-devel |
d5f454b6 | 32 | BuildRequires: gtk-doc >= 1.14 |
dc2b5b9f | 33 | BuildRequires: kmod-devel |
c149d7e0 | 34 | BuildRequires: libdrm-devel >= 2.4.82 |
1e03682a | 35 | BuildRequires: libtool >= 2:2.2 |
84a9c458 | 36 | %{?with_libunwind:BuildRequires: libunwind-devel} |
1df0d90e | 37 | BuildRequires: pixman-devel |
14df415a | 38 | BuildRequires: pkgconfig |
dc2b5b9f | 39 | BuildRequires: procps-devel >= 1:3.3 |
746ff741 | 40 | BuildRequires: python3-devel >= 1:3.0 |
14df415a JB |
41 | BuildRequires: sed >= 4.0 |
42 | BuildRequires: swig-python >= 2.0.0 | |
1e03682a | 43 | BuildRequires: udev-devel |
1df0d90e | 44 | BuildRequires: xmlrpc-c-client-devel |
14df415a JB |
45 | BuildRequires: xorg-lib-libX11-devel |
46 | BuildRequires: xorg-lib-libXext-devel | |
47 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 | |
48 | BuildRequires: xorg-lib-libXv-devel | |
0ab01dd9 | 49 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
d5f454b6 | 50 | BuildRequires: xorg-proto-dri2proto-devel >= 2.6 |
33877c01 | 51 | BuildRequires: xorg-util-util-macros >= 1.16 |
b8655ab3 | 52 | Requires: cairo >= 1.12.0 |
c149d7e0 | 53 | Requires: libdrm >= 2.4.82 |
b8655ab3 | 54 | Requires: xorg-lib-libXrandr >= 1.3 |
33877c01 | 55 | Requires: xorg-lib-libpciaccess >= 0.10 |
abff7bf2 AM |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
58 | %description | |
59 | This is a collection of tools for development and testing of the Intel | |
60 | DRM driver. | |
61 | ||
0ab01dd9 JB |
62 | %description -l pl.UTF-8 |
63 | Ten pakiet zawiera zestaw narzędzi do rozwijania i testowania | |
64 | sterownika Intel DRM. | |
65 | ||
abff7bf2 AM |
66 | %prep |
67 | %setup -q -n intel-gpu-tools-%{version} | |
b7023ad3 | 68 | %patch1 -p1 |
14df415a | 69 | |
abff7bf2 | 70 | %build |
1e03682a | 71 | %{__libtoolize} |
abff7bf2 AM |
72 | %{__aclocal} -I m4 |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
0ab01dd9 | 76 | %configure \ |
c149d7e0 JB |
77 | --enable-audio \ |
78 | --enable-chamellium \ | |
93f67908 | 79 | --enable-shader-debugger \ |
5d93ad57 | 80 | --disable-silent-rules \ |
84a9c458 JB |
81 | --with-html-dir=%{_gtkdocdir} \ |
82 | %{!?with_libunwind:--without-libunwind} | |
abff7bf2 | 83 | |
d5f454b6 | 84 | # python needs UTF-8 locale to read non-ascii debugger/system_routine/*.g4a files |
b7023ad3 | 85 | LC_ALL=C.UTF-8 \ |
abff7bf2 AM |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
2f1af703 | 94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/intel_aubdump.la |
14df415a | 95 | |
746ff741 JB |
96 | # tests |
97 | %{__rm} -r $RPM_BUILD_ROOT%{_libexecdir}/intel-gpu-tools \ | |
98 | $RPM_BUILD_ROOT%{_datadir}/intel-gpu-tools | |
99 | ||
abff7bf2 AM |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
630bf227 | 105 | %doc COPYING ChangeLog NEWS README |
a3bc999c | 106 | %attr(755,root,root) %{_bindir}/igt_stats |
ac02e969 JB |
107 | %attr(755,root,root) %{_bindir}/intel_* |
108 | %attr(755,root,root) %{_libdir}/intel_aubdump.so | |
109 | %ifarch %{ix86} %{x8664} x32 | |
110 | %attr(755,root,root) %{_bindir}/eudb | |
14df415a JB |
111 | %attr(755,root,root) %{_bindir}/intel-gen4asm |
112 | %attr(755,root,root) %{_bindir}/intel-gen4disasm | |
113 | %attr(755,root,root) %{_bindir}/intel-gpu-overlay | |
14df415a | 114 | %{_pkgconfigdir}/intel-gen4asm.pc |
ac02e969 | 115 | %endif |
5d93ad57 | 116 | %{_gtkdocdir}/intel-gpu-tools |
0ab01dd9 | 117 | %{_mandir}/man1/intel_*.1* |