%global commit0 8a606309daaa680eee495c8279feb0b704148f4a %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date0 20240207 Name: happly Version: 0.10^git%{date0}.%{shortcommit0} Release: %autorelease Summary: A header-only C++ reader/writer for the PLY file format. BuildArch: noarch License: MIT URL: https://github.com/nmwsharp/happly Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz %description A C++ header-only parser for the PLY file format. Parse .ply happily! %package devel Summary: Development files for %{name} License: MIT %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{commit0} %install install -Dm644 %{name}.h %{buildroot}%{_includedir}/%{name}.h %files devel %license LICENSE %doc README.md %{_includedir}/%{name}.h %changelog %autochangelog