From 3775eedc06adcd5cd54dfdeee9cdceb02a311fc5 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 12 Aug 2015 16:50:55 +0200 Subject: [PATCH] New 20150812 git snapshot - Add demmio to packaged binaries --- .gitignore | 1 + envytools.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++ make-git-snapshot.sh | 22 +++++++++++ sources | 1 + 4 files changed, 115 insertions(+) create mode 100644 envytools.spec create mode 100755 make-git-snapshot.sh diff --git a/.gitignore b/.gitignore index e69de29..89d3647 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/envytools-20150812.tar.bz2 diff --git a/envytools.spec b/envytools.spec new file mode 100644 index 0000000..9455cb0 --- /dev/null +++ b/envytools.spec @@ -0,0 +1,91 @@ +%global gitdate 20150812 + +Name: envytools +Version: 0.0 +Release: 0.3.git%{gitdate}%{?dist} +Summary: Tools for people envious of nvidia's blob driver +License: MIT +URL: https://github.com/envytools/envytools +# Generated by make-git-snapshot.sh +Source0: envytools-%{gitdate}.tar.bz2 +Source1: make-git-snapshot.sh +BuildRequires: cmake flex bison +BuildRequires: libpciaccess-devel libX11-devel libXext-devel libseccomp-devel +BuildRequires: libxml2-devel libvdpau-devel libdrm-devel python3-devel + +%description +Envytools contains a number of tools used for debugging / development of +the nouveau driver: + +envydis: Disassembler and assembler for various ISAs found on nvidia GPUs +nvbios: Tools to decode the card description structures found in nvidia VBIOS +nva: Tools to directly access the GPU registers +vstream: Tools to decode and encode raw video bitstreams + + +%package hwdocs +Summary: Nouveau hardware documentation +BuildArch: noarch + +%description hwdocs +The %{name}-hwdocs package contains hardware documentation for video +hardware supported by the nouveau driver project. + + +%prep +%setup -q -n %{name}-%{gitdate} + + +%build +%cmake -DBUILD_SHARED_LIBS:BOOL=OFF . +make %{?_smp_mflags} + + +%install +%make_install +cp -p COPYING $RPM_BUILD_ROOT%{_docdir}/%{name} +# Remove the tools for rules-ng-ng XML register db manipulation +rm $RPM_BUILD_ROOT%{_bindir}/headergen +rm $RPM_BUILD_ROOT%{_bindir}/lookup +# Remove hwtest this really is for developers only +rm $RPM_BUILD_ROOT%{_bindir}/hwtest +# We do not want the libs (these are for internal use only) +rm $RPM_BUILD_ROOT%{_libdir}/*.a +rm -r $RPM_BUILD_ROOT%{_includedir}/%{name} +# Remove the python scripts used to generate the docs +rm $RPM_BUILD_ROOT%{_docdir}/%{name}/hwdocs/*.py + + +%files +%doc %dir %{_docdir}/%{name} +%license %{_docdir}/%{name}/COPYING +%doc %{_docdir}/%{name}/README* +%{_bindir}/de* +%{_bindir}/dumpstruct +%{_bindir}/envy* +%{_bindir}/evotiming +%{_bindir}/mmt_* +%{_bindir}/nv01* +%{_bindir}/nva* +%{_bindir}/nvbios +%{_bindir}/vdpow +%{_datadir}/rnndb + +%files hwdocs +%doc %dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/hwdocs + + +%changelog +* Wed Aug 12 2015 Hans de Goede - 0.0-0.3.git20150812 +- New 20150812 git snapshot +- Add demmio to packaged binaries + +* Tue Jun 23 2015 Hans de Goede - 0.0-0.2.git20150622 +- Packaging improvements from package-review (rhbz#1234468) + - Mark COPYING as %%license + - Put the hwdocs in their own -hwdocs subpackage + - Use %%global instead of %%define + +* Mon Jun 22 2015 Hans de Goede - 0.0-0.1.git20150622 +- Initial Fedora package diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh new file mode 100755 index 0000000..f4d3bf1 --- /dev/null +++ b/make-git-snapshot.sh @@ -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=envytools-$( date +%Y%m%d ) + +echo REF ${REF:+--reference $REF} +echo DIRNAME $DIRNAME +echo HEAD ${1:-HEAD} + +rm -rf $DIRNAME + +git clone ${REF:+--reference $REF} \ + https://github.com/envytools/envytools.git $DIRNAME + +GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \ + | bzip2 > $DIRNAME.tar.bz2 + +rm -rf $DIRNAME diff --git a/sources b/sources index e69de29..99fbbb1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e9d057b27a41fdd3aae6776ca997d079 envytools-20150812.tar.bz2