From 5ecf149449b17bec26450b8fec651af129b7a6ce Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 12 Jul 2015 19:45:11 +0100 Subject: [PATCH] 2.4.62, spec cleanups --- .gitignore | 43 +------------------------------------------ libdrm.spec | 37 ++++++++++++++++++++----------------- sources | 2 +- 3 files changed, 22 insertions(+), 60 deletions(-) diff --git a/.gitignore b/.gitignore index 55057ca..0388095 100644 --- a/.gitignore +++ b/.gitignore @@ -1,42 +1 @@ -libdrm-20100529.tar.bz2 -libdrm-20100612.tar.bz2 -/libdrm-2.4.22.tar.bz2 -/libdrm-20101019.tar.bz2 -/libdrm-20101108.tar.bz2 -/libdrm-20101123.tar.bz2 -/libdrm-20101212.tar.bz2 -/libdrm-2.4.23.tar.bz2 -/libdrm-20110106.tar.bz2 -/libdrm-2.4.24.tar.bz2 -/libdrm-2.4.25.tar.bz2 -/libdrm-2.4.26.tar.bz2 -/libdrm-2.4.27.tar.bz2 -/libdrm-2.4.30.tar.bz2 -/libdrm-2.4.31.tar.bz2 -/libdrm-2.4.32.tar.bz2 -/libdrm-2.4.33.tar.bz2 -/libdrm-20120424.tar.bz2 -/libdrm-2.4.34.tar.bz2 -/libdrm-2.4.35.tar.bz2 -/libdrm-2.4.36.tar.bz2 -/libdrm-2.4.37.tar.bz2 -/libdrm-2.4.38.tar.bz2 -/libdrm-2.4.39.tar.bz2 -/libdrm-2.4.40.tar.bz2 -/libdrm-20130117.tar.bz2 -/libdrm-2.4.42.tar.bz2 -/libdrm-2.4.43.tar.bz2 -/libdrm-2.4.44.tar.bz2 -/libdrm-2.4.45.tar.bz2 -/libdrm-2.4.46.tar.bz2 -/libdrm-2.4.47.tar.bz2 -/libdrm-2.4.49.tar.bz2 -/libdrm-2.4.50.tar.bz2 -/libdrm-2.4.52.tar.bz2 -/libdrm-2.4.53.tar.bz2 -/libdrm-2.4.54.tar.bz2 -/libdrm-2.4.56.tar.bz2 -/libdrm-2.4.58.tar.bz2 -/libdrm-2.4.59.tar.bz2 -/libdrm-2.4.60.tar.bz2 -/libdrm-2.4.61.tar.bz2 +/libdrm-2.*.tar.bz2 diff --git a/libdrm.spec b/libdrm.spec index ef78296..249c2e1 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -2,38 +2,38 @@ Summary: Direct Rendering Manager runtime library Name: libdrm -Version: 2.4.61 -Release: 4%{?dist} +Version: 2.4.62 +Release: 1%{?dist} License: MIT Group: System Environment/Libraries URL: http://dri.sourceforge.net + %if 0%{?gitdate} Source0: %{name}-%{gitdate}.tar.bz2 %else Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 %endif Source1: make-git-snapshot.sh - -Requires: udev +Source2: 91-drm-modeset.rules BuildRequires: pkgconfig automake autoconf libtool BuildRequires: kernel-headers BuildRequires: libxcb-devel %if 0%{?fedora} > 17 || 0%{?rhel} > 6 BuildRequires: systemd-devel +Requires: systemd %else BuildRequires: libudev-devel +Requires: udev %endif BuildRequires: libatomic_ops-devel BuildRequires: libpciaccess-devel BuildRequires: libxslt docbook-style-xsl -%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64 +%ifnarch s390 BuildRequires: valgrind-devel %endif BuildRequires: xorg-x11-util-macros -Source2: 91-drm-modeset.rules - # hardcode the 666 instead of 660 for device nodes Patch3: libdrm-make-dri-perms-okay.patch # remove backwards compat not needed on Fedora @@ -77,35 +77,36 @@ autoreconf -v --install || exit 1 %endif --enable-install-test-programs \ --enable-udev + make %{?_smp_mflags} pushd tests make %{?smp_mflags} `make check-programs` popd %install -make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=%{buildroot} pushd tests -mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir -p %{buildroot}%{_bindir} for foo in $(make check-programs) ; do - install -m 0755 .libs/$foo $RPM_BUILD_ROOT%{_bindir} + install -m 0755 .libs/$foo %{buildroot}%{_bindir} done popd # SUBDIRS=libdrm -mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/ -install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/ +mkdir -p %{buildroot}/lib/udev/rules.d/ +install -m 0644 %{SOURCE2} %{buildroot}/lib/udev/rules.d/ # NOTE: We intentionally don't ship *.la files -find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || : +find %{buildroot} -type f -name "*.la" -delete + for i in r300_reg.h via_3d_reg.h do -rm -f $RPM_BUILD_ROOT/usr/include/libdrm/$i +rm -f %{buildroot}/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 @@ -134,7 +135,6 @@ done /lib/udev/rules.d/91-drm-modeset.rules %files -n drm-utils -%defattr(-,root,root,-) %{_bindir}/dristat %{_bindir}/drmstat %{_bindir}/getclient @@ -155,7 +155,6 @@ done %exclude %{_bindir}/random %files devel -%defattr(-,root,root,-) # FIXME should be in drm/ too %{_includedir}/xf86drm.h %{_includedir}/xf86drmMode.h @@ -224,6 +223,10 @@ done %{_mandir}/man7/drm*.7* %changelog +* Sun Jul 12 2015 Peter Robinson 2.4.62-1 +- libdrm 2.4.62 +- Minor spec cleanups + * Wed Jun 17 2015 Fedora Release Engineering - 2.4.61-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 09eeb9f..a456676 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c3d31138d63e0edde3f5b93cd88fb93a libdrm-2.4.61.tar.bz2 +c9291bae0e5ca65d1483821d3698d3ab libdrm-2.4.62.tar.bz2