Package init
This commit is contained in:
parent
a46c4981da
commit
28b2291092
22
make-git-snapshot.sh
Normal file
22
make-git-snapshot.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Usage: ./make-git-snapshot.sh [COMMIT]
|
||||
#
|
||||
# to make a snapshot of the given tag/branch. Defaults to HEAD.
|
||||
# Point env var REF to a local mesa repo to reduce clone time.
|
||||
|
||||
DIRNAME=xf86-video-nouveau-$( date +%Y%m%d )
|
||||
|
||||
echo REF ${REF:+--reference $REF}
|
||||
echo DIRNAME $DIRNAME
|
||||
echo HEAD ${1:-HEAD}
|
||||
|
||||
rm -rf $DIRNAME
|
||||
|
||||
git clone ${REF:+--reference $REF} \
|
||||
git://git.freedesktop.org/git/nouveau/xf86-video-nouveau $DIRNAME
|
||||
|
||||
GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
|
||||
| xz > $DIRNAME.tar.xz
|
||||
|
||||
# rm -rf $DIRNAME
|
||||
BIN
xf86-video-nouveau-1.0.15.tar.bz2
Normal file
BIN
xf86-video-nouveau-1.0.15.tar.bz2
Normal file
Binary file not shown.
51
xorg-x11-drv-nouveau.spec
Normal file
51
xorg-x11-drv-nouveau.spec
Normal file
@ -0,0 +1,51 @@
|
||||
%define moduledir %(pkg-config xorg-server --variable=moduledir )
|
||||
%define driverdir %{moduledir}/drivers
|
||||
%undefine _hardened_build
|
||||
|
||||
Name: xorg-x11-drv-nouveau
|
||||
Epoch: 1
|
||||
Version: 1.0.15
|
||||
Release: 7
|
||||
Summary: Xorg X11 nouveau video driver for NVIDIA graphics chipsets
|
||||
URL: https://www.x.org
|
||||
License: MIT
|
||||
Source0: https://www.x.org/archive/individual/driver/xf86-video-nouveau-%{version}.tar.bz2
|
||||
Source1: make-git-snapshot.sh
|
||||
|
||||
BuildRequires: libtool automake autoconf systemd-devel mesa-libGL-devel
|
||||
BuildRequires: xorg-x11-server-devel libdrm-devel
|
||||
|
||||
Requires: Xorg %(xserver-sdk-abi-requires ansic) libdrm
|
||||
Requires: Xorg %(xserver-sdk-abi-requires videodrv)
|
||||
|
||||
%description
|
||||
X.Org X11 nouveau video driver.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n xf86-video-nouveau-%{version}
|
||||
|
||||
%build
|
||||
autoreconf -vif
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%delete_la
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING ChangeLog
|
||||
%{driverdir}/nouveau_drv.so
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man4/nouveau.4*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.0.15-7
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user