libdrm-vl.spec 13 KB

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