libdrm-vl.spec 12 KB

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