123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Summary: Direct Rendering Manager runtime library
- Summary(ja): Direct Rendering Manager ランタイムライブラリ
- Name: libdrm
- Version: 2.4.65
- Release: 1%{?_dist_release}
- License: MIT
- Group: System Environment/Libraries
- URL: http://dri.sourceforge.net
- Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
- Source2: 91-drm-modeset.rules
- Patch3: libdrm-make-dri-perms-okay.patch
- Patch5: libdrm-2.4.65-check-programs.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
- BuildRequires: pkgconfig
- BuildRequires: libxcb-devel >= 1.9-2
- BuildRequires: libpciaccess-devel
- BuildRequires: eudev-libudev-devel
- BuildRequires: kernel-headers >= 2.6.27-1
- BuildRequires: automake autoconf libtool
- BuildRequires: xorg-x11-util-macros
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: daisuke
- %description
- Direct Rendering Manager runtime library
- %package devel
- Summary: Direct Rendering Manager development package
- Summary(ja): Direct Rendering Manager 開発パッケージ
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: kernel-headers >= 2.6.27-7
- %description devel
- Direct Rendering Manager development package
- %package -n drm-utils
- Summary: Direct Rendering Manager utilities
- Summary(ja): Direct Rendering Manager ユーティリティ
- Group: Development/Tools
- %description -n drm-utils
- Utility programs for the kernel DRM interface. Will void your warranty.
- # compat32
- %package -n compat32-%{name}
- Summary: Direct Rendering Manager runtime library
- Summary(ja): Direct Rendering Manager ランタイムライブラリ
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- %description -n compat32-%{name}
- Direct Rendering Manager runtime library
- %package -n compat32-%{name}-devel
- Summary: Direct Rendering Manager development package
- Summary(ja): Direct Rendering Manager 開発パッケージ
- Group: Development/Libraries
- Requires: compat32-%{name} = %{version}-%{release}
- Requires: %{name}-devel = %{version}-%{release}
- %description -n compat32-%{name}-devel
- Direct Rendering Manager development package
- %prep
- %setup -q
- %patch3 -p1 -b .forceperms
- %patch5 -p1 -b .check-program
- %build
- autoreconf -v --install || exit 1
- %configure \
- --enable-udev \
- %ifarch %{ix86} x86_64 ia64
- --enable-intel \
- %endif
- %ifarch %{arm}
- --enable-omap-experimental-api \
- --enable-exynos-experimental-api \
- %endif
- --enable-radeon \
- --enable-nouveau \
- --enable-vmwgfx
- make %{?smp_mflags}
- pushd tests
- make %{?smp_mflags} $(make check-programs)
- popd
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT
- pushd tests
- mkdir -p $RPM_BUILD_ROOT%{_bindir}
- for foo in $(make check-programs) ; do
- install -m 0755 $foo $RPM_BUILD_ROOT%{_bindir}
- done
- popd
-
- mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
- install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/
- # NOTE: We intentionally don't ship *.la files
- find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || :
- for i in r300_reg.h via_3d_reg.h
- do
- rm -f $RPM_BUILD_ROOT/usr/include/libdrm/$i
- done
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %post -n compat32-%{name} -p /sbin/ldconfig
- %postun -n compat32-%{name} -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- %doc README
- %{_libdir}/libdrm.so.*
- %ifarch %{ix86} x86_64 ia64
- %{_libdir}/libdrm_intel.so.*
- %endif
- %ifarch %{arm}
- %{_libdir}/libdrm_exynos.so.*
- %{_libdir}/libdrm_omap.so.*
- %endif
- %{_libdir}/libdrm_amdgpu.so.*
- %{_libdir}/libdrm_radeon.so.*
- %{_libdir}/libdrm_nouveau.so.*
- %{_libdir}/libkms.so.*
- /lib/udev/rules.d/91-drm-modeset.rules
- %files -n drm-utils
- %defattr(-,root,root,-)
- %{_bindir}/dristat
- %{_bindir}/drmstat
- %{_bindir}/getclient
- %{_bindir}/getstats
- %{_bindir}/getversion
- %{_bindir}/name_from_fd
- %{_bindir}/openclose
- %{_bindir}/setversion
- %{_bindir}/updatedraw
- %exclude %{_bindir}/drmsl
- %exclude %{_bindir}/hash
- %exclude %{_bindir}/random
- %files devel
- %defattr(-,root,root,-)
- %{_includedir}/xf86drm.h
- %{_includedir}/xf86drmMode.h
- %dir %{_includedir}/libdrm
- %{_includedir}/libdrm/amdgpu.h
- %{_includedir}/libdrm/drm.h
- %{_includedir}/libdrm/drm_fourcc.h
- %{_includedir}/libdrm/drm_mode.h
- %{_includedir}/libdrm/drm_sarea.h
- %ifarch %{ix86} x86_64 ia64
- %{_includedir}/libdrm/intel_aub.h
- %{_includedir}/libdrm/intel_bufmgr.h
- %{_includedir}/libdrm/intel_debug.h
- %endif
- %ifarch %{arm}
- %{_includedir}/libdrm/exynos_drmif.h
- %{_includedir}/exynos/
- %{_includedir}/libdrm/omap_drmif.h
- %{_includedir}/omap/
- %endif
- %{_includedir}/libdrm/r600_pci_ids.h
- %{_includedir}/libdrm/radeon_bo*.h
- %{_includedir}/libdrm/radeon_cs*.h
- %{_includedir}/libdrm/radeon_surface.h
- %{_includedir}/libdrm/nouveau.h
- %{_includedir}/libdrm/*_drm.h
- %dir %{_includedir}/libkms
- %{_includedir}/libkms/libkms.h
- %{_libdir}/libdrm.so
- %ifarch %{ix86} x86_64 ia64
- %{_libdir}/libdrm_intel.so
- %endif
- %ifarch %{arm}
- %{_libdir}/libdrm_exynos.so
- %{_libdir}/libdrm_omap.so
- %endif
- %{_libdir}/libdrm_amdgpu.so
- %{_libdir}/libdrm_radeon.so
- %{_libdir}/libdrm_nouveau.so
- %{_libdir}/libkms.so
- %{_libdir}/pkgconfig/libdrm.pc
- %ifarch %{ix86} x86_64 ia64
- %{_libdir}/pkgconfig/libdrm_intel.pc
- %endif
- %ifarch %{arm}
- %{_libdir}/pkgconfig/libdrm_exynos.pc
- %{_libdir}/pkgconfig/libdrm_omap.pc
- %endif
- %{_libdir}/pkgconfig/libdrm_amdgpu.pc
- %{_libdir}/pkgconfig/libdrm_radeon.pc
- %{_libdir}/pkgconfig/libdrm_nouveau.pc
- %{_libdir}/pkgconfig/libkms.pc
- #%{_mandir}/man3/drm*.3*
- # compat32
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-,root,root,-)
- %{_libdir}/libdrm.so.*
- %{_libdir}/libdrm_intel.so.*
- %{_libdir}/libdrm_amdgpu.so.*
- %{_libdir}/libdrm_radeon.so.*
- %{_libdir}/libdrm_nouveau.so.*
- %{_libdir}/libkms.so.*
- %files -n compat32-%{name}-devel
- %defattr(-,root,root,-)
- %{_libdir}/libdrm.so
- %{_libdir}/libdrm_intel.so
- %{_libdir}/libdrm_amdgpu.so
- %{_libdir}/libdrm_radeon.so
- %{_libdir}/libdrm_nouveau.so
- %{_libdir}/libkms.so
- %endif
- %changelog
- * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.65-1
- - update to 2.4.65
- - add BuildRequires: xorg-x11-util-macros
- - update Patch5 (libdrm-2.4.65-check-programs.patch)
- * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.58-1
- - update to 2.4.58
- * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-2
- - change BuildRequies: eudev-libudev-devel instead of libudev-devel
- - remove BuildRequires: libatomic_ops-devel
- * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.54-1
- - update to 2.4.54
- * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.50-1
- - update to 2.4.50
- * Mon Oct 28 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.46-1
- - update to 2.4.46
- * Wed May 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.44-1
- - update to 2.4.44
- * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.40-1
- - update to 2.4.40
- - enable exynos and omap on arm arch.
- - add drm/dri check programs as new subpackage
- - move udev rule to /lib/udev/rules.d
- * Mon Jul 09 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.33-2
- - update 91-drm-modeset.rules
- - add /dev/dri/card* rules (again...)
- * Sat Apr 28 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.33-1
- - new upstream release
- * Sun Mar 25 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.32-1
- - new upstream release
- - update Patch10 (libdrm-2.4.32-no-pthread-stubs.patch)
- * Wed Feb 15 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.31-1
- - new upstream release
- * Sun Jan 29 2012 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.30-1
- - new upstream release
- - update Patch10 (libdrm-2.4.30-no-pthread-stubs.patch)
- * Fri Dec 16 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.29-1
- - new upstream release
- * Tue Nov 01 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.27-1
- - new upstream release
- * Sat Jul 09 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.26-1
- - new upstream release
- - add BuildRequires: libpciaccess-devel
- - change BuildRequires: libudev-devel instead of udev
- - update Patch10
- * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-2
- - add patch5 to build libkms with in-tree libdrm
- - add --enable-vmwgfx-experimental-api
- * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-1
- - new upstream release
- * Sun Mar 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.24-2
- - fix %%files devel (add %%{_includedir}/nouveau/nvc0_pushbuf.h)
- * Sun Mar 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.24-1
- - new upstream release
- * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.23-1
- - new upstream release
- * Thu Nov 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.22-1
- - new upstream release
- * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2
- - rebuild with rpm-4.8.1 for pkg-config file
- * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
- - new upstream release
- * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1
- - new upstream release
- - move include files to new location which are not conflict with kernel.
- * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2
- - add libkms
- * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1
- - new upstream release
- * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1
- - new upstream release
- * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1
- - new upstream release
- * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1
- - new upstream release
- - drop Patch5
- - add BR: libatomic_ops-devel
- * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2
- - ad Patch5, pull in intel bo busy.
- * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1
- - new upstream release
- - drop upstream patch
- * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4
- - added compat32 package for x86_64 arch support
- * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3
- - add /dev/dri/card* rule to 91-drm-modeset.rules
- * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2
- - build libdrm_nouveau
- - add Patch9 to update nouveau code
- - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/
- - remove i915modeset
- * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1
- - new upstream release
- * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1
- - new upstream release
- * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
- - new upstream release
- * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1
- - new upstream release
- * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4
- - remove kernel header files from -devel package.
- - add BR: kernel-headers >= 2.6.27-1
- - add Requires; kernel-headers >= 2.6.27-1 to -devel package
- * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3
- - update to libdrm-2.4.0 release
- * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303
- - update to new git snapshot
- * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
- - new versioning policy
- * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1
- - update to upstream snapshot
- * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
- - new upstream release
- * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
- - initial build for Vine Linux partially based on FC package
- * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2
- - bump again for double-long bug on ppc(64)
- * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1
- - rebuilt for new gcc4.1 snapshot and glibc changes
- * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2
- - Replaced the temporary tongue-in-cheek humourous package summary and
- description with the proper package descriptions, as many people didn't get
- the joke, while others felt it was getting old. Ah well, I had my fun for
- a while anyway. ;o)
- * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1
- - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible
- release, meaning everything linked to it needs to be recompiled.
- * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1
- - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around
- mesa unichrome dri driver compile failure.
- * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1
- - Updated libdrm to version 1.0.4 from X11R7 RC1
- - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h,
- r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h,
- via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest.
- * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3
- - Update BuildRoot to use Fedora Packaging Guidelines.
- - Add missing "BuildRequires: libX11-devel, pkgconfig"
- * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2
- - Add missing documentation to doc macro
- - Fix spec file project URL
- * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1
- - Initial build.
|