Blob Blame History Raw
%global commit 60105d1b0755e48b37d779d8a2b9c4b458b5a2fd
%global shortcommit %(c=%{commit}; echo ${c:0:7})

# We don't build any binaries.
%undefine _debugsource_packages

Name:           libetnaviv
Version:        1.0.0
Release:        1.20141102git%{shortcommit}%{?dist}
Summary:        Vivante GPU user-space driver

Group:          User Interface/X Hardware Support
License:        MIT
URL:            https://github.com/etnaviv/libetnaviv.git
Source0:        https://github.com/etnaviv/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
# https://github.com/etnaviv/libetnaviv/pull/2
Patch0:         https://github.com/lkundrak/libetnaviv/commit/e61d9e169.patch#/0001-etna.h-include-other-headers-from-the-same-directory.patch

%description
Project Etnaviv is an open source user-space driver for the Vivante GCxxx
series of embedded GPUs.


%package -n etnaviv-headers
Summary:        Header files for etnaviv.
BuildArch:      noarch


%description -n etnaviv-headers
Header files for etnaviv.


%prep
%setup -q -n %{name}-%{commit}
%patch0 -p1


%build
# We don't actually build libetnaviv. It would only work with the out-of-tree
# galcore kernel module and needs its headers to build anyway.
# We just need the headers.


%install
mkdir -p %{buildroot}%{_includedir}/etnaviv/
install -pm644 src/*.h %{buildroot}%{_includedir}/etnaviv/


%files -n etnaviv-headers
%{_includedir}/etnaviv
%doc README.md


%changelog
* Wed Apr 24 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.0.0-1.20141101gitb8fb7b53
- Initial packaging