3 %bcond_with static_libs # static library
5 %define libva_ver 1.2.0
7 Summary: C for Media Runtime - Media GPU kernel manager for Intel G45 & HD Graphics family
8 Summary(pl.UTF-8): C for Media Runtime - zarządca jądra multimedialnego GPU dla układów z rodzin Intel G45 i HD
14 #Source0Download: https://github.com/intel/cmrt/releases
15 Source0: https://github.com/intel/cmrt/archive/%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 91f5845c9354cce44a5133337f4e881c
17 URL: https://github.com/intel/cmrt
18 BuildRequires: autoconf >= 2.57
19 BuildRequires: automake
20 BuildRequires: libdrm-devel >= 2.4.23
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 BuildRequires: libva-devel >= %{libva_ver}
24 BuildRequires: pkgconfig
25 BuildRequires: pkgconfig(libva) >= 0.34
26 Requires: libdrm >= 2.4.23
27 Requires: libva >= %{libva_ver}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 C for Media Runtime - Media GPU kernel manager for Intel G45 & HD
34 %description -l pl.UTF-8
35 C for Media Runtime - zarządca jądra multimedialnego GPU dla układów z
36 rodzin Intel G45 i HD.
39 Summary: Online compiler to convert VirtualISA into Gen HW instructions
40 Summary(pl.UTF-8): Kompilator w locie reprezentacji VirtualISA na instrukcje Gen HW
41 License: distributable, non-free, closed source
42 Requires: %{name} = %{version}-%{release}
43 Requires: libstdc++ >= 6:4.8
46 Jitter (igfxcmjit32.so or igfxcmjit64.so) is an online compiler to
47 convert VirtualISA into Gen HW instruction, while VirtualISA is an
48 intermediate representation between CM source code and HW instruction.
50 %description jitter -l pl.UTF-8
51 Jitter (igfxcmjit32.so lub igfxcmjit64.so) to działający w locie
52 kompilator przekształcający reprezentację VirtualISA na instrukcje Gen
53 HW. VirtualISA to reprezentacja pośrednia między kodem źródłowym CM a
54 instrukcjami sprzętowymi.
57 Summary: Header files for CMRT library
58 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMRT
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 Header files for CMRT library.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki CMRT.
69 Summary: Static CMRT library
70 Summary(pl.UTF-8): Statyczna biblioteka CMRT
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
77 %description static -l pl.UTF-8
78 Statyczna biblioteka CMRT.
90 --disable-silent-rules \
91 %{?with_static_libs:--enable-static}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
101 install jitter/igfxcmjit32.so $RPM_BUILD_ROOT%{_libdir}
104 install jitter/igfxcmjit64.so $RPM_BUILD_ROOT%{_libdir}
107 # obsoleted by pkg-config
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcmrt.la
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING NEWS README
119 %attr(755,root,root) %{_libdir}/libcmrt.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libcmrt.so.1
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cmrt.conf
123 %ifarch %{ix86} %{x8664}
125 %defattr(644,root,root,755)
126 %doc jitter/{LICENSE,readme}.txt
128 %attr(755,root,root) %{_libdir}/igfxcmjit32.so
131 %attr(755,root,root) %{_libdir}/igfxcmjit64.so
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libcmrt.so
138 %{_includedir}/cm_rt*.h
139 %{_pkgconfigdir}/libcmrt.pc
141 %if %{with static_libs}
143 %defattr(644,root,root,755)