libdrm-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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.65
  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}/drmstat
  122. %{_bindir}/getclient
  123. %{_bindir}/getstats
  124. %{_bindir}/getversion
  125. %{_bindir}/name_from_fd
  126. %{_bindir}/openclose
  127. %{_bindir}/setversion
  128. %{_bindir}/updatedraw
  129. %exclude %{_bindir}/drmsl
  130. %exclude %{_bindir}/hash
  131. %exclude %{_bindir}/random
  132. %files devel
  133. %defattr(-,root,root,-)
  134. %{_includedir}/xf86drm.h
  135. %{_includedir}/xf86drmMode.h
  136. %dir %{_includedir}/libdrm
  137. %{_includedir}/libdrm/amdgpu.h
  138. %{_includedir}/libdrm/drm.h
  139. %{_includedir}/libdrm/drm_fourcc.h
  140. %{_includedir}/libdrm/drm_mode.h
  141. %{_includedir}/libdrm/drm_sarea.h
  142. %ifarch %{ix86} x86_64 ia64
  143. %{_includedir}/libdrm/intel_aub.h
  144. %{_includedir}/libdrm/intel_bufmgr.h
  145. %{_includedir}/libdrm/intel_debug.h
  146. %endif
  147. %ifarch %{arm}
  148. %{_includedir}/libdrm/exynos_drmif.h
  149. %{_includedir}/exynos/
  150. %{_includedir}/libdrm/omap_drmif.h
  151. %{_includedir}/omap/
  152. %endif
  153. %{_includedir}/libdrm/r600_pci_ids.h
  154. %{_includedir}/libdrm/radeon_bo*.h
  155. %{_includedir}/libdrm/radeon_cs*.h
  156. %{_includedir}/libdrm/radeon_surface.h
  157. %{_includedir}/libdrm/nouveau.h
  158. %{_includedir}/libdrm/*_drm.h
  159. %dir %{_includedir}/libkms
  160. %{_includedir}/libkms/libkms.h
  161. %{_libdir}/libdrm.so
  162. %ifarch %{ix86} x86_64 ia64
  163. %{_libdir}/libdrm_intel.so
  164. %endif
  165. %ifarch %{arm}
  166. %{_libdir}/libdrm_exynos.so
  167. %{_libdir}/libdrm_omap.so
  168. %endif
  169. %{_libdir}/libdrm_amdgpu.so
  170. %{_libdir}/libdrm_radeon.so
  171. %{_libdir}/libdrm_nouveau.so
  172. %{_libdir}/libkms.so
  173. %{_libdir}/pkgconfig/libdrm.pc
  174. %ifarch %{ix86} x86_64 ia64
  175. %{_libdir}/pkgconfig/libdrm_intel.pc
  176. %endif
  177. %ifarch %{arm}
  178. %{_libdir}/pkgconfig/libdrm_exynos.pc
  179. %{_libdir}/pkgconfig/libdrm_omap.pc
  180. %endif
  181. %{_libdir}/pkgconfig/libdrm_amdgpu.pc
  182. %{_libdir}/pkgconfig/libdrm_radeon.pc
  183. %{_libdir}/pkgconfig/libdrm_nouveau.pc
  184. %{_libdir}/pkgconfig/libkms.pc
  185. #%{_mandir}/man3/drm*.3*
  186. # compat32
  187. %if %{build_compat32}
  188. %files -n compat32-%{name}
  189. %defattr(-,root,root,-)
  190. %{_libdir}/libdrm.so.*
  191. %{_libdir}/libdrm_intel.so.*
  192. %{_libdir}/libdrm_amdgpu.so.*
  193. %{_libdir}/libdrm_radeon.so.*
  194. %{_libdir}/libdrm_nouveau.so.*
  195. %{_libdir}/libkms.so.*
  196. %files -n compat32-%{name}-devel
  197. %defattr(-,root,root,-)
  198. %{_libdir}/libdrm.so
  199. %{_libdir}/libdrm_intel.so
  200. %{_libdir}/libdrm_amdgpu.so
  201. %{_libdir}/libdrm_radeon.so
  202. %{_libdir}/libdrm_nouveau.so
  203. %{_libdir}/libkms.so
  204. %endif
  205. %changelog
  206. * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.65-1
  207. - update to 2.4.65
  208. - add BuildRequires: xorg-x11-util-macros
  209. - update Patch5 (libdrm-2.4.65-check-programs.patch)
  210. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.58-1
  211. - update to 2.4.58
  212. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-2
  213. - change BuildRequies: eudev-libudev-devel instead of libudev-devel
  214. - remove BuildRequires: libatomic_ops-devel
  215. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-1
  216. - update to 2.4.54
  217. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.50-1
  218. - update to 2.4.50
  219. * Mon Oct 28 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.46-1
  220. - update to 2.4.46
  221. * Wed May 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.44-1
  222. - update to 2.4.44
  223. * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.40-1
  224. - update to 2.4.40
  225. - enable exynos and omap on arm arch.
  226. - add drm/dri check programs as new subpackage
  227. - move udev rule to /lib/udev/rules.d
  228. * Mon Jul 09 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.33-2
  229. - update 91-drm-modeset.rules
  230. - add /dev/dri/card* rules (again...)
  231. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.33-1
  232. - new upstream release
  233. * Sun Mar 25 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.32-1
  234. - new upstream release
  235. - update Patch10 (libdrm-2.4.32-no-pthread-stubs.patch)
  236. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.31-1
  237. - new upstream release
  238. * Sun Jan 29 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.30-1
  239. - new upstream release
  240. - update Patch10 (libdrm-2.4.30-no-pthread-stubs.patch)
  241. * Fri Dec 16 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.29-1
  242. - new upstream release
  243. * Tue Nov 01 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.27-1
  244. - new upstream release
  245. * Sat Jul 09 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.26-1
  246. - new upstream release
  247. - add BuildRequires: libpciaccess-devel
  248. - change BuildRequires: libudev-devel instead of udev
  249. - update Patch10
  250. * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-2
  251. - add patch5 to build libkms with in-tree libdrm
  252. - add --enable-vmwgfx-experimental-api
  253. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-1
  254. - new upstream release
  255. * Sun Mar 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.24-2
  256. - fix %%files devel (add %%{_includedir}/nouveau/nvc0_pushbuf.h)
  257. * Sun Mar 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.24-1
  258. - new upstream release
  259. * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.23-1
  260. - new upstream release
  261. * Thu Nov 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.22-1
  262. - new upstream release
  263. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2
  264. - rebuild with rpm-4.8.1 for pkg-config file
  265. * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
  266. - new upstream release
  267. * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1
  268. - new upstream release
  269. - move include files to new location which are not conflict with kernel.
  270. * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2
  271. - add libkms
  272. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1
  273. - new upstream release
  274. * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1
  275. - new upstream release
  276. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1
  277. - new upstream release
  278. * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1
  279. - new upstream release
  280. - drop Patch5
  281. - add BR: libatomic_ops-devel
  282. * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2
  283. - ad Patch5, pull in intel bo busy.
  284. * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1
  285. - new upstream release
  286. - drop upstream patch
  287. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4
  288. - added compat32 package for x86_64 arch support
  289. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3
  290. - add /dev/dri/card* rule to 91-drm-modeset.rules
  291. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2
  292. - build libdrm_nouveau
  293. - add Patch9 to update nouveau code
  294. - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/
  295. - remove i915modeset
  296. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1
  297. - new upstream release
  298. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1
  299. - new upstream release
  300. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
  301. - new upstream release
  302. * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1
  303. - new upstream release
  304. * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4
  305. - remove kernel header files from -devel package.
  306. - add BR: kernel-headers >= 2.6.27-1
  307. - add Requires; kernel-headers >= 2.6.27-1 to -devel package
  308. * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3
  309. - update to libdrm-2.4.0 release
  310. * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303
  311. - update to new git snapshot
  312. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
  313. - new versioning policy
  314. * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1
  315. - update to upstream snapshot
  316. * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
  317. - new upstream release
  318. * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  319. - initial build for Vine Linux partially based on FC package
  320. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2
  321. - bump again for double-long bug on ppc(64)
  322. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1
  323. - rebuilt for new gcc4.1 snapshot and glibc changes
  324. * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2
  325. - Replaced the temporary tongue-in-cheek humourous package summary and
  326. description with the proper package descriptions, as many people didn't get
  327. the joke, while others felt it was getting old. Ah well, I had my fun for
  328. a while anyway. ;o)
  329. * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1
  330. - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible
  331. release, meaning everything linked to it needs to be recompiled.
  332. * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1
  333. - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around
  334. mesa unichrome dri driver compile failure.
  335. * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1
  336. - Updated libdrm to version 1.0.4 from X11R7 RC1
  337. - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h,
  338. r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h,
  339. via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest.
  340. * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3
  341. - Update BuildRoot to use Fedora Packaging Guidelines.
  342. - Add missing "BuildRequires: libX11-devel, pkgconfig"
  343. * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2
  344. - Add missing documentation to doc macro
  345. - Fix spec file project URL
  346. * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1
  347. - Initial build.