libdrm-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Direct Rendering Manager runtime library
  3. Summary(ja): Direct Rendering Manager ランタイムライブラリ
  4. Name: libdrm
  5. Version: 2.4.69
  6. Release: 1%{?_dist_release}
  7. License: MIT
  8. Group: System Environment/Libraries
  9. URL: http://dri.sourceforge.net
  10. Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
  11. Source2: 91-drm-modeset.rules
  12. Patch3: libdrm-make-dri-perms-okay.patch
  13. Patch5: libdrm-2.4.65-check-programs.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildRequires: pkgconfig
  16. BuildRequires: libxcb-devel >= 1.9-2
  17. BuildRequires: libpciaccess-devel
  18. BuildRequires: eudev-libudev-devel
  19. BuildRequires: kernel-headers >= 2.6.27-1
  20. BuildRequires: automake autoconf libtool
  21. BuildRequires: xorg-x11-util-macros
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: daisuke
  25. %description
  26. Direct Rendering Manager runtime library
  27. %package devel
  28. Summary: Direct Rendering Manager development package
  29. Summary(ja): Direct Rendering Manager 開発パッケージ
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: kernel-headers >= 2.6.27-7
  33. %description devel
  34. Direct Rendering Manager development package
  35. %package -n drm-utils
  36. Summary: Direct Rendering Manager utilities
  37. Summary(ja): Direct Rendering Manager ユーティリティ
  38. Group: Development/Tools
  39. %description -n drm-utils
  40. Utility programs for the kernel DRM interface. Will void your warranty.
  41. # compat32
  42. %package -n compat32-%{name}
  43. Summary: Direct Rendering Manager runtime library
  44. Summary(ja): Direct Rendering Manager ランタイムライブラリ
  45. Group: System Environment/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. %description -n compat32-%{name}
  48. Direct Rendering Manager runtime library
  49. %package -n compat32-%{name}-devel
  50. Summary: Direct Rendering Manager development package
  51. Summary(ja): Direct Rendering Manager 開発パッケージ
  52. Group: Development/Libraries
  53. Requires: compat32-%{name} = %{version}-%{release}
  54. Requires: %{name}-devel = %{version}-%{release}
  55. %description -n compat32-%{name}-devel
  56. Direct Rendering Manager development package
  57. %prep
  58. %setup -q
  59. %patch3 -p1 -b .forceperms
  60. %patch5 -p1 -b .check-program
  61. %build
  62. autoreconf -v --install || exit 1
  63. %configure \
  64. --enable-udev \
  65. %ifarch %{ix86} x86_64 ia64
  66. --enable-intel \
  67. %endif
  68. %ifarch %{arm}
  69. --enable-omap-experimental-api \
  70. --enable-exynos-experimental-api \
  71. %endif
  72. --enable-radeon \
  73. --enable-nouveau \
  74. --enable-vmwgfx
  75. make %{?smp_mflags}
  76. pushd tests
  77. make %{?smp_mflags} $(make check-programs)
  78. popd
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. make install DESTDIR=$RPM_BUILD_ROOT
  82. pushd tests
  83. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  84. for foo in $(make check-programs) ; do
  85. install -m 0755 $foo $RPM_BUILD_ROOT%{_bindir}
  86. done
  87. popd
  88. mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
  89. install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/
  90. # NOTE: We intentionally don't ship *.la files
  91. find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || :
  92. for i in r300_reg.h via_3d_reg.h
  93. do
  94. rm -f $RPM_BUILD_ROOT/usr/include/libdrm/$i
  95. done
  96. %clean
  97. rm -rf $RPM_BUILD_ROOT
  98. %post -p /sbin/ldconfig
  99. %postun -p /sbin/ldconfig
  100. %post -n compat32-%{name} -p /sbin/ldconfig
  101. %postun -n compat32-%{name} -p /sbin/ldconfig
  102. %files
  103. %defattr(-,root,root,-)
  104. %doc README
  105. %{_libdir}/libdrm.so.*
  106. %ifarch %{ix86} x86_64 ia64
  107. %{_libdir}/libdrm_intel.so.*
  108. %endif
  109. %ifarch %{arm}
  110. %{_libdir}/libdrm_exynos.so.*
  111. %{_libdir}/libdrm_omap.so.*
  112. %endif
  113. %{_libdir}/libdrm_amdgpu.so.*
  114. %{_libdir}/libdrm_radeon.so.*
  115. %{_libdir}/libdrm_nouveau.so.*
  116. %{_libdir}/libkms.so.*
  117. /lib/udev/rules.d/91-drm-modeset.rules
  118. %files -n drm-utils
  119. %defattr(-,root,root,-)
  120. %{_bindir}/dristat
  121. %{_bindir}/drmdevice
  122. %{_bindir}/drmstat
  123. %{_bindir}/getclient
  124. %{_bindir}/getstats
  125. %{_bindir}/getversion
  126. %{_bindir}/name_from_fd
  127. %{_bindir}/openclose
  128. %{_bindir}/setversion
  129. %{_bindir}/updatedraw
  130. %exclude %{_bindir}/drmsl
  131. %exclude %{_bindir}/hash
  132. %exclude %{_bindir}/random
  133. %files devel
  134. %defattr(-,root,root,-)
  135. %{_includedir}/xf86drm.h
  136. %{_includedir}/xf86drmMode.h
  137. %dir %{_includedir}/libdrm
  138. %{_includedir}/libdrm/amdgpu.h
  139. %{_includedir}/libdrm/drm.h
  140. %{_includedir}/libdrm/drm_fourcc.h
  141. %{_includedir}/libdrm/drm_mode.h
  142. %{_includedir}/libdrm/drm_sarea.h
  143. %ifarch %{ix86} x86_64 ia64
  144. %{_includedir}/libdrm/intel_aub.h
  145. %{_includedir}/libdrm/intel_bufmgr.h
  146. %{_includedir}/libdrm/intel_debug.h
  147. %endif
  148. %ifarch %{arm}
  149. %{_includedir}/libdrm/exynos_drmif.h
  150. %{_includedir}/exynos/
  151. %{_includedir}/libdrm/omap_drmif.h
  152. %{_includedir}/omap/
  153. %endif
  154. %{_includedir}/libdrm/r600_pci_ids.h
  155. %{_includedir}/libdrm/radeon_bo*.h
  156. %{_includedir}/libdrm/radeon_cs*.h
  157. %{_includedir}/libdrm/radeon_surface.h
  158. %{_includedir}/libdrm/nouveau
  159. %{_includedir}/libdrm/*_drm.h
  160. %dir %{_includedir}/libkms
  161. %{_includedir}/libkms/libkms.h
  162. %{_libdir}/libdrm.so
  163. %ifarch %{ix86} x86_64 ia64
  164. %{_libdir}/libdrm_intel.so
  165. %endif
  166. %ifarch %{arm}
  167. %{_libdir}/libdrm_exynos.so
  168. %{_libdir}/libdrm_omap.so
  169. %endif
  170. %{_libdir}/libdrm_amdgpu.so
  171. %{_libdir}/libdrm_radeon.so
  172. %{_libdir}/libdrm_nouveau.so
  173. %{_libdir}/libkms.so
  174. %{_libdir}/pkgconfig/libdrm.pc
  175. %ifarch %{ix86} x86_64 ia64
  176. %{_libdir}/pkgconfig/libdrm_intel.pc
  177. %endif
  178. %ifarch %{arm}
  179. %{_libdir}/pkgconfig/libdrm_exynos.pc
  180. %{_libdir}/pkgconfig/libdrm_omap.pc
  181. %endif
  182. %{_libdir}/pkgconfig/libdrm_amdgpu.pc
  183. %{_libdir}/pkgconfig/libdrm_radeon.pc
  184. %{_libdir}/pkgconfig/libdrm_nouveau.pc
  185. %{_libdir}/pkgconfig/libkms.pc
  186. #%{_mandir}/man3/drm*.3*
  187. # compat32
  188. %if %{build_compat32}
  189. %files -n compat32-%{name}
  190. %defattr(-,root,root,-)
  191. %{_libdir}/libdrm.so.*
  192. %{_libdir}/libdrm_intel.so.*
  193. %{_libdir}/libdrm_amdgpu.so.*
  194. %{_libdir}/libdrm_radeon.so.*
  195. %{_libdir}/libdrm_nouveau.so.*
  196. %{_libdir}/libkms.so.*
  197. %files -n compat32-%{name}-devel
  198. %defattr(-,root,root,-)
  199. %{_libdir}/libdrm.so
  200. %{_libdir}/libdrm_intel.so
  201. %{_libdir}/libdrm_amdgpu.so
  202. %{_libdir}/libdrm_radeon.so
  203. %{_libdir}/libdrm_nouveau.so
  204. %{_libdir}/libkms.so
  205. %endif
  206. %changelog
  207. * Sat Jul 23 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.69-1
  208. - update to 2.4.69
  209. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.58-1
  210. - update to 2.4.58
  211. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-2
  212. - change BuildRequies: eudev-libudev-devel instead of libudev-devel
  213. - remove BuildRequires: libatomic_ops-devel
  214. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-1
  215. - update to 2.4.54
  216. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.50-1
  217. - update to 2.4.50
  218. * Mon Oct 28 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.46-1
  219. - update to 2.4.46
  220. * Wed May 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.44-1
  221. - update to 2.4.44
  222. * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.40-1
  223. - update to 2.4.40
  224. - enable exynos and omap on arm arch.
  225. - add drm/dri check programs as new subpackage
  226. - move udev rule to /lib/udev/rules.d
  227. * Mon Jul 09 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.33-2
  228. - update 91-drm-modeset.rules
  229. - add /dev/dri/card* rules (again...)
  230. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.33-1
  231. - new upstream release
  232. * Sun Mar 25 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.32-1
  233. - new upstream release
  234. - update Patch10 (libdrm-2.4.32-no-pthread-stubs.patch)
  235. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.31-1
  236. - new upstream release
  237. * Sun Jan 29 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.30-1
  238. - new upstream release
  239. - update Patch10 (libdrm-2.4.30-no-pthread-stubs.patch)
  240. * Fri Dec 16 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.29-1
  241. - new upstream release
  242. * Tue Nov 01 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.27-1
  243. - new upstream release
  244. * Sat Jul 09 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.26-1
  245. - new upstream release
  246. - add BuildRequires: libpciaccess-devel
  247. - change BuildRequires: libudev-devel instead of udev
  248. - update Patch10
  249. * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-2
  250. - add patch5 to build libkms with in-tree libdrm
  251. - add --enable-vmwgfx-experimental-api
  252. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-1
  253. - new upstream release
  254. * Sun Mar 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.24-2
  255. - fix %%files devel (add %%{_includedir}/nouveau/nvc0_pushbuf.h)
  256. * Sun Mar 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.24-1
  257. - new upstream release
  258. * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.23-1
  259. - new upstream release
  260. * Thu Nov 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.22-1
  261. - new upstream release
  262. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2
  263. - rebuild with rpm-4.8.1 for pkg-config file
  264. * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
  265. - new upstream release
  266. * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1
  267. - new upstream release
  268. - move include files to new location which are not conflict with kernel.
  269. * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2
  270. - add libkms
  271. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1
  272. - new upstream release
  273. * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1
  274. - new upstream release
  275. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1
  276. - new upstream release
  277. * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1
  278. - new upstream release
  279. - drop Patch5
  280. - add BR: libatomic_ops-devel
  281. * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2
  282. - ad Patch5, pull in intel bo busy.
  283. * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1
  284. - new upstream release
  285. - drop upstream patch
  286. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4
  287. - added compat32 package for x86_64 arch support
  288. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3
  289. - add /dev/dri/card* rule to 91-drm-modeset.rules
  290. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2
  291. - build libdrm_nouveau
  292. - add Patch9 to update nouveau code
  293. - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/
  294. - remove i915modeset
  295. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1
  296. - new upstream release
  297. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1
  298. - new upstream release
  299. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
  300. - new upstream release
  301. * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1
  302. - new upstream release
  303. * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4
  304. - remove kernel header files from -devel package.
  305. - add BR: kernel-headers >= 2.6.27-1
  306. - add Requires; kernel-headers >= 2.6.27-1 to -devel package
  307. * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3
  308. - update to libdrm-2.4.0 release
  309. * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303
  310. - update to new git snapshot
  311. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
  312. - new versioning policy
  313. * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1
  314. - update to upstream snapshot
  315. * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
  316. - new upstream release
  317. * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  318. - initial build for Vine Linux partially based on FC package
  319. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2
  320. - bump again for double-long bug on ppc(64)
  321. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1
  322. - rebuilt for new gcc4.1 snapshot and glibc changes
  323. * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2
  324. - Replaced the temporary tongue-in-cheek humourous package summary and
  325. description with the proper package descriptions, as many people didn't get
  326. the joke, while others felt it was getting old. Ah well, I had my fun for
  327. a while anyway. ;o)
  328. * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1
  329. - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible
  330. release, meaning everything linked to it needs to be recompiled.
  331. * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1
  332. - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around
  333. mesa unichrome dri driver compile failure.
  334. * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1
  335. - Updated libdrm to version 1.0.4 from X11R7 RC1
  336. - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h,
  337. r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h,
  338. via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest.
  339. * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3
  340. - Update BuildRoot to use Fedora Packaging Guidelines.
  341. - Add missing "BuildRequires: libX11-devel, pkgconfig"
  342. * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2
  343. - Add missing documentation to doc macro
  344. - Fix spec file project URL
  345. * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1
  346. - Initial build.