libdrm-vl.spec 12 KB

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