Package init

This commit is contained in:
dogsheng 2019-11-19 15:08:57 +08:00
parent a46c4981da
commit 28b2291092
3 changed files with 73 additions and 0 deletions

22
make-git-snapshot.sh Normal file
View 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

Binary file not shown.

51
xorg-x11-drv-nouveau.spec Normal file
View 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