1
0
eglexternalplatform/eglexternalplatform.spec

53 lines
1.5 KiB
RPMSpec

%define realname eglexternalplatform
%define srcext tar.bz2
# Common info
Name: %{realname}
Version: 0
Release: %{?extraver:0.}1%{?dist}
License: MIT
Group: Development/Libraries/Other
URL: https://github.com/NVIDIA/eglexternalplatform
Summary: The EGL External Platform interface
# Install-time parameters
Provides: %{realname}-devel = %{version}-%{release}
Obsoletes: %{realname}-devel < %{version}-%{release}
# Build-time parameters
BuildRequires: pkg-config
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
Source: %{realname}-%{version}%{?extraver}.%{srcext}
%description
This is a work-in-progress specification of the EGL External Platform interface
for writing EGL platforms and their interactions with modern window systems on
top of existing low-level EGL platform implementations. This keeps window system
implementation specifics out of EGL drivers by using application-facing
EGL functions.
# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{version}%{?extraver}
%build
%install
%{__install} -d -m0755 %{buildroot}%{_datadir}/pkgconfig
%{__install} -d -m0755 %{buildroot}%{_includedir}/EGL
%{__install} -m0644 eglexternalplatform.pc %{buildroot}%{_datadir}/pkgconfig/
%{__install} -m0644 interface/*.h %{buildroot}%{_includedir}/EGL/
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%license COPYING
%doc README.md
%{_datadir}/pkgconfig/eglexternalplatform.pc
%{_includedir}/EGL/
%changelog