libdrm/libdrm.spec

305 lines
8.3 KiB
RPMSpec
Raw Normal View History

%define gitdate 20130117
2008-02-15 19:17:14 +00:00
Summary: Direct Rendering Manager runtime library
Name: libdrm
Version: 2.4.41
Release: 1%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://dri.sourceforge.net
%if 0%{?gitdate}
Source0: %{name}-%{gitdate}.tar.bz2
%else
2012-05-12 16:41:37 +00:00
Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
%endif
2008-02-15 19:17:14 +00:00
Source1: make-git-snapshot.sh
2009-02-01 07:08:35 +00:00
Requires: udev
2006-11-17 17:41:35 +00:00
BuildRequires: pkgconfig automake autoconf libtool
BuildRequires: kernel-headers
BuildRequires: libxcb-devel
%if 0%{?fedora} > 17 || 0%{?rhel} > 6
BuildRequires: systemd-devel
%else
BuildRequires: libudev-devel
%endif
2010-10-19 20:03:51 +00:00
BuildRequires: libatomic_ops-devel
2011-06-06 15:35:19 +00:00
BuildRequires: libpciaccess-devel
BuildRequires: libxslt docbook-style-xsl
Source2: 91-drm-modeset.rules
2009-02-01 07:08:35 +00:00
# hardcode the 666 instead of 660 for device nodes
Patch3: libdrm-make-dri-perms-okay.patch
2009-02-01 07:08:35 +00:00
# remove backwards compat not needed on Fedora
Patch4: libdrm-2.4.0-no-bc.patch
2011-04-18 16:04:25 +00:00
# make rule to print the list of test programs
Patch5: libdrm-2.4.25-check-programs.patch
2009-08-26 02:01:26 +00:00
%description
Direct Rendering Manager runtime library
%package devel
Summary: Direct Rendering Manager development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: kernel-headers >= 2.6.27-0.144.rc0.git2.fc10
2009-02-01 07:08:35 +00:00
Requires: pkgconfig
%description devel
Direct Rendering Manager development package
2011-04-18 16:04:25 +00:00
%package -n drm-utils
Summary: Direct Rendering Manager utilities
Group: Development/Tools
%description -n drm-utils
Utility programs for the kernel DRM interface. Will void your warranty.
%prep
%setup -q %{?gitdate:-n %{name}-%{gitdate}}
%patch3 -p1 -b .forceperms
%patch4 -p1 -b .no-bc
2011-04-18 16:04:25 +00:00
%patch5 -p1 -b .check
%build
2008-02-15 19:17:14 +00:00
autoreconf -v --install || exit 1
%configure \
2012-05-12 02:55:27 +00:00
%ifarch %{arm}
--enable-omap-experimental-api \
2012-10-08 14:59:49 +00:00
--enable-exynos-experimental-api \
2012-05-12 02:55:27 +00:00
%endif
--enable-udev
2009-02-01 07:08:35 +00:00
make %{?_smp_mflags}
2011-04-18 16:04:25 +00:00
pushd tests
make %{?smp_mflags} `make check-programs`
popd
%install
make install DESTDIR=$RPM_BUILD_ROOT
2011-04-18 16:04:25 +00:00
pushd tests
mkdir -p $RPM_BUILD_ROOT%{_bindir}
2011-04-20 18:07:02 +00:00
for foo in $(make check-programs) ; do
install -m 0755 .libs/$foo $RPM_BUILD_ROOT%{_bindir}
done
2011-04-18 16:04:25 +00:00
popd
# SUBDIRS=libdrm
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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README
%{_libdir}/libdrm.so.2
%{_libdir}/libdrm.so.2.4.0
2012-02-22 14:57:37 +00:00
%ifarch %{ix86} x86_64 ia64
%{_libdir}/libdrm_intel.so.1
%{_libdir}/libdrm_intel.so.1.0.0
2012-02-22 14:57:37 +00:00
%endif
2012-05-12 02:55:27 +00:00
%ifarch %{arm}
2012-10-08 14:59:49 +00:00
%{_libdir}/libdrm_exynos.so.1
%{_libdir}/libdrm_exynos.so.1.0.0
2012-05-12 02:55:27 +00:00
%{_libdir}/libdrm_omap.so.1
%{_libdir}/libdrm_omap.so.1.0.0
%endif
%{_libdir}/libdrm_radeon.so.1
2012-08-14 01:18:22 +00:00
%{_libdir}/libdrm_radeon.so.1.0.1
2012-04-24 13:34:58 +00:00
%{_libdir}/libdrm_nouveau.so.2
%{_libdir}/libdrm_nouveau.so.2.0.0
%{_libdir}/libkms.so.1
%{_libdir}/libkms.so.1.0.0
/lib/udev/rules.d/91-drm-modeset.rules
2011-04-18 16:04:25 +00:00
%files -n drm-utils
%defattr(-,root,root,-)
%{_bindir}/dristat
%{_bindir}/drmstat
%ifarch %{ix86} x86_64 ia64
2011-04-18 16:04:25 +00:00
%{_bindir}/gem_basic
%{_bindir}/gem_flink
%{_bindir}/gem_mmap
%{_bindir}/gem_readwrite
%endif
2011-04-18 16:04:25 +00:00
%{_bindir}/getclient
%{_bindir}/getstats
%{_bindir}/getversion
%{_bindir}/name_from_fd
%{_bindir}/openclose
%{_bindir}/setversion
%{_bindir}/updatedraw
%files devel
%defattr(-,root,root,-)
# FIXME should be in drm/ too
%{_includedir}/xf86drm.h
%{_includedir}/xf86drmMode.h
%{_includedir}/libdrm/drm.h
2012-01-20 10:10:54 +00:00
%{_includedir}/libdrm/drm_fourcc.h
%{_includedir}/libdrm/drm_mode.h
%{_includedir}/libdrm/drm_sarea.h
2012-02-22 14:57:37 +00:00
%ifarch %{ix86} x86_64 ia64
%{_includedir}/libdrm/intel_aub.h
%{_includedir}/libdrm/intel_bufmgr.h
2011-11-01 17:09:23 +00:00
%{_includedir}/libdrm/intel_debug.h
2012-02-22 14:57:37 +00:00
%endif
2012-05-12 02:55:27 +00:00
%ifarch %{arm}
2012-10-08 14:59:49 +00:00
%{_includedir}/libdrm/exynos_drmif.h
%{_includedir}/exynos/
2012-05-12 02:55:27 +00:00
%{_includedir}/libdrm/omap_drmif.h
%{_includedir}/omap/
%endif
2011-11-01 17:09:23 +00:00
%{_includedir}/libdrm/radeon_bo.h
%{_includedir}/libdrm/radeon_bo_gem.h
%{_includedir}/libdrm/radeon_bo_int.h
%{_includedir}/libdrm/radeon_cs.h
%{_includedir}/libdrm/radeon_cs_gem.h
%{_includedir}/libdrm/radeon_cs_int.h
2012-02-07 17:29:38 +00:00
%{_includedir}/libdrm/radeon_surface.h
2012-02-07 20:13:20 +00:00
%{_includedir}/libdrm/r600_pci_ids.h
2012-04-24 13:34:58 +00:00
%{_includedir}/libdrm/nouveau.h
%{_includedir}/libdrm/*_drm.h
%{_includedir}/libkms
%{_libdir}/libdrm.so
2012-02-22 14:57:37 +00:00
%ifarch %{ix86} x86_64 ia64
%{_libdir}/libdrm_intel.so
2012-02-22 14:57:37 +00:00
%endif
2012-05-12 02:55:27 +00:00
%ifarch %{arm}
2012-10-08 14:59:49 +00:00
%{_libdir}/libdrm_exynos.so
2012-05-12 02:55:27 +00:00
%{_libdir}/libdrm_omap.so
%endif
%{_libdir}/libdrm_radeon.so
%{_libdir}/libdrm_nouveau.so
%{_libdir}/libkms.so
%{_libdir}/pkgconfig/libdrm.pc
2012-02-22 14:57:37 +00:00
%ifarch %{ix86} x86_64 ia64
%{_libdir}/pkgconfig/libdrm_intel.pc
2012-02-22 14:57:37 +00:00
%endif
2012-05-12 02:55:27 +00:00
%ifarch %{arm}
2012-10-08 14:59:49 +00:00
%{_libdir}/pkgconfig/libdrm_exynos.pc
2012-05-12 02:55:27 +00:00
%{_libdir}/pkgconfig/libdrm_omap.pc
%endif
2009-02-17 23:46:52 +00:00
%{_libdir}/pkgconfig/libdrm_radeon.pc
%{_libdir}/pkgconfig/libdrm_nouveau.pc
%{_libdir}/pkgconfig/libkms.pc
2012-11-06 10:14:11 +00:00
%{_mandir}/man3/drm*.3*
%{_mandir}/man7/drm*.7*
%changelog
* Thu Jan 17 2013 Adam Jackson <ajax@redhat.com> 2.4.41-1
- libdrm 2.4.41 plus git. Done as a git snapshot instead of the released
2.4.41 since the release tarball is missing man/ entirely.
- Pre-F16 changelog trim
* Wed Jan 09 2013 Ben Skeggs <bskeggs@redhat.com> 2.4.40-2
2013-01-07 23:34:31 +00:00
- nouveau: fix bug causing kernel to reject certain command streams
2012-11-06 10:10:51 +00:00
* Tue Nov 06 2012 Dave Airlie <airlied@redhat.com> 2.4.40-1
- libdrm 2.4.40
* Thu Oct 25 2012 Adam Jackson <ajax@redhat.com> 2.4.39-4
- Rebuild to appease koji and get libkms on F18 again
2012-10-08 14:59:49 +00:00
* Mon Oct 08 2012 Adam Jackson <ajax@redhat.com> 2.4.39-3
- Add exynos to arm
2012-08-27 07:24:07 +00:00
* Mon Aug 27 2012 Dave Airlie <airlied@redhat.com> 2.4.39-1
2012-08-29 17:19:01 +00:00
- upstream 2.4.39 release
2012-08-14 01:18:22 +00:00
* Tue Aug 14 2012 Dave Airlie <airlied@redhat.com> 2.4.38-2
- add radeon prime support
2012-08-12 00:57:50 +00:00
* Sun Aug 12 2012 Dave Airlie <airlied@redhat.com> 2.4.38-1
- upstream 2.4.38 release
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.37-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jul 25 2012 Dave Airlie <airlied@redhat.com> 2.4.37-3
- add libdrm prime support for core, intel, nouveau
* Mon Jul 23 2012 Adam Jackson <ajax@redhat.com> 2.4.37-2
- libdrm-2.4.37-i915-hush.patch: Silence an excessive error message
2012-07-13 01:46:14 +00:00
* Fri Jul 13 2012 Dave Airlie <airlied@redhat.com> 2.4.37-1
- bump to libdrm 2.4.37
2012-06-28 08:52:26 +00:00
* Thu Jun 28 2012 Dave Airlie <airlied@redhat.com> 2.4.36-1
- bump to libdrm 2.4.36
* Mon Jun 25 2012 Adam Jackson <ajax@redhat.com> 2.4.35-2
- Drop libkms. Only used by plymouth, and even that's a mistake.
2012-06-15 08:50:14 +00:00
* Fri Jun 15 2012 Dave Airlie <airlied@redhat.com> 2.4.35-1
- bump to libdrm 2.4.35
* Tue Jun 05 2012 Adam Jackson <ajax@redhat.com> 2.4.34-2
- Rebuild for new libudev
- Conditional BuildReqs for {libudev,systemd}-devel
2012-05-12 16:41:37 +00:00
* Sat May 12 2012 Dave Airlie <airlied@redhat.com> 2.4.34-1
- libdrm 2.4.34
2012-05-12 02:55:27 +00:00
* Fri May 11 2012 Dennis Gilmore <dennis@ausil.us> 2.4.34-0.3
- enable libdrm_omap on arm arches
2012-05-10 14:15:44 +00:00
* Thu May 10 2012 Adam Jackson <ajax@redhat.com> 2.4.34-0.2
- Drop ancient kernel Requires.
2012-04-24 13:34:58 +00:00
* Tue Apr 24 2012 Richard Hughes <rhughes@redhat.com> - 2.4.34-0.1.20120424
- Update to a newer git snapshot
* Sat Mar 31 2012 Dave Airlie <airlied@redhat.com> 2.4.33-1
- libdrm 2.4.33
- drop libdrm-2.4.32-tn-surface.patch
* Wed Mar 21 2012 Adam Jackson <ajax@redhat.com> 2.4.32-1
- libdrm 2.4.32
- libdrm-2.4.32-tn-surface.patch: Sync with git.
* Sat Feb 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.31-4
- Add gem_ binaries to x86 only exclusion too
2012-02-22 14:57:37 +00:00
* Wed Feb 22 2012 Adam Jackson <ajax@redhat.com> 2.4.31-3
- Fix build on non-Intel arches
2012-02-07 20:13:20 +00:00
* Tue Feb 07 2012 Jerome Glisse <jglisse@redhat.com> 2.4.31-2
- Fix missing header file
2012-02-07 17:29:38 +00:00
* Tue Feb 07 2012 Jerome Glisse <jglisse@redhat.com> 2.4.31-1
- upstream 2.4.31 release
2012-01-20 10:10:54 +00:00
* Fri Jan 20 2012 Dave Airlie <airlied@redhat.com> 2.4.30-1
- upstream 2.4.30 release
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.27-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-11-11 21:31:56 +00:00
* Fri Nov 11 2011 Adam Jackson <ajax@redhat.com> 2.4.27-2
- Fix typo in udev rule
2011-11-01 17:09:23 +00:00
* Tue Nov 01 2011 Adam Jackson <ajax@redhat.com> 2.4.27-1
- libdrm 2.4.27
2011-10-27 00:10:18 +00:00
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.26-4
- Rebuilt for glibc bug#747377
* Tue Oct 25 2011 Adam Jackson <ajax@redhat.com> 2.4.26-3
- Fix udev rule matching and install location (#748205)
2011-10-21 14:20:09 +00:00
* Fri Oct 21 2011 Dave Airlie <airlied@redhat.com> 2.4.26-2
- fix perms on control node in udev rule
2011-06-06 15:17:41 +00:00
* Mon Jun 06 2011 Adam Jackson <ajax@redhat.com> 2.4.26-1
- libdrm 2.4.26 (#711038)