libdrm-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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.116
  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. BuildRequires: cairo-devel
  24. %if %{defined _unitdir}
  25. BuildRequires: systemd-devel
  26. %else
  27. BuildRequires: eudev-libudev-devel
  28. %endif
  29. BuildRequires: kernel-headers >= 2.6.27-1
  30. BuildRequires: xorg-x11-util-macros
  31. %description
  32. Direct Rendering Manager runtime library
  33. %package devel
  34. Summary: Direct Rendering Manager development package
  35. Summary(ja): Direct Rendering Manager 開発パッケージ
  36. Group: programming
  37. Requires: %{name} = %{version}-%{release}
  38. Requires: kernel-headers >= 2.6.27-7
  39. %description devel
  40. Direct Rendering Manager development package
  41. %package -n drm-utils
  42. Summary: Direct Rendering Manager utilities
  43. Summary(ja): Direct Rendering Manager ユーティリティ
  44. Group: admin-tools
  45. %description -n drm-utils
  46. Utility programs for the kernel DRM interface. Will void your warranty.
  47. # compat32
  48. %package -n compat32-%{name}
  49. Summary: Direct Rendering Manager runtime library
  50. Summary(ja): Direct Rendering Manager ランタイムライブラリ
  51. Group: system,legacy
  52. Requires: %{name} = %{version}-%{release}
  53. %description -n compat32-%{name}
  54. Direct Rendering Manager runtime library
  55. %package -n compat32-%{name}-devel
  56. Summary: Direct Rendering Manager development package
  57. Summary(ja): Direct Rendering Manager 開発パッケージ
  58. Group: programming,legacy
  59. Requires: compat32-%{name} = %{version}-%{release}
  60. Requires: %{name}-devel = %{version}-%{release}
  61. %description -n compat32-%{name}-devel
  62. Direct Rendering Manager development package
  63. %debug_package
  64. %prep
  65. %setup -q
  66. %patch3 -p1 -b .forceperms
  67. %build
  68. %meson \
  69. -Dudev=true \
  70. -Dinstall-test-programs=true \
  71. %ifarch %{ix86} x86_64 ia64
  72. -Dintel=enabled \
  73. %endif
  74. -Damdgpu=enabled \
  75. -Dradeon=enabled \
  76. -Dnouveau=enabled \
  77. -Dvmwgfx=enabled \
  78. -Detnaviv=disabled \
  79. -Dfreedreno=disabled \
  80. -Dvc4=disabled \
  81. -Dvalgrind=disabled \
  82. -Dman-pages=disabled \
  83. %{nil}
  84. %meson_build
  85. %install
  86. rm -rf %{buildroot}
  87. %meson_install
  88. mkdir -p %{buildroot}/lib/udev/rules.d/
  89. install -m 0644 %{SOURCE2} %{buildroot}/lib/udev/rules.d/
  90. # NOTE: We intentionally don't ship *.la files
  91. find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
  92. for i in r300_reg.h via_3d_reg.h
  93. do
  94. rm -f %{buildroot}/usr/include/libdrm/$i
  95. done
  96. %clean
  97. rm -rf %{buildroot}
  98. %files
  99. %defattr(-,root,root,-)
  100. %doc README.rst
  101. %{_libdir}/libdrm.so.*
  102. %ifarch %{ix86} x86_64 ia64
  103. %{_libdir}/libdrm_intel.so.*
  104. %endif
  105. %ifarch %{arm}
  106. %{_libdir}/libdrm_exynos.so.*
  107. %{_libdir}/libdrm_omap.so.*
  108. %endif
  109. %{_libdir}/libdrm_amdgpu.so.*
  110. %{_libdir}/libdrm_radeon.so.*
  111. %{_libdir}/libdrm_nouveau.so.*
  112. %dir %{_datadir}/libdrm
  113. %{_datadir}/libdrm/amdgpu.ids
  114. /lib/udev/rules.d/91-drm-modeset.rules
  115. %files -n drm-utils
  116. %defattr(-,root,root,-)
  117. %{_bindir}/amdgpu_stress
  118. %{_bindir}/drmdevice
  119. %{_bindir}/modetest
  120. %{_bindir}/modeprint
  121. %{_bindir}/vbltest
  122. %exclude %{_bindir}/proptest
  123. %files devel
  124. %defattr(-,root,root,-)
  125. %{_includedir}/xf86drm.h
  126. %{_includedir}/xf86drmMode.h
  127. %dir %{_includedir}/libdrm
  128. %{_includedir}/libdrm/amdgpu.h
  129. %{_includedir}/libdrm/drm.h
  130. %{_includedir}/libdrm/drm_fourcc.h
  131. %{_includedir}/libdrm/drm_mode.h
  132. %{_includedir}/libdrm/drm_sarea.h
  133. %ifarch %{ix86} x86_64 ia64
  134. %{_includedir}/libdrm/intel_aub.h
  135. %{_includedir}/libdrm/intel_bufmgr.h
  136. %{_includedir}/libdrm/intel_debug.h
  137. %endif
  138. %ifarch %{arm}
  139. %{_includedir}/libdrm/exynos_drmif.h
  140. %{_includedir}/exynos/
  141. %{_includedir}/libdrm/omap_drmif.h
  142. %{_includedir}/omap/
  143. %endif
  144. %{_includedir}/libdrm/r600_pci_ids.h
  145. %{_includedir}/libdrm/radeon_bo*.h
  146. %{_includedir}/libdrm/radeon_cs*.h
  147. %{_includedir}/libdrm/radeon_surface.h
  148. %{_includedir}/libdrm/nouveau
  149. %{_includedir}/libdrm/*_drm.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}/pkgconfig/libdrm.pc
  163. %ifarch %{ix86} x86_64 ia64
  164. %{_libdir}/pkgconfig/libdrm_intel.pc
  165. %endif
  166. %ifarch %{arm}
  167. %{_libdir}/pkgconfig/libdrm_exynos.pc
  168. %{_libdir}/pkgconfig/libdrm_omap.pc
  169. %endif
  170. %{_libdir}/pkgconfig/libdrm_amdgpu.pc
  171. %{_libdir}/pkgconfig/libdrm_radeon.pc
  172. %{_libdir}/pkgconfig/libdrm_nouveau.pc
  173. #%{_mandir}/man3/drm*.3*
  174. # compat32
  175. %if %{build_compat32}
  176. %files -n compat32-%{name}
  177. %defattr(-,root,root,-)
  178. %{_libdir}/libdrm.so.*
  179. %{_libdir}/libdrm_intel.so.*
  180. %{_libdir}/libdrm_amdgpu.so.*
  181. %{_libdir}/libdrm_radeon.so.*
  182. %{_libdir}/libdrm_nouveau.so.*
  183. %files -n compat32-%{name}-devel
  184. %defattr(-,root,root,-)
  185. %{_libdir}/libdrm.so
  186. %{_libdir}/libdrm_intel.so
  187. %{_libdir}/libdrm_amdgpu.so
  188. %{_libdir}/libdrm_radeon.so
  189. %{_libdir}/libdrm_nouveau.so
  190. %endif
  191. %changelog
  192. * Thu Oct 19 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.116-1
  193. - updated to 2.4.116.
  194. * Mon Sep 12 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.113-1
  195. - updated to 2.4.113.
  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.