%global commit 53bf47ccd349b7525248687ba0058860168c8580 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} Name: eglexternalplatform Version: 1.0 Release: 0.1.git%{shortcommit}%{?dist} Summary: EGL External Platform Interface headers License: MIT URL: https://github.com/NVIDIA Source0: %url/%{name}/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz %description %summary %package devel Summary: Development files for %{name} %description devel The %{name}-devel package contains the header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{commit} %build %install mkdir -p %{buildroot}%{_includedir}/ install -p -m 0644 interface/eglexternalplatform.h %{buildroot}%{_includedir}/ install -p -m 0644 interface/eglexternalplatformversion.h %{buildroot}%{_includedir}/ mkdir -p %{buildroot}%{_libdir}/pkgconfig/ install -p -m 0644 eglexternalplatform.pc %{buildroot}%{_libdir}/pkgconfig/ %files devel %doc README.md samples %{_includedir}/* %{_libdir}/pkgconfig/eglexternalplatform.pc %changelog * Thu Jan 19 2017 Leigh Scott - 1.0-0.1.git53bf47c - First build