libdrm-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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.54
  6. Release: 2%{?_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. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-2
  207. - change BuildRequies: eudev-libudev-devel instead of libudev-devel
  208. - remove BuildRequires: libatomic_ops-devel
  209. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-1
  210. - update to 2.4.54
  211. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.50-1
  212. - update to 2.4.50
  213. * Mon Oct 28 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.46-1
  214. - update to 2.4.46
  215. * Wed May 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.44-1
  216. - update to 2.4.44
  217. * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.40-1
  218. - update to 2.4.40
  219. - enable exynos and omap on arm arch.
  220. - add drm/dri check programs as new subpackage
  221. - move udev rule to /lib/udev/rules.d
  222. * Mon Jul 09 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.33-2
  223. - update 91-drm-modeset.rules
  224. - add /dev/dri/card* rules (again...)
  225. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.33-1
  226. - new upstream release
  227. * Sun Mar 25 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.32-1
  228. - new upstream release
  229. - update Patch10 (libdrm-2.4.32-no-pthread-stubs.patch)
  230. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.31-1
  231. - new upstream release
  232. * Sun Jan 29 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.30-1
  233. - new upstream release
  234. - update Patch10 (libdrm-2.4.30-no-pthread-stubs.patch)
  235. * Fri Dec 16 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.29-1
  236. - new upstream release
  237. * Tue Nov 01 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.27-1
  238. - new upstream release
  239. * Sat Jul 09 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.26-1
  240. - new upstream release
  241. - add BuildRequires: libpciaccess-devel
  242. - change BuildRequires: libudev-devel instead of udev
  243. - update Patch10
  244. * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-2
  245. - add patch5 to build libkms with in-tree libdrm
  246. - add --enable-vmwgfx-experimental-api
  247. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-1
  248. - new upstream release
  249. * Sun Mar 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.24-2
  250. - fix %%files devel (add %%{_includedir}/nouveau/nvc0_pushbuf.h)
  251. * Sun Mar 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.24-1
  252. - new upstream release
  253. * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.23-1
  254. - new upstream release
  255. * Thu Nov 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.22-1
  256. - new upstream release
  257. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2
  258. - rebuild with rpm-4.8.1 for pkg-config file
  259. * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
  260. - new upstream release
  261. * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1
  262. - new upstream release
  263. - move include files to new location which are not conflict with kernel.
  264. * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2
  265. - add libkms
  266. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1
  267. - new upstream release
  268. * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1
  269. - new upstream release
  270. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1
  271. - new upstream release
  272. * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1
  273. - new upstream release
  274. - drop Patch5
  275. - add BR: libatomic_ops-devel
  276. * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2
  277. - ad Patch5, pull in intel bo busy.
  278. * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1
  279. - new upstream release
  280. - drop upstream patch
  281. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4
  282. - added compat32 package for x86_64 arch support
  283. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3
  284. - add /dev/dri/card* rule to 91-drm-modeset.rules
  285. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2
  286. - build libdrm_nouveau
  287. - add Patch9 to update nouveau code
  288. - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/
  289. - remove i915modeset
  290. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1
  291. - new upstream release
  292. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1
  293. - new upstream release
  294. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
  295. - new upstream release
  296. * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1
  297. - new upstream release
  298. * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4
  299. - remove kernel header files from -devel package.
  300. - add BR: kernel-headers >= 2.6.27-1
  301. - add Requires; kernel-headers >= 2.6.27-1 to -devel package
  302. * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3
  303. - update to libdrm-2.4.0 release
  304. * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303
  305. - update to new git snapshot
  306. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
  307. - new versioning policy
  308. * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1
  309. - update to upstream snapshot
  310. * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
  311. - new upstream release
  312. * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  313. - initial build for Vine Linux partially based on FC package
  314. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2
  315. - bump again for double-long bug on ppc(64)
  316. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1
  317. - rebuilt for new gcc4.1 snapshot and glibc changes
  318. * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2
  319. - Replaced the temporary tongue-in-cheek humourous package summary and
  320. description with the proper package descriptions, as many people didn't get
  321. the joke, while others felt it was getting old. Ah well, I had my fun for
  322. a while anyway. ;o)
  323. * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1
  324. - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible
  325. release, meaning everything linked to it needs to be recompiled.
  326. * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1
  327. - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around
  328. mesa unichrome dri driver compile failure.
  329. * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1
  330. - Updated libdrm to version 1.0.4 from X11R7 RC1
  331. - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h,
  332. r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h,
  333. via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest.
  334. * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3
  335. - Update BuildRoot to use Fedora Packaging Guidelines.
  336. - Add missing "BuildRequires: libX11-devel, pkgconfig"
  337. * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2
  338. - Add missing documentation to doc macro
  339. - Fix spec file project URL
  340. * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1
  341. - Initial build.